Base
准备好在生产环境中调用了吗?
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
Base
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
debug_traceBlockByHash re-executes an entire Base block and returns opcode-level execution traces for every transaction it contains, keyed off the block's hash rather than its number. Base is Coinbase's OP Stack optimistic rollup with roughly two-second blocks from its sequencer; gas is paid in ETH and the chain settles to Ethereum L1. Send the request to https://base.therpc.io/YOUR_API_KEY (chain ID 8453, hex 0x2105), pass the 32-byte block hash plus an optional tracer config, and the node replays each transaction against the parent state and hands back one trace per transaction in block order. Using the hash makes the target unambiguous even when a number could point at more than one block during a reorg.
callTracer over the whole block and stitching the per-transaction call trees together.| # | 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| 1 | blockHash | string | 是 | Hash of the block to trace. |
| 2 | options | object | 否 | Same tracer configuration object as debug_traceTransaction. |
| 类型 | 描述 |
|---|---|
| array | Array of per-transaction trace results in block order. Each element has the same shape as debug_traceTransaction output for the active tracer. |
Try it live in the Base playground.
| 错误码 | 错误信息 | 原因 |
|---|---|---|
-32601 | Method not found | debug namespace not enabled on the node. |
-32602 | Invalid params | Block hash is missing or not a valid 32-byte hex value. |
-32000 | block not found | Block hash not found or archive state unavailable. |
debug_traceBlockByNumber — it replays every transaction in the block, so a dense Base block is far heavier than tracing a single transaction.callTracer) or raise the timeout in the options object.参数
0x-prefixed 32-byte block hash
Same tracer configuration object as debug_traceTransaction.