Skip to main content
Replays all transactions in a block identified by its hash and returns an execution trace for each.
Debug methods replay all transactions in the block and are computationally expensive. Availability varies by node provider.

Parameters

blockHash
string
required
The 32-byte block hash.
traceOptions
object
Optional trace configuration. Accepts the same fields as debug_traceTransaction.

Returns

result
array
An array of trace result objects, one per transaction in the block.

Example

{
  "jsonrpc": "2.0",
  "method": "debug_traceBlockByHash",
  "params": [
    "0x3a4e8c5d7f2b1a6e9d0c4f8b3e7a2d5c8f1b4e7a0d3c6f9b2e5a8d1c4f7b0e3",
    { "tracer": "callTracer" }
  ],
  "id": 1
}