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
Aug 7, 2024

debug_traceBlockByNumberRange RPC Method

Please note that this RPC method is available to all users on the Growth plan and higher. If you are using the Free or Starter plan, you will need to upgrade to utilize this method. See our pricing for more information.

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
1
curl https://docs-demo.kaia-kairos.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{
5
"method": "debug_traceBlockByNumberRange",
6
"id": 1,
7
"jsonrpc": "2.0",
8
"params": [
9
21,
10
30
11
]
12
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free