Trace and debug RPC methods: what trace nodes do

What debug_traceTransaction and the trace_ methods return, why tracing re-executes transactions, what state it needs and why it costs more than a call.

In short

A trace shows what happened inside a transaction, not only its result. A receipt tells you whether a transaction succeeded, how much gas it used and which events it emitted. A trace replays the transaction and returns every internal call between contracts, every value transfer inside them, the state each step changed, or even each single EVM instruction. Indexers, block explorers, debuggers and security tools depend on it.

This guide explains the two families of tracing methods, what each returns, why tracing needs historical state, and why providers count it as a heavy call.

What a receipt does not show

Standard JSON-RPC methods such as eth_getTransactionReceipt and eth_getLogs return what a transaction left behind: status, gas, logs.1 Three things are missing from that picture:

  • Internal calls. When a contract calls another contract, that call is not a transaction of its own and has no receipt.
  • Internal value transfers. Native coin sent from one contract to another inside a call appears in no log unless the contract emits one.
  • Where a failure happened. A reverted transaction tells you that it failed, not which nested call failed and why.

Tracing answers these questions by running the transaction again and recording what happens.

How tracing works

A tracing node takes the state just before the transaction, replays every earlier transaction of the same block, then executes the transaction itself with a tracer attached.2 The tracer observes each step and builds the requested output.

That design has two consequences. Tracing is computation, not lookup: the node does the work of executing the transaction again on every request. And the node needs the state that existed before the transaction, which for an old block means historical state.

The debug_ family

The debug_trace* methods originate in the go-ethereum client and are offered by many nodes:2

  • debug_traceTransaction replays one mined transaction.
  • debug_traceCall runs a call that was never sent, on top of the final state of a chosen block.
  • debug_traceBlockByNumber and debug_traceBlockByHash replay every transaction of a block.

What comes back depends on the tracer chosen:3

TracerReturnsTypical use
Default (struct logger)Every EVM step with opcode, gas and depth; stack, memory and storage optionalLow-level debugging, gas profiling
callTracerA tree of call frames: type, from, to, value, gas, input, output, errorInternal transactions, failure analysis
prestateTracerThe state the transaction touched; in diff mode only what it changed, before and afterState diffs, simulation checks

The default tracer is by far the largest output, because it records every instruction. The call tracer is the one most indexers use for internal transactions.

The trace_ family

The trace_* methods come from a different client tradition and are offered by clients that implement that namespace.4 They are grouped in two kinds:

  • Ad-hoc tracing. trace_call, trace_callMany, trace_rawTransaction, trace_replayTransaction and trace_replayBlockTransactions execute calls or replay transactions and return the requested trace types.4
  • Transaction-trace filtering. trace_transaction, trace_get, trace_block and trace_filter return the call traces of a transaction, a block or every transaction matching an address filter.4

Replay methods take a list of trace types: trace for the call-level traces, vmTrace for the detailed virtual machine execution and stateDiff for the balance, nonce, code and storage changes of each touched address.4

trace_filter is the method that answers "every internal call involving this address over a range of blocks". It is also the most expensive one, because it touches every transaction in that range.

Why tracing needs historical state

To replay a transaction from last year, the node needs the state from just before it. A node that keeps only recent state has to rebuild older state by re-executing blocks from an earlier point, and some clients refuse when the required state is too far back.2 An archive node keeps the state of every block and can trace any transaction without rebuilding.5

So there are in practice three capabilities:

  • A full node answers current-state calls and can trace recent transactions.
  • An archive node keeps every historical state and can trace old transactions.
  • A tracing-enabled node exposes the debug_ or trace_ namespace at all; not every node does, and some keep extra trace indexes.

Archive node vs full node explains the state side in detail, and What is an RPC node? covers the basics of JSON-RPC.

Why traces cost more

A normal read looks something up. A trace executes code, often many times, and can return megabytes of output. That is why nodes set timeouts on tracing; go-ethereum documents a default timeout of 5 seconds per traced transaction, which can be overridden.2 For the same reason, RPC providers usually weight trace calls more than standard reads and limit ranges.

Trace and debug on Blockmetric RPC

On the EVM chains it serves, Blockmetric RPC offers read-only tracing: the trace_* methods and the debug_trace* and debug_getRaw* methods.6 Debug methods that change node state are not offered.

  • Access. Blockmetric RPC is in early access, and which trace and debug methods an account can call is part of the agreement with each team. trace_transaction and trace_get, single-transaction traces, count as heavy reads.6
  • Weight. Trace, debug and heavy reads count two credits per call; standard reads count one.6 Every response reports its cost in a credits header.
  • Ranges. trace_filter takes at most 100 blocks between fromBlock and toBlock; wider scans are paged.6
  • Archive data is included, so old transactions can be traced where the agreement includes tracing.7

The method lists of each chain are on its page in the RPC docs, and limits and error codes on RPC limits. Access, limits and price are agreed per team through the request form on the RPC page.

Common questions

What is the difference between debug_traceTransaction and trace_transaction? Both replay a mined transaction. debug_traceTransaction returns the output of the tracer you choose, such as a call tree or every opcode step. trace_transaction returns call-level traces in the format of the trace_ namespace.

Do I need an archive node to trace a transaction? For recent transactions a full node is often enough. For old ones the node needs archive state or has to rebuild it, which may fail or time out.

How do I get internal transactions of an address? With trace_filter over a block range, or by tracing each relevant transaction with the call tracer. Both work in pages of blocks.

Next steps

Live data

See today’s numbers

The live pages update continuously.

Join RPC early access

Free plan: every coin, up to 30 days of history. Compare plans

Sources

  1. ethereum.org, "JSON-RPC API" (accessed 2026-11-11)Back to text
  2. go-ethereum documentation, "debug namespace" (accessed 2026-11-11)Back to text
  3. go-ethereum documentation, "Built-in tracers" (accessed 2026-11-11)Back to text
  4. Reth documentation, "trace namespace" (accessed 2026-11-11)Back to text
  5. ethereum.org, "Ethereum archive node" (accessed 2026-11-11)Back to text
  6. Blockmetric RPC docs, "Limits and errors" (accessed 2026-11-11)Back to text
  7. Blockmetric RPC product page (accessed 2026-11-11)Back to text

How we collect and check the data: Data & methodology.

Share this guide as a link or as an image card with its title.

LiveHyperliquid markets 17sOperationalHyperliquid positions & whales 14sOperationalLiquidation heatmap & levels 17sOperationalLighter markets & liquidations 39sOperationalLighter positions & heatmap 15sOperationalLighter on Robinhood Chain: positions & heatmap 14sOperationalAster markets 25sOperationalBinance markets 40sOperationalBybit markets 46sOperationalGate markets 19sOperationalHTX markets 1mOperationalKuCoin markets 23sOperationalBinance liquidations 38sOperationalBybit liquidations 38sOperationalGate liquidations 37sOperationalHTX liquidations 38sOperationaldYdX positions & heatmap 24sOperationalGMX positions & heatmap 21sOperationalLong/short & open interest history 1mOperationalOrder books & trade flow 14sOperationalOn-chain transfers 19sOperationalSecurity monitor 1mOperationalBlockmetric Sentiment 10mOperationalAgency releases 37sOperationalAlert delivery 17sOperationalDataset files 39mOperational16:46:50 UTC