Arbitrum One
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.
Arbitrum One
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
trace_call simulates a call against a chosen Arbitrum One block state and returns an OpenEthereum-style result — a call-tree trace, an optional opcode-level vmTrace, and an optional stateDiff — all without creating a transaction or spending ETH. You choose which trace types to compute via the traceTypes array, so you can ask only for the storage and balance diffs, only for the call tree, or all three. Arbitrum One is a Nitro Optimistic Rollup (chain ID 42161) settling to Ethereum L1, and this runs through ArbOS exactly as a real call would. Send requests to https://arbitrum.therpc.io/YOUR_API_KEY.
stateDiff to validate that a prospective transaction changes exactly the storage and balances you expect — useful before a large Aave or GMX interaction.vmTrace type (past states require a trace-enabled archive node).| # | Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| 1 | transaction | object | Sim | Call object: `from?`, `to`, `gas?`, `gasPrice?`, `value?`, `data?`. |
| 2 | traceTypes | array | Sim | Array of trace types to include: `"trace"` (call tree), `"vmTrace"` (opcode-level), `"stateDiff"` (storage/balance diffs). |
| 3 | blockParameter | string | Não | Block state against which to simulate the call.Padrão: latest |
| Tipo | Descrição |
|---|---|
| object | `{output, trace?, stateDiff?, vmTrace?}` — `trace` is a flat call-tree array, `stateDiff` maps each touched address to its balance/nonce/code/storage diffs, `vmTrace` provides opcode-level detail (Parity-format). |
Try it live in the Arbitrum One playground.
| Código | Mensagem | Causa |
|---|---|---|
-32601 | Method not found | trace namespace not enabled or client does not support trace_call. |
-32602 | Invalid params | Transaction object missing required fields, traceTypes array is empty or contains unrecognized values, or blockParameter is invalid. |
-32000 | execution reverted | Simulated call reverted; partial trace is still returned. |
trace + vmTrace + stateDiff) can balloon the response on a complex Arbitrum One call — ask only for what you need.vmTrace format is Parity-specific and differs from Geth's debug_traceCall structLog — do not mix the two output shapes in your tooling.Parâmetros
Call object: `from?`, `to`, `gas?`, `gasPrice?`, `value?`, `data?`.
["trace"] | ["trace","vmTrace","stateDiff"] — at least one required
hex block number or "latest" | "earliest" | "pending"