Skip to main content

debug_traceBlockByHash 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

blockHash
string

The hash of the block to be traced

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.

error
string

The error when the transaction failed, for example execution reverted.

revertReason
string

The revert reason when the transaction reverted, for example GAME:INVALID.

calls
array

An array of internal call frames. Omitted when the transaction has no sub-calls.

from
string

The address the call is sent from.

gas
string

The gas provided for the call, as a hexadecimal string.

gasUsed
string

The gas used by the call, as a hexadecimal string.

to
string

The address the call is directed to.

input
string

The call input data, as a hexadecimal string.

output
string

The call output data, as a hexadecimal string.

type
string

The call type. Observed values include CALL, STATICCALL, and DELEGATECALL.

value
string

The value sent with the call, as a hexadecimal string.

error
string

The error when the call failed, for example execution reverted.

revertReason
string

The revert reason when the call reverted, for example GAME:INVALID.

calls
array

Nested sub-calls. Each item uses the same internal call frame shape.

value
string

The integer of the value sent with this transaction.

type
string

The call type. Observed values include CALL, STATICCALL, and DELEGATECALL.

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