Avalanche
¿Listo para usar esto en producción?
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
Avalanche
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
trace_transaction returns the OpenEthereum/Nethermind-style call tree for a confirmed Avalanche C-Chain transaction, exposing every internal call, contract creation, and self-destruct (suicide) action it performed. The C-Chain is Avalanche's EVM chain, where AVAX is the gas token and Snowman consensus finalizes blocks in roughly one to two seconds. Unlike the opcode-level debug tracers, this gives you a clean, flat list of actions — perfect for following AVAX value as it moves through nested contract calls. Send the request to https://avalanche.therpc.io/YOUR_API_KEY (chain ID 43114, hex 0xa86a) with the transaction hash, and each returned trace's traceAddress encodes its exact position in the call tree.
| # | Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|---|
| 1 | transactionHash | string | Sí | Hash of the transaction to retrieve traces for. |
| Tipo | Descripción |
|---|---|
| array | Flat array of trace objects, each with `{action, result, subtraces, traceAddress, transactionHash, transactionPosition, blockHash, blockNumber, type}`. `traceAddress` encodes the path through the call tree. |
Try it live in the Avalanche playground.
| Código | Mensaje | Causa |
|---|---|---|
-32601 | Method not found | trace namespace not enabled; node requires --gcmode=archive and trace API enabled (Geth), or equivalent flag on Nethermind/Erigon. |
-32602 | Invalid params | Transaction hash is missing or malformed. |
-32000 | transaction not found | Transaction does not exist or archive trace data is unavailable for that block. |
--gcmode=archive plus the trace API, or Erigon/Nethermind with the trace API); most public Avalanche light nodes do not expose it.debug_traceTransaction — there is no opcode-level data, only call, create, and suicide actions — so pick the method that matches the granularity you need.Parámetros
0x-prefixed 32-byte hash