Skip to main content

debug_traceBlockByNumberRange RPC Method

Returns the structured logs created during the execution of EVM between two blocks (including start) as a JSON object. That is, the result of tracing for a total of end-start+1 blocks is returned.

Updated on
Sep 22, 2025
This RPC method is included in the Free Trial with limited usage. Upgrade your plan to get full access and higher limits. Learn more on our pricing page.

Parameters

StartBlock
string
REQUIRED

The block number at which to begin tracing

EndBlock
string
REQUIRED

The block number at which to end tracing

object
object

The tracer object with the following fields:

tracer
string

The type of tracer. It could be callTracer or prestateTracer

callTracer
string

The calltracer keeps track of all call frames, including depth 0 calls, that are made during a transaction

prestateTracer
string

The prestateTracer replays the transaction and tracks every part of state that occured during the transaction

tracerConfig
object

The object to specify the configurations of the tracer

onlyTopCall
boolean

When set to true, this will only trace the primary (top-level) call and not any sub-calls. It eliminates the additional processing for each call frame

Returns

result
object

This field contains an object with the results of the block tracing for each block number in the specified range

block
string

The hexadecimal representation of the block number

hash
string

The unique hash of the block. Each block in the blockchain is uniquely identified by its hash

traces
string

An array of trace steps for the transaction

Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free