BNB Smart Chain RPC Endpoint Documentation
BNB Smart Chain RPC Endpoint Documentation
Use ERPC as your BNB Smart Chain RPC endpoint for HTTP JSON-RPC requests. BNB Smart Chain RPC is part of ERPC's RPC APIs within our Global Edge Blockchain Infrastructure, and the API key can be managed from the ERPC Web Dashboard.
You can use the same RPC key as Solana, Ethereum, and Avalanche.
Pass your API key in the
api-key query parameter, or send it as Authorization: Bearer <YOUR_API_KEY>. When both are present, the query parameter is used.Endpoints
Send JSON-RPC 2.0 requests as HTTP POST to:
endpoint
or the dedicated host:
endpoint
Requests are accepted at
/ only.Examples
Here is an HTTP request example with the API key in the query parameter.
bash
Here is the same request with the API key in the
Authorization header.bash
You can obtain and check your API key on the ERPC Web Dashboard: ERPC Web Dashboard
Batch Requests
JSON-RPC batches of 1 to 100 calls per HTTP request are supported. Every call needs its own
id, and id values must not repeat within a batch. Each call in a batch is metered as its own call. The request body can be up to 1 MiB.Usage Metering
Usage is metered in tokens, and the token rate can differ by method. Each call in an HTTP batch is metered separately.
Free Plan Limits
On the Free plan, your account can send one request per 10 seconds. The limit is counted per account, not per endpoint, so a request to another chain can also count toward it. A request sent sooner is answered with HTTP
429, and the retry-after header gives the wait in seconds.On the Free plan, a request that carries two or more JSON-RPC calls is answered with HTTP
429, and none of its calls is sent: each call gets a JSON-RPC error with code -32041. Send these calls one at a time instead.Supported Methods
The endpoint serves these 38 methods, grouped by namespace.
eth_*(24):eth_blockNumber,eth_call,eth_chainId,eth_estimateGas,eth_feeHistory,eth_gasPrice,eth_getBalance,eth_getBlockByHash,eth_getBlockByNumber,eth_getBlockReceipts,eth_getBlockTransactionCountByHash,eth_getBlockTransactionCountByNumber,eth_getCode,eth_getLogs,eth_getProof,eth_getStorageAt,eth_getTransactionByBlockHashAndIndex,eth_getTransactionByBlockNumberAndIndex,eth_getTransactionByHash,eth_getTransactionCount,eth_getTransactionReceipt,eth_maxPriorityFeePerGas,eth_sendRawTransaction,eth_syncingnet_*(3):net_listening,net_peerCount,net_versionweb3_*(2):web3_clientVersion,web3_sha3txpool_*(3):txpool_content,txpool_inspect,txpool_statusdebug_*(4):debug_traceBlockByHash,debug_traceBlockByNumber,debug_traceCall,debug_traceTransactiontrace_*(2):trace_block,trace_transaction
A method or path that is not listed is answered with HTTP
400.Response Status Codes
BNB Smart Chain RPC Methods and Documentation
For the full list of standard methods, parameters, and specifications, please refer to the official documentation.






