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