Arbitrum One
هل أنت مستعد لاستدعاء هذا في الإنتاج؟
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
Arbitrum One
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
trace_replayTransaction replays one historical Arbitrum One transaction and returns whichever combination of trace (the call tree), vmTrace (opcode-level VM trace), and stateDiff (per-address balance, nonce, code, and storage changes) you request in traceTypes. The stateDiff is the differentiator: it shows precisely which slots a transaction created, deleted, or modified. Arbitrum One is a Nitro Optimistic Rollup (chain ID 42161) that meters gas in ETH and settles to Ethereum L1, so this reconstructs the exact L2 ledger effect of any tx on Arbiscan. Send requests to https://arbitrum.therpc.io/YOUR_API_KEY.
stateDiff to see which storage slot or balance triggered the failure.| # | الاسم | النوع | مطلوب | الوصف |
|---|---|---|---|---|
| 1 | transactionHash | string | نعم | Hash of the transaction to replay. |
| 2 | traceTypes | array | نعم | One or more of `"trace"`, `"vmTrace"`, `"stateDiff"`. At least one value is required. |
| النوع | الوصف |
|---|---|
| object | `{output, trace?, stateDiff?, vmTrace?}` — `trace` is the call tree, `stateDiff` maps each affected address to balance/nonce/code/storage diffs using `=` (unchanged), `+` (created), `-` (deleted), `*{from,to}` (modified), `vmTrace` is the Parity-format opcode trace. |
Try it live in the Arbitrum One playground.
| الكود | الرسالة | السبب |
|---|---|---|
-32601 | Method not found | trace namespace not enabled or not supported by this client (primarily OpenEthereum/Nethermind/Erigon). |
-32602 | Invalid params | Transaction hash is missing/malformed or traceTypes is empty or contains unknown values. |
-32000 | transaction not found | Transaction does not exist or archive trace data is unavailable for that block. |
vmTrace on a complex Arbitrum One transaction produces enormous output — prefer trace or stateDiff when you do not need opcode-level detail.vmTrace format is Parity-specific — do not confuse it with Geth's debug_traceTransaction structLog format when parsing the response.المعاملات
0x-prefixed 32-byte hash
["trace"] | ["trace","vmTrace","stateDiff"]