Ethereum
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.
Ethereum
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
When you need the deepest possible view of an Ethereum block, trace_replayBlockTransactions re-executes every transaction in it from scratch and returns whichever combination of trace, vmTrace, and stateDiff you ask for, per transaction. It's the block-wide counterpart to trace_replayTransaction: same selectable outputs, but applied to the full transaction list in execution order. Because it actually replays each transaction against the prior state, it can report the exact balance, nonce, code, and storage deltas every ETH transfer and contract call produced. This runs on Ethereum mainnet (chain ID 1) through the trace namespace at https://ethereum.therpc.io/YOUR_API_KEY, served by an archive node. Give it a block (number or tag) and at least one trace type.
["stateDiff"] and get a complete write-by-write audit of every transaction in the block, the kind of feed a chain-analytics pipeline ingests to track exactly what each transaction changed on-chain.["trace","vmTrace"] to follow the full execution flow across every transaction and see how a bundle of swaps and liquidations fit together in one slot.| # | 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 Ethereum 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"]