Skip to content
Developers7 min read

BNB Chain RPC Endpoints: Chain ID 56, Archive Access and Running a BSC Node

BNB Smart Chain is EVM, so a BNB Chain RPC endpoint is standard JSON-RPC with chain ID 56. Getting a keyed endpoint, network details, limits, archive access, and when running your own BSC node makes sense.

Sourav Mishra · OrbitFlare
BNB Chain RPC Endpoints: Chain ID 56, Archive Access and Running a BSC Node

As BNB Chain is based on the EVM, a BNB Chain RPC endpoint uses the Ethereum JSON-RPC API protocol. To connect you need its URL, chain ID 56 for mainnet or 97 for testnet, and the BNB currency symbol. On OrbitFlare the endpoint is https://bsc.rpc.orbitflare.com?api_key=YOUR_LICENSE_KEY, with plans from $0/mo at a rate of 25 RPS. However, running your own BSC node is feasible although harder than expected by most teams.

BSC network details

Field Mainnet Testnet
Network name BNB Smart Chain BNB Smart Chain Testnet
Chain ID 56 (0x38) 97 (0x61)
Currency symbol BNB tBNB
Explorer https://bscscan.com https://testnet.bscscan.com

We took the chain IDs from BNB Chain’s JSON-RPC documentation on 9 November 2026. To configure a custom network in an EVM wallet, use these numbers along with your RPC URL. A wrong chain ID is behind most rejected signatures after adding a network.

Getting a BNB Chain RPC endpoint

BNB Chain and community operators run free public endpoints. They don’t require any registration; however, they are shared, IP rate-limited, and they slow down during peak times first. Use one to check your configuration, not to operate a service on.

A provider endpoint is tied to your account and comes with a set limit. Each OrbitFlare BNB plan bundles JSON-RPC, WebSockets and archival data, and none has a monthly credit cap:

Plan Price Requests per second
Free $0/mo 25 RPS
Starter $49/mo 100 RPS
Growth $149/mo 300 RPS
Pro $299/mo 600 RPS
Performance $499/mo 1,000 RPS

The shared BNB plans operate in Amsterdam. Your license key is in the Licenses tab of the dashboard (the authentication docs show how to send it). This key will be the same key used for Solana, Polygon and Robinhood Chain too. Keep the keyed URL in your server's environment variables alone, because anyone who holds it can spend your limit.

Using the BNB Chain RPC endpoint in code

Ethers, viem, web3.js, web3.py, alloy and go-ethereum all work without changes. Construct the client via HTTPS URL, use wss://bsc.rpc.orbitflare.com?api_key=YOUR_LICENSE_KEY for eth_subscribe, and use chain ID 56 everywhere where signing by your library takes place:

curl -X POST "https://bsc.rpc.orbitflare.com?api_key=$ORBITFLARE_LICENSE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"eth_chainId","params":[]}'

A mainnet endpoint answers 0x38, which translates into 56 in hexadecimal notation.

Following are the three habits on BSC:

  • Subscribe, don't poll. Documentation on BNB Chain suggests use of WebSockets for new logs. Use eth_subscribe to newHeads and logs for request-budget savings.
  • Bound your log calls. Large eth_getLogs ranges cause most time-outs and other errors, so page them by block range.
  • Read fees from the chain. Use eth_gasPrice or eth_feeHistory instead of setting hard values.

Free and paid limits

Control Free Paid
Batch size 1 item 100 items
eth_getLogs block range 150 blocks 10,000 blocks
debug_* and trace_* methods Blocked Allowed
WebSocket connections 1 From 10
Subscriptions per connection 5 25

HTTP and WebSocket traffic share a single rate limit and in-flight budget. When you see a -32005 error on a single operation, it generally indicates that some other client is currently operating under that same key or batch is exceeding the limits. If a -32602 block-range error occurs, the eth_getLogs range is too large; divide it. -32429 means you are over your requests per second.

Archive access and trace methods

