Berachain RPC Endpoints
Bepolia
Mainnet
- Chain ID
- Family
- EVM
HTTPS
https://api-berachain-mainnet.n.dwellir.com/<your-api-key>
WSS
wss://api-berachain-mainnet.n.dwellir.com/<your-api-key>
Quick Start
BASH
curl -sS -X POST https://api-berachain-mainnet.n.dwellir.com/<your-api-key> \-H 'Content-Type: application/json' \-d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'
JAVASCRIPT
import { JsonRpcProvider } from 'ethers';const provider = new JsonRpcProvider('https://api-berachain-mainnet.n.dwellir.com/<your-api-key>');const latest = await provider.getBlockNumber();console.log('block', latest);
PYTHON
import requestsurl = 'https://api-berachain-mainnet.n.dwellir.com/<your-api-key>'payload = { 'jsonrpc': '2.0', 'id': 1, 'method': 'eth_blockNumber', 'params': [] }resp = requests.post(url, json=payload)print(resp.json())
GO
package mainimport ("bytes""fmt""net/http""io/ioutil")func main() {url := "https://api-berachain-mainnet.n.dwellir.com/<your-api-key>"payload := []byte("{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"eth_blockNumber\",\"params\":[]}")resp, err := http.Post(url, "application/json", bytes.NewBuffer(payload))if err != nil { panic(err) }defer resp.Body.Close()body, _ := ioutil.ReadAll(resp.Body)fmt.Println(string(body))}
BeraChain is a blockchain platform designed for scalability and sustainability, focusing on energy efficiency and high transaction throughput. It supports smart contracts and decentralized applications, catering to both enterprise and public needs.
Shared Node Pricing
How many calls do you make per month?
/ month
Growth
$299
/month
- 500 Responses /sec
- Pay in Crypto
- Dedicated Account Manager
Berachain Unlimited Node
- Unmetered requests within your tier
- Five tiers from 25 to 1,000 RPS
- No API credits, no overages
- Pay in Crypto
- HTTP & Websocket APIs
- Trace APIs
- Debug APIs
- Same endpoint URL and API key
- Self-serve in the dashboard
- Fixed monthly invoice
Berachain Dedicated Node Cluster
- Unlimited RPS & Responses
- HTTP & Websocket APIs
- Trace APIs
- Debug APIs
- Pay in Crypto
- Dedicated Account Manager
- Tailored load balancing
- Access to Engineering teams
- Global data centers
Developer Resources
FAQs
What is BeraChain?
Get your API key
and join other leading Web3 companies using Dwellir's infrastructure