Skip to main content

debug_traceBlockByNumber RPC Method

Replay the block that is already present in the database.

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

blockNumber
string

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
REQUIRED

The tracer object with the following fields:

tracer
string

The type of tracer. It could be callTracer or prestateTracer

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 trace results for each transaction in the block.

txHash
string

The hash of the transaction being traced.

result
object

An object containing detailed information about the traced transaction.

from
string

The address the transaction is sent from.

gas
string

The integer of the gas provided for the transaction execution.

gasUsed
string

The integer of the gas used.

to
string

The address the transaction is directed to.

input
string

The data given at the time of input.

output
string

The output data of the call.

calls
array

An array containing information about internal calls made during the transaction.

value
string

The integer of the value sent with this transaction.

type
string

The type of the call.

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