Arbitrum One
Arbitrum One
Arbitrum One
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
debug_traceBlockByHash re-executes every transaction in one Arbitrum One block — identified by its 32-byte block hash — and returns an opcode-level trace for each, in block order. Arbitrum One is a Nitro Optimistic Rollup (chain ID 42161) whose sequencer gives sub-second soft confirmations and whose gas is paid in ETH; tracing by hash pins you to one exact block even across reorgs near the unsafe head. Pass an optional tracer config (callTracer, prestateTracer, or the default struct logger) and send the request to https://arbitrum.therpc.io/YOUR_API_KEY.
| # | 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| 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 Arbitrum One 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: the node replays every transaction in the block, so a dense Arbitrum One block is far heavier than tracing a single transaction.参数
0x-prefixed 32-byte block hash
Same tracer configuration object as debug_traceTransaction.