Polygon
¿Listo para usar esto en producción?
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
Polygon
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
trace_transaction returns the flattened call tree of a single historical Polygon PoS transaction in the OpenEthereum/Nethermind format. Each entry's traceAddress encodes its path through the tree, so you can reconstruct exactly how a MATIC-fee transaction fanned out across contracts — without the opcode-by-opcode weight of the debug_* tracers. Send the request to https://polygon.therpc.io/YOUR_API_KEY (chain ID 137, 0x89) with the transaction hash. It returns the OpenEthereum/Nethermind-style call tree for the historical transaction, showing every internal call, create, and self-destruct action.
traceAddress.| # | 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 Polygon 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. |
debug_traceTransaction: there is no opcode-level data, only call, create, and self-destruct actions, so use the debug_* tracers when you need stack or storage detail.Parámetros
0x-prefixed 32-byte hash