Logo
New RPC users get 35% off their first monthView the offer
BNB Smart Chain logo

BNB Smart Chain (BSC) RPC Endpoints

An EVM-compatible Layer 1 for low-cost DeFi, wallets, games, exchanges, and high-volume applications.

Connect to BNB Smart Chain Mainnet through reliable EVM-compatible HTTPS and WebSocket RPC endpoints from OnFinality. Query blocks, balances, smart contracts and logs, submit transactions, subscribe to real-time events, and access historical blockchain state with Archive support.

For advanced workloads, OnFinality also provides BSC Trace and Debug APIs, RPC analytics, scalable rate limits, and dedicated node infrastructure for production applications.

Chain ID56
CurrencyBNB
Create a free API key for 400,000 response units per day and up to 40 response units/second. Method weights apply.

Public endpoint rate limit: 5 req/sec

Connect to BNB Smart Chain RPC
curl -H 'Content-Type: application/json' -d '{"id":1,"jsonrpc":"2.0","method":"eth_blockNumber"}' 'https://bnb.api.onfinality.io/public'
curl -H 'Content-Type: application/json' -d '{"id":1,"jsonrpc":"2.0","method":"eth_blockNumber"}' 'https://bnb.api.onfinality.io/public'
HTTPs
https://bnb.api.onfinality.io/public
https://bnb.api.onfinality.io/public
Websocket
wss://bnb.api.onfinality.io/public-ws
wss://bnb.api.onfinality.io/public-ws
GET CONNECTED

Connect to BNB Smart Chain

Power BSC swaps and trading backends with OnFinality RPC. Access BNB Smart Chain archive data and Trace APIs, or isolate workloads on dedicated nodes.

Try the public interface

First request
curl 'https://bnb.api.onfinality.io/public' \
  -H 'Content-Type: application/json' \
  --data '{"id":1,"jsonrpc":"2.0","method":"eth_blockNumber"}'

Use the interface and request shown above for an initial check, then test the methods and traffic pattern your application actually needs.

02

Create your own access

  1. Open the dashboard and select this network.
  2. Create an endpoint and copy the access details supplied by the dashboard.
  3. Validate your application's methods, peak traffic and error handling before production.
Create an RPC endpoint for BNB Smart Chain
RPC API

RPC API plans & response units

Choose a shared RPC plan by response-unit allowance and peak throughput. Method weights and network-specific availability still apply.

Developer

Free
Included response units
400,000/day
Rate limit
Up to 40 RU/s
Extra RU
Not available

Accelerate

$249/month
Included response units
100 million/month
Rate limit
500 RU/s
Extra RU
$3.75/million
Compare RPC plans

Plan figures checked 8 November 2026. RU are not always raw requests; WebSocket responses also count toward limits. Check the current pricing and this network's method documentation. Node charges and applicable taxes are additional.

NETWORK REFERENCE

BNB Smart Chain RPC details

Network
BNB Smart Chain Mainnet
Chain ID
56
Native Token
BNB
Protocol
EVM JSON-RPC
HTTPS
Supported
WebSocket
Supported
Archive Access
Supported
Trace / Debug
Supported on Paid Plans
Endpoint Regions
Hong Kong / N. Virginia
NETWORK REFERENCE

BSC Archive RPC and Historical Data

Access current and historical BNB Smart Chain state through OnFinality's Archive-enabled RPC infrastructure. Query historical balances, contract state, blocks, transactions, receipts, and event logs without operating your own BSC archive node.

Query Historical BSC Logs

Use eth_getLogs to retrieve contract events for DeFi analytics, token activity, transaction monitoring, indexers, accounting systems, and other data-intensive applications.

BNB Chain's documentation notes that eth_getLogs is disabled on its listed public Mainnet RPC endpoints. OnFinality supports eth_getLogs together with Archive access for workloads that require historical blockchain data.

NETWORK REFERENCE

Real-Time BSC WebSocket RPC

