Skip to main content
Replays a transaction and returns its complete EVM execution trace, including every opcode executed, gas consumed at each step, stack contents, and storage changes.
Debug methods replay transactions and are computationally expensive. Availability and rate limits vary by node provider. Avoid calling these in hot paths.

Parameters

transactionHash
string
required
The 32-byte transaction hash to trace.
traceOptions
object
Optional tracing configuration.

Returns

result
object
The execution trace. Format depends on the tracer option.

Example

{
  "jsonrpc": "2.0",
  "method": "debug_traceTransaction",
  "params": [
    "0xb903239f8543d04b5dc1ba6579132b143087c68db1b2168786408fcbce568238",
    {}
  ],
  "id": 1
}