Arbitrum One
准备好在生产环境中调用了吗?
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
Arbitrum One
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
debug_traceBlockByNumber replays every transaction in an Arbitrum One block selected by its hex block number or a tag like latest, returning an opcode-level trace for each transaction in block order. Arbitrum One is a Nitro Optimistic Rollup (chain ID 42161) that settles to Ethereum L1 and meters gas in ETH, so block numbers advance quickly under the sequencer's sub-second confirmations. This is the convenient variant when you are walking the chain by height rather than chasing a specific hash. Send requests to https://arbitrum.therpc.io/YOUR_API_KEY with an optional tracer config.
| # | 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| 1 | blockNumber | string | 是 | 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 number is malformed or not a recognized tag. |
-32000 | block not found | Block does not exist or archive state is unavailable for that number. |
latest are valid but race with the sequencer's fast-moving head — between resolving the tag and tracing, a new block may already be the latest.参数
hex block number or "latest" | "earliest" | "pending"
Same tracer configuration object as debug_traceTransaction.