Polygon
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.
Polygon
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
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.| # | Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| 1 | transactionHash | string | Sim | Hash of the transaction to retrieve traces for. |
| Tipo | Descrição |
|---|---|
| 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 | Mensagem | 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