Base
¿Listo para usar esto en producción?
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
Base
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
trace_replayBlockTransactions replays every transaction in a Base block and returns, for each one, a selectable combination of call-tree trace, opcode-level VM trace, and state diff. Base is Coinbase's OP Stack optimistic rollup that meters gas in ETH and settles to Ethereum L1. Send the request to https://base.therpc.io/YOUR_API_KEY (chain ID 8453, hex 0x2105) with a block specifier and a traceTypes array choosing trace, vmTrace, stateDiff, or any mix. The response is one replay result per transaction in block order, each carrying its transactionHash. It is the block-wide counterpart to trace_replayTransaction: where that method replays a single transaction, this one rebuilds the full execution and state changes for an entire Base block at once.
stateDiff audit for every transaction in a Base block, feeding a chain-analytics pipeline that needs precise per-block storage and balance changes.trace and stateDiff to see how value moved through Aerodrome and Uniswap pools.| # | Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|---|
| 1 | blockParameter | string | Sí | Block whose transactions to replay. |
| 2 | traceTypes | array | Sí | One or more of `"trace"`, `"vmTrace"`, `"stateDiff"`. At least one value is required. |
| Tipo | Descripción |
|---|---|
| array | Array of per-transaction replay results in block order. Each element has the same shape as trace_replayTransaction output, plus `transactionHash`. |
Try it live in the Base playground.
| Código | Mensaje | Causa |
|---|---|---|
-32601 | Method not found | trace namespace not enabled or not supported by this client. |
-32602 | Invalid params | blockParameter is malformed or traceTypes is empty or contains unknown values. |
-32000 | block not found | Block does not exist or archive trace data is unavailable for that block. |
Parámetros
hex block number or "latest" | "earliest" | "pending"
["trace"] | ["trace","vmTrace","stateDiff"]