Arbitrum One
Ready to call this in production?
Free tier covers personal projects. Pay-as-you-go scales without a card.
Arbitrum One
Free tier covers personal projects. Pay-as-you-go scales without a card.
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.
| # | Name | Type | Required | Description |
|---|---|---|---|---|
| 1 | blockNumber | string | Yes | Block to trace. |
| 2 | options | object | No | Same tracer configuration object as debug_traceTransaction. |
| Type | Description |
|---|---|
| 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.
| Code | Message | Cause |
|---|---|---|
-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.Parameters
hex block number or "latest" | "earliest" | "pending"
Same tracer configuration object as debug_traceTransaction.