Base
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.
Base
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
trace_transaction returns the OpenEthereum/Nethermind-style call tree for a historical transaction on Base, showing every internal call, contract creation, and self-destruct action it produced. Base is the OP Stack optimistic rollup built by Coinbase, with ETH as the gas token and settlement to Ethereum L1, so its trace output follows the familiar Parity-derived format. Pass the transaction hash to https://base.therpc.io/YOUR_API_KEY (chain ID 8453, hex 0x2105) and the node returns a flat array of trace objects, each with a traceAddress path that tells you where it sits in the call tree. Unlike debug_traceTransaction, this gives you the higher-level action view rather than opcode-by-opcode detail, which is exactly what you want for following internal value flow.
value on each call action.traceAddress path to the failing action.| # | 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 Base 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 here, only call, create, and self-destruct actions, so use the debug method when you need stack or memory detail.Parâmetros
0x-prefixed 32-byte hash