Avalanche
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.
Avalanche
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
trace_replayBlockTransactions replays every transaction in an Avalanche C-Chain block and returns, for each one, a selectable combination of call-tree trace, opcode-level VM trace, and state diff. The C-Chain is Avalanche's EVM chain, where AVAX pays for gas and Snowman consensus finalizes blocks in roughly one to two seconds. You choose which artifacts to compute through the traceTypes array ("trace", "vmTrace", "stateDiff"), letting you get a full per-block audit in one request. Send the call to https://avalanche.therpc.io/YOUR_API_KEY (chain ID 43114, hex 0xa86a); the result is an array of per-transaction replay objects in block order, each carrying its transactionHash.
stateDiff audit for every transaction in a C-Chain block for an Avalanche analytics pipeline.| # | 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 Avalanche 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. |
trace namespace — it replays every transaction and computes each requested trace type, so it can time out on a busy Avalanche block.trace namespace.traceTypes on a dense block can produce hundreds of MB of data; request only the artifacts you actually need.Parâmetros
hex block number or "latest" | "earliest" | "pending"
["trace"] | ["trace","vmTrace","stateDiff"]