BNB Smart Chain
准备好在生产环境中调用了吗?
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
BNB Smart Chain
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
Where trace_block gives you only the call tree, trace_replayBlockTransactions re-executes every transaction in a BSC block from scratch and lets you keep up to three artifacts per transaction: the call-tree trace, the opcode-level vmTrace, and the stateDiff. You choose which through traceTypes. Point it at chain ID 56 via https://bsc.therpc.io/YOUR_API_KEY. The state diff is what earns the cost. For each transaction it records the precise balance, nonce, code, and storage mutations the execution caused. Replaying a whole block this way is the most demanding call in the trace namespace, and it only works against a trace-enabled archive node holding that block's state.
| # | 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| 1 | blockParameter | string | 是 | Block whose transactions to replay. |
| 2 | traceTypes | array | 是 | One or more of `"trace"`, `"vmTrace"`, `"stateDiff"`. At least one value is required. |
| 类型 | 描述 |
|---|---|
| array | Array of per-transaction replay results in block order. Each element has the same shape as trace_replayTransaction output, plus `transactionHash`. |
Try it live in the BNB Smart Chain playground.
| 错误码 | 错误信息 | 原因 |
|---|---|---|
-32601 | Method not found | trace namespace not enabled or not supported by this client. |
-32602 | Invalid params | blockParameter is malformed or traceTypes is empty or contains unknown values. |
-32000 | block not found | Block does not exist or archive trace data is unavailable for that block. |
参数
hex block number or "latest" | "earliest" | "pending"
["trace"] | ["trace","vmTrace","stateDiff"]