debug_traceBlockByNumber RPC Method
Please note that this RPC method is available to all users on the Build plan and higher. If you are using the Free plan, you will need to upgrade to utilize this method. See our pricing for more information.
Parameters
blockNumber
string
REQUIRED
The block number as a string in hexadecimal format or tags. The supported tag values include earliest for the earliest/genesis block, latest for the latest mined block, pending for the pending state/transactions, safe for the most recent secure block, and finalized for the most recent secure block accepted by more than 2/3 of validators
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
array
An array of traced transaction results
txHash
string
The hash of the transaction being traced
result
object
Details about the traced transaction execution
from
string
The address the transaction is sent from
gas
string
The gas provided for the transaction
gasUsed
string
The gas consumed during execution
to
string
The address the transaction is sent to
input
string
The input data for the transaction
calls
array
Internal calls made during the transaction execution
from
string
The address initiating the call
gas
string
The gas provided for the call
gasUsed
string
The gas used by the call
to
string
The address targeted by the call
input
string
The input data sent with the call
value
string
The amount of wei sent with the call
type
string
The type of call (e.g., CALL)
value
string
The amount of wei sent with the transaction
type
string
The transaction type (e.g., CALL)
Request
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free