---
title: "BNB Smart Chain API"
description: "BNB Smart Chain Core RPC API，包含 EVM archive、proof、debug 与 trace 方法说明"
url: "https://blockreq.com/docs/zh-cn/build/api-reference/bsc/"
---

# 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 方法表](https://blockreq.com/docs/zh-cn/build/api-reference/evm-methods/index.md)。

| 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_*`。付费套餐之间不区分这些方法族。
