Base
准备好在生产环境中调用了吗?
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
Base
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
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.| # | 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| 1 | transactionHash | string | 是 | Hash of the transaction to retrieve traces for. |
| 类型 | 描述 |
|---|---|
| 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.
| 错误码 | 错误信息 | 原因 |
|---|---|---|
-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.参数
0x-prefixed 32-byte hash