BNB Smart Chain API
BNB Smart Chain 端点使用 EVM JSON-RPC。
Endpoint
| Item | Value |
|---|---|
| Network | BNB Smart Chain Mainnet |
| Protocol | EVM JSON-RPC 2.0 |
| Chain ID | 56 (0x38) |
| Public HTTPS | https://bsc-rpc.blockreq.com/v1/rpc/public |
| Private HTTPS | https://bsc-rpc.blockreq.com/v1/rpc/BRQ1P0000000000000000000000000000000000000000000000000000000 |
| WSS | wss://bsc-rpc.blockreq.com/v1/rpc/BRQ1P0000000000000000000000000000000000000000000000000000000,启用时可用 |
Core Methods
共享方法目录见 EVM JSON-RPC 方法表。
| Capability | Methods |
|---|---|
| Latest state | eth_chainId, eth_blockNumber, eth_call, eth_getBalance |
| Archive/proof | eth_getProof, 旧区块 eth_getCode, 旧区块 eth_getStorageAt |
| Logs 和 receipts | eth_getLogs, eth_getBlockReceipts, eth_getTransactionReceipt |
| Trace/debug | trace_block, trace_filter, trace_transaction, debug_traceCall, debug_traceTransaction |
Free 不包含 debug_*、trace_* 或 txpool_*。付费套餐之间不区分这些方法族。