A full node stores recent state only. The reading of balances or storage in contracts through any old block, or querying against old states via eth_call, requires an archival node. An archival node is required for indexers or analysis. Applications which only query recent data do not need one. The archival dataset is included in every OrbitFlare BNB plan. Debug and trace methods are blocked on Free and allowed on paid plans.

Running your own BSC node

It can be done and is an actual ops task:

  • Storage: The chain is big and grows continuously, and needs fast NVMe. When a node runs on slower disks, it lags and cannot sync.
  • Sync: Operators begin with snapshots that were published and not with genesis, pruning regularly.
  • Upgrades: The client has planned updates and hard forks, and a missing update results in a node falling off the chain.
  • Monitoring: Someone has to watch it for lag, disk growth and peer count, and be on call for when a snapshot or an update doesn’t work as intended.

Self-hosting of a BNB Chain node becomes useful when special client configurations, complete isolation, or a huge, sustained traffic level is needed. If you decide to do it, bare metal servers at OrbitServers, our sister brand, are built for that kind of load. In all other cases, a shared plan suits almost all applications, while for others, a dedicated BNB Chain node on isolated hardware, priced per deployment, covers the rest without the operations work.

Choosing a BSC RPC provider

  1. Pricing model: requests per second against credits. Expensive heavy operations like eth_getLogs or archive requests cost much more with credits; our explainer on RPC pricing models applies here too.
  2. Location: an endpoint close to the servers that call it. Shared OrbitFlare BNB plans operate from Amsterdam.
  3. Streaming: WebSocket subscriptions included on every plan.
  4. Archive: Included in the plan or not? And for how far?
  5. Behavior when overloaded: test at peak hour, look for outdated blocks from a lagging node.

See the plans on the BNB Chain RPC page, or sample code in the BNB Chain docs.

Frequently asked questions

What is the BNB Chain RPC URL?
There isn't a single official URL. Public URLs are provided by the team at BNB Chain, along with community operators. The providers, meanwhile, offer keyed URLs. OrbitFlare’s keyed URL is `https://bsc.rpc.orbitflare.com?api_key=YOUR_LICENSE_KEY`, and WebSockets share the exact hostname. In all cases, make sure to connect it to chain ID 56 and the BNB token.
What is the BSC chain ID?
Chain ID for the BNB Smart Chain mainnet is 56 and 0x38 in hexadecimal format, whereas the testnet Chain ID is 97 and 0x61 in hexadecimal format. The opBNB layer two is another network with its own endpoints and chain ID, so check which network your app targets.
Can I use MetaMask with BSC?
Yes. You just need to add a custom network with an RPC URL, Chain id 56 and with BNB Symbol and Explorer BscScan. In case you have a network already existing with BSC with Public URL just edit that network URL with yours.
Is there a free BNB Chain RPC?
Yes. Public nodes do not require registration and are shared with rate limitations. The Free BNB Tier provided by OrbitFlare costs $0/month with RPS up to 25. WebSockets and archival data are also supported. Batches above one item and debug or trace methods need a paid plan.
Do I need a BSC archive node?
Just for historical state: balances, storage, and `eth_call` on old blocks, or for large log ranges. Most apps query the latest state anyway and thus don’t need it; indexers and analytics services usually do. Every OrbitFlare BNB plan includes archival data.

About the author

Sourav Mishra

Solutions Engineer · OrbitFlare

Sourav Mishra help build low-latency Solana infrastructure at OrbitFlare — shred streaming, gRPC pipelines, and eBPF-powered networking, mostly in Rust. He writes the kind of deep dives he wishes existed when he started: what a shred actually is, why Solana's VM shares a lineage with the packet filter in your kernel, and how to get transaction data out of the network before everyone else does.

More articles by Sourav Mishra
Thanks for reading.Back to all articles

Code. Build. Stream. Without Limits.

Build something that moves.

Choose your infrastructure. We’ll help you find the right setup.

A useful starting point

Edit the brief, then copy it and open your assistant. Paste it into a new chat to get started.

Official sources included. You choose when to send.