Skip to main content

debug_traceBlockByNumber RPC Method

Returns the tracing result by executing all transactions in the block specified by number with a tracer.

Updated on
Mar 20, 2026
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. safe and finalized are only supported on Ethereum, Gnosis, Arbitrum, Arbitrum Nova, and Avalanche C-chain

object
object
REQUIRED

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

array
array

The array of transaction trace results

result
object

The trace result object containing the execution details of the transaction

calls
array

The list of internal call frames triggered during execution (may be nested)

type
string

The type of the call such as CALL, STATICCALL, or DELEGATECALL

from
string

The address the call was made from

gas
string

The amount of gas provided for the call encoded as a hexadecimal string

gasUsed
string

The amount of gas consumed during the call encoded as a hexadecimal string

input
string

Hex-encoded calldata sent with the call

output
string

Hex-encoded data returned from the call (empty 0x if none)

to
string

The address the call was made to

value
string

The amount of value transferred in wei encoded as a hexadecimal string

calls
array

(Optional) Nested internal sub-calls triggered by this call frame

error
string

(Optional) Error message if the call failed (e.g., execution reverted)

from
string

The address that initiated the top-level call

gas
string

Total gas provided for the top-level call encoded as a hexadecimal string

gasUsed
string

Total gas consumed by the top-level call encoded as a hexadecimal string

input
string

Hex-encoded calldata for the top-level call

output
string

Hex-encoded return data from the top-level call (0x if none)

to
string

The address targeted by the top-level call

type
string

The type of the top-level call such as CALL or STATICCALL

value
string

The value (wei) sent with the top-level call encoded as a hexadecimal string

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": [
5
{
6
"txHash": "0x5f8b82687c566ce0a91530430d7d6d4abf9708835e6dba3daac9d3c3ae6e543f",
7
"result": {
8
"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",
9
"gas": "0xf4240",
10
"gasUsed": "0xcc06",
11
"to": "0x4200000000000000000000000000000000000015",
12
"input": "0x440a5e20017e49ee00000000000000000000000000000000696a99bb0000000002701e6c00000000000000000000000000000000000000000000000000000000002924710000000000000000000000000000000000000000000000000000000000000001f8ee634e096101434fb523e0a307e26ef622d01d3044beda5f85e24eaad9be7f0000000000000000000000001af3f4e08a16b93ccbdf6887549697f17f9cf78a",
13
"calls": [
14
{
15
"from": "0x4200000000000000000000000000000000000015",
16
"gas": "0xe9b99",
17
"gasUsed": "0x6097",
18
"to": "0xc0d3c0d3c0d3c0d3c0d3c0d3c0d3c0d3c0d30015",
19
"input": "0x440a5e20017e49ee00000000000000000000000000000000696a99bb0000000002701e6c00000000000000000000000000000000000000000000000000000000002924710000000000000000000000000000000000000000000000000000000000000001f8ee634e096101434fb523e0a307e26ef622d01d3044beda5f85e24eaad9be7f0000000000000000000000001af3f4e08a16b93ccbdf6887549697f17f9cf78a",
20
"value": "0x0",
21
"type": "DELEGATECALL"
22
}
23
],
24
"value": "0x0",
25
"type": "CALL"
26
}
27
}
28
]
29
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": [
5
{
6
"txHash": "0x5f8b82687c566ce0a91530430d7d6d4abf9708835e6dba3daac9d3c3ae6e543f",
7
"result": {
8
"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",
9
"gas": "0xf4240",
10
"gasUsed": "0xcc06",
11
"to": "0x4200000000000000000000000000000000000015",
12
"input": "0x440a5e20017e49ee00000000000000000000000000000000696a99bb0000000002701e6c00000000000000000000000000000000000000000000000000000000002924710000000000000000000000000000000000000000000000000000000000000001f8ee634e096101434fb523e0a307e26ef622d01d3044beda5f85e24eaad9be7f0000000000000000000000001af3f4e08a16b93ccbdf6887549697f17f9cf78a",
13
"calls": [
14
{
15
"from": "0x4200000000000000000000000000000000000015",
16
"gas": "0xe9b99",
17
"gasUsed": "0x6097",
18
"to": "0xc0d3c0d3c0d3c0d3c0d3c0d3c0d3c0d3c0d30015",
19
"input": "0x440a5e20017e49ee00000000000000000000000000000000696a99bb0000000002701e6c00000000000000000000000000000000000000000000000000000000002924710000000000000000000000000000000000000000000000000000000000000001f8ee634e096101434fb523e0a307e26ef622d01d3044beda5f85e24eaad9be7f0000000000000000000000001af3f4e08a16b93ccbdf6887549697f17f9cf78a",
20
"value": "0x0",
21
"type": "DELEGATECALL"
22
}
23
],
24
"value": "0x0",
25
"type": "CALL"
26
}
27
}
28
]
29
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free