Connect to BNB Smart Chain over WebSocket for persistent access to live blockchain activity. Use eth_subscribe and WebSocket filters to monitor new blocks, contract events, transactions, and application activity without continuously polling the HTTPS endpoint.

  • DEX interfaces
  • Trading systems
  • Wallets
  • Token monitoring
  • Backend services
  • Real-time dashboards

OnFinality supports eth_subscribe, eth_unsubscribe and WebSocket-only filter methods for live BSC data workflows.

NETWORK REFERENCE

BSC Trace and Debug APIs

Trace BNB Smart Chain transactions, calls, and blocks to analyse contract execution, investigate failed transactions, debug smart contracts, and build advanced blockchain analytics.

Trace APIs

trace_blocktrace_calltrace_callManytrace_filtertrace_replayTransactiontrace_replayBlockTransactions

Debug APIs

debug_traceTransactiondebug_traceCalldebug_traceBlockByHashdebug_traceBlockByNumber

Trace and Debug access is available on supported paid plans.

NETWORK REFERENCE

Supported BNB Smart Chain RPC Methods

Use the EVM-compatible JSON-RPC method set to read BSC chain data, query smart contracts, submit transactions, retrieve logs, subscribe to events, and inspect execution.

Blocks and chain data

eth_blockNumbereth_chainIdeth_getBlockByHasheth_getBlockByNumbereth_getBlockReceipts

Smart contracts and state

eth_calleth_estimateGaseth_getBalanceeth_getCodeeth_getStorageAt

Transactions

eth_sendRawTransactioneth_getTransactionByHasheth_getTransactionReceipteth_getTransactionCount

Events and real-time data

eth_getLogseth_subscribeeth_getFilterChanges

Trace and debug

trace_blocktrace_calltrace_filterdebug_traceTransactiondebug_traceCall
NETWORK REFERENCE

Build on BNB Smart Chain with OnFinality

DeFi and DEX Applications

Read liquidity pools and contract state, submit transactions, monitor events, and use WebSocket subscriptions for real-time DeFi applications on BNB Smart Chain.

Trading Bots and Market Data

Monitor blocks, transactions, contract events, and token activity through low-latency HTTPS and WebSocket RPC workflows.

Wallets and Exchanges

Query BNB and BEP-20 balances, estimate gas, submit signed transactions, retrieve receipts, and monitor deposits and withdrawals.

Indexers and Analytics

Combine eth_getLogs, Archive access, blocks, transactions, and receipts to build historical datasets, dashboards, token analytics, and indexing pipelines.

Smart Contract Development and Debugging

Use standard EVM JSON-RPC together with Trace and Debug APIs to inspect contract execution, troubleshoot failed transactions, and analyse complex calls.

NETWORK REFERENCE

BNB Smart Chain Mainnet and Testnet RPC

EnvironmentMainnetTestnet
NetworkBNB Smart Chain MainnetBNB Smart Chain Testnet
Chain ID5697
CurrencyBNBtBNB
HTTPSSupportedSupported
WebSocketSupportedSupported
Best forProductionDevelopment / QA
NETWORK REFERENCE

Dedicated BNB Smart Chain Nodes

Move from shared BSC RPC infrastructure to dedicated nodes when your application needs isolated resources, sustained throughput, intensive historical queries, custom node configuration, or greater infrastructure control.

Suitable for

  • High-volume RPC workloads
  • Archive-heavy analytics
  • Exchanges
  • Trading infrastructure
  • Indexers
  • Validator infrastructure
  • Intensive Trace workloads
BUILT FOR YOUR WORKLOAD

Build with BNB Smart Chain

Plan access around the requests, operational requirements and release workflow your application needs.

Integration

Start with a connection check, then validate the reads, transactions or data workflows required by your application.

Usage planning

Review method-specific limits, plan allowances and usage before increasing traffic. Different methods can consume different response units.

Operations

Use your real client region and request pattern when evaluating latency, retries and service availability.

Never Worry about Infrastructure Again

OnFinality takes away the heavy lifting of DevOps so you can build smarter and faster.

Get Started