Base
Prêt à utiliser cela en production ?
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
Base
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
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.| # | Nom | Type | Obligatoire | Description |
|---|---|---|---|---|
| 1 | blockHash | string | Oui | Hash of the block to trace. |
| 2 | options | object | Non | 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 Base playground.
| Code | Message | Cause |
|---|---|---|
-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.Paramètres
0x-prefixed 32-byte block hash
Same tracer configuration object as debug_traceTransaction.