Berachain API Integration
Overview
Berachain is supported by Pocket Network's enterprise-grade infrastructure with guaranteed uptime, global edge network, and developer-first tooling.
Network Information
| Property | Value |
|---|---|
| Network Name | Berachain |
| Native Token | BERA |
| EVM Chain ID | 80085 |
| Pocket Service ID | bera |
| Block Explorer | Beratrail |
Integration Examples
Quick Setup
// Using ethers.js (for EVM-compatible chains)
import { JsonRpcProvider } from 'ethers';
const provider = new JsonRpcProvider('YOUR_ENDPOINT');
// Get latest block
const blockNumber = await provider.getBlockNumber();
console.log('Latest block:', blockNumber);
// Get account balance
const balance = await provider.getBalance('WALLET_ADDRESS');
console.log('Balance:', balance.toString());
Developer Resources
📚 Essential Links
🛠️ Tools & SDKs
💬 Community & Support
Public Endpoint
Free public RPC endpoint available with fair use limits. No API key required.