Skip to main content
Returns the EVM execution traces for all transactions in a block identified by its number.
Debug methods replay all transactions in the block and are computationally expensive. Availability varies by node provider.

Parameters

block
string
required
Block number in hex, or "latest", "earliest", "safe", "finalized".
tracerConfig
object
Optional tracer configuration. See debug_traceTransaction for options.

Returns

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

Example

{
  "jsonrpc": "2.0",
  "method": "debug_traceBlockByNumber",
  "params": ["latest", {"tracer": "callTracer"}],
  "id": 1
}