Logo
新用户订阅 RPC,首月享 6.5 折优惠查看优惠
BNB Smart Chain logo

BNB Smart Chain (BSC) RPC Endpoints

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
注册 Free Plan,可将速率提升至 40 req/sec,并获得 API 使用与性能洞察。 立即开始

公共接口速率限制为 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
部署专用节点

升级 Growth Plan

  • 高性能
  • 强大的 RPC 分析
  • 最高 500 rps
  • 无每日响应限制
  • 优先支持
  • 去中心化服务器
立即开始

BNB Smart Chain RPC details

Item
Value
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
Public Rate Limit
10 req/min
Endpoint Regions
Hong Kong / N. Virginia

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.

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.

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_block trace_call trace_callMany trace_filter trace_replayTransaction trace_replayBlockTransactions

Debug APIs

debug_traceTransaction debug_traceCall debug_traceBlockByHash debug_traceBlockByNumber

Trace and Debug access is available on supported paid plans.

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_blockNumber eth_chainId eth_getBlockByHash eth_getBlockByNumber eth_getBlockReceipts

Smart contracts and state

eth_call eth_estimateGas eth_getBalance eth_getCode eth_getStorageAt

Transactions

eth_sendRawTransaction eth_getTransactionByHash eth_getTransactionReceipt eth_getTransactionCount

Events and real-time data

eth_getLogs eth_subscribe eth_getFilterChanges

Trace and debug

trace_block trace_call trace_filter debug_traceTransaction debug_traceCall
View all supported BSC RPC methods →

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.

BNB Smart Chain Mainnet and Testnet RPC

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

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
Deploy a Dedicated BSC Node →

附加信息

永远不用担心基础设施

OnFinality 消除了 DevOps 的繁重工作,让您能够更聪明、更快地构建。

开始