Base
Pronto para usar isso em produção?
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
Base
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
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.| # | Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| 1 | blockParameter | string | Sim | Block whose transactions to replay. |
| 2 | traceTypes | array | Sim | One or more of `"trace"`, `"vmTrace"`, `"stateDiff"`. At least one value is required. |
| Tipo | Descrição |
|---|---|
| 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 | Mensagem | 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"]