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
Apr 03, 2026
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
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

result
array

An array of result objects, each containing transaction details

result
object

The result object for a single transaction

type
string

The type of transaction, e.g., 'Call'

from
string

The address initiating the transaction

to
string

The address receiving the transaction

gas
string

The gas provided for the transaction in hexadecimal

gasUsed
string

The gas used during transaction execution in hexadecimal

value
string

The value transferred in the transaction in hexadecimal

output
string

The transaction output data in hexadecimal

input
string

The transaction input data in hexadecimal

error
string

The error message if the transaction failed

revertReason
string

The revert reason if the transaction reverted

calls
array

Nested calls made during the transaction

type
string

The type of nested call

from
string

The address initiating the nested call

to
string

The address receiving the nested call

gas
string

The gas provided for the nested call in hexadecimal

gasUsed
string

The gas used during nested call execution in hexadecimal

value
string

The value transferred in the nested call in hexadecimal

output
string

The output data of the nested call in hexadecimal

input
string

The input data of the nested call in hexadecimal

error
string

The error message if the nested call failed

revertReason
string

The revert reason if the nested call reverted

calls
array

Further nested calls within the current call

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": [
5
{
6
"result": {
7
"type": "call",
8
"from": "0x0000000000000000000000000000000000000000",
9
"to": "0x0000000000000000000000000000000000008001",
10
"gas": "0x12cf52",
11
"gasUsed": "0xcc2a2",
12
"value": "0x0",
13
"output": "0x",
14
"input": "0x574caef35edef283c23a6810fa79d29ec1d8eebb5c42acc58b8629987c6bd082a19a262d00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000144b4e581f5000000000000000000000000e48bb6ff5c522d029553b4bf25698b9e1eded88b00000000000000000000000074b9ae28ec45e3fa11533c7954752597c3de3e7a000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
15
"error": null,
16
"revertReason": null,
17
"calls": [
18
{
19
"type": "call",
20
"from": "0x0000000000000000000000000000000000008001",
21
"to": "0x000000000000000000000000000000000000800b",
22
"gas": "0xf9cf1ab2",
23
"gasUsed": "0x15c",
24
"value": "0x0",
25
"output": "0x",
26
"input": "0x30e5ccbd",
27
"error": null,
28
"revertReason": null,
29
"calls": []
30
},
31
{
32
"type": "call",
33
"from": "0x0000000000000000000000000000000000008001",
34
"to": "0x000000000000000000000000000000000000800b",
35
"gas": "0xf9cf0cab",
36
"gasUsed": "0x6ef",
37
"value": "0x0",
38
"output": "0x",
39
"input": "0x06bed036000000000000000000000000000000000000000000000000000000000003aff10000000000000000000000000000000000000000000000000000000067978a922c2f9381727435bb5153f3caea143568b83310abebd8d9a514490274e0503e7500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001",
40
"error": null,
41
"revertReason": null,
42
"calls": [
43
{
44
"type": "call",
45
"from": "0x000000000000000000000000000000000000800b",
46
"to": "0x0000000000000000000000000000000000008010",
47
"gas": "0xf5e7cc9d",
48
"gasUsed": "0x9f",
49
"value": "0x0",
50
"output": "0x2c2f9381727435bb5153f3caea143568b83310abebd8d9a514490274e0503e75",
51
"input": "0x000000000000000000000000000000000000000000000000000000000003aff00000000000000000000000000000000000000000000000000000000067978a8ab81fe4e35ecd5c03fb72c288672a8033a9a57a3d1f120e7367d40592e4319b65821251c34b3b8cd7ebdc68276fbd79b03e8b01037b5e380050a0547ba236d68a",
52
"error": null,
53
"revertReason": null,
54
"calls": []
55
}
56
]
57
}
58
]
59
}
60
}
61
]
62
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": [
5
{
6
"result": {
7
"type": "call",
8
"from": "0x0000000000000000000000000000000000000000",
9
"to": "0x0000000000000000000000000000000000008001",
10
"gas": "0x12cf52",
11
"gasUsed": "0xcc2a2",
12
"value": "0x0",
13
"output": "0x",
14
"input": "0x574caef35edef283c23a6810fa79d29ec1d8eebb5c42acc58b8629987c6bd082a19a262d00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000144b4e581f5000000000000000000000000e48bb6ff5c522d029553b4bf25698b9e1eded88b00000000000000000000000074b9ae28ec45e3fa11533c7954752597c3de3e7a000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
15
"error": null,
16
"revertReason": null,
17
"calls": [
18
{
19
"type": "call",
20
"from": "0x0000000000000000000000000000000000008001",
21
"to": "0x000000000000000000000000000000000000800b",
22
"gas": "0xf9cf1ab2",
23
"gasUsed": "0x15c",
24
"value": "0x0",
25
"output": "0x",
26
"input": "0x30e5ccbd",
27
"error": null,
28
"revertReason": null,
29
"calls": []
30
},
31
{
32
"type": "call",
33
"from": "0x0000000000000000000000000000000000008001",
34
"to": "0x000000000000000000000000000000000000800b",
35
"gas": "0xf9cf0cab",
36
"gasUsed": "0x6ef",
37
"value": "0x0",
38
"output": "0x",
39
"input": "0x06bed036000000000000000000000000000000000000000000000000000000000003aff10000000000000000000000000000000000000000000000000000000067978a922c2f9381727435bb5153f3caea143568b83310abebd8d9a514490274e0503e7500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001",
40
"error": null,
41
"revertReason": null,
42
"calls": [
43
{
44
"type": "call",
45
"from": "0x000000000000000000000000000000000000800b",
46
"to": "0x0000000000000000000000000000000000008010",
47
"gas": "0xf5e7cc9d",
48
"gasUsed": "0x9f",
49
"value": "0x0",
50
"output": "0x2c2f9381727435bb5153f3caea143568b83310abebd8d9a514490274e0503e75",
51
"input": "0x000000000000000000000000000000000000000000000000000000000003aff00000000000000000000000000000000000000000000000000000000067978a8ab81fe4e35ecd5c03fb72c288672a8033a9a57a3d1f120e7367d40592e4319b65821251c34b3b8cd7ebdc68276fbd79b03e8b01037b5e380050a0547ba236d68a",
52
"error": null,
53
"revertReason": null,
54
"calls": []
55
}
56
]
57
}
58
]
59
}
60
}
61
]
62
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free