Polygon
Polygon
هل أنت مستعد لاستدعاء هذا في الإنتاج؟
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
Polygon
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
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.| # | الاسم | النوع | مطلوب | الوصف |
|---|---|---|---|---|
| 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 Polygon 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, only call, create, and self-destruct actions, so use the debug_* tracers when you need stack or storage detail.المعاملات
0x-prefixed 32-byte hash