BNB Smart Chain
准备好在生产环境中调用了吗?
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
BNB Smart Chain
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
Where the by-hash and by-number tracers ask the node to look a block up, debug_traceBlock hands the node the block. You pass raw RLP-encoded bytes and it re-executes them against the parent state, replaying every transaction at the opcode level. That decoupling is the whole point: the block need not sit on the canonical chain, or anywhere on disk, for you to trace it. Post the payload to BNB Smart Chain (BSC), chain ID 56, at https://bsc.therpc.io/YOUR_API_KEY. Because the parent state still has to exist for the replay to succeed, this is a heavy debug call that wants a debug-enabled archive node behind it.
| # | 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| 1 | rlpBlock | string | 是 | RLP-encoded block data. The block must be a valid, known block; the node re-executes it against the parent state. |
| 2 | options | object | 否 | Same tracer configuration object as debug_traceTransaction. |
| 类型 | 描述 |
|---|---|
| array | Array of per-transaction trace results in block order, identical in shape to debug_traceBlockByHash output. |
Try it live in the BNB Smart Chain playground.
| 错误码 | 错误信息 | 原因 |
|---|---|---|
-32601 | Method not found | debug namespace not enabled on the node. |
-32602 | Invalid params | RLP data is malformed, empty, or does not decode to a valid block structure. |
-32000 | block not found | Parent state for the provided block is not available (archive state missing). |
eth_getBlockByHash with full transactions, then re-encode it themselves.debug_traceBlockByHash because both replay the full block. A fat block returns a fat response and may be rate-limited on lower tiers.参数
0x-prefixed RLP-encoded block
Same tracer configuration object as debug_traceTransaction.