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 27, 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

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

The array of trace results, each containing a result object

object
object

The trace result wrapper object

result
object

The object containing detailed information about the traced transaction

from
string

The address the transaction is sent from

gas
string

The gas provided for the transaction execution encoded as hexadecimal

gasUsed
string

The gas used encoded as hexadecimal

to
string

The address the transaction is directed to

input
string

The input data provided with the transaction encoded as hexadecimal

calls
array

(Optional) The array of internal calls made during the transaction

object
object

The internal call object

from
string

The address making the call

gas
string

The gas limit specified for the call encoded as hexadecimal

gasUsed
string

The gas used during the call encoded as hexadecimal

to
string

The address being called

input
string

The input data for the call encoded as hexadecimal

value
string

The value in wei sent with the call encoded as hexadecimal

type
string

The type of call (e.g., CALL, STATICCALL, DELEGATECALL)

value
string

The value in wei sent with the transaction encoded as hexadecimal

type
string

The type of the call (e.g., CALL, STATICCALL, DELEGATECALL)

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": [
5
{
6
"result": {
7
"from": "0x464fc339add314932920d3e060745bd7ea3e92ad",
8
"gas": "0x4c4b40",
9
"gasUsed": "0x26a07",
10
"to": "0x81606e6f8aad6c75c2f383ea595c2b9f8ce8ae3a",
11
"input": "0x38ed17390000000000000000000000000000000000000000000000000000000001ab3f0000000000000000000000000000000000000000000000000060c64666d740c40000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000464fc339add314932920d3e060745bd7ea3e92ad00000000000000000000000000000000000000000000000000000000690a20950000000000000000000000000000000000000000000000000000000000000003000000000000000000000000c7d67a9cbb121b3b0b9c053dd9f469523243379a000000000000000000000000530000000000000000000000000000000000001100000000000000000000000055d1f1879969bdbb9960d269974564c58dbc3238",
12
"output": "0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000001ab3f00000000000000000000000000000000000000000000000000001c4d6ae441827f00000000000000000000000000000000000000000000000060cd3bb1b5b24228",
13
"calls": [
14
{
15
"from": "0x81606e6f8aad6c75c2f383ea595c2b9f8ce8ae3a",
16
"gas": "0x4aadce",
17
"gasUsed": "0x9d5",
18
"to": "0x00bf5210b24d371e3df88179da61b2cd83ab44ee",
19
"input": "0x0902f1ac",
20
"output": "0x0000000000000000000000000000000000000000000000005124cafba9d0dc0b00000000000000000000000000000000000000000000000000000004c2f99212000000000000000000000000000000000000000000000000000000006909f606",
21
"type": "STATICCALL"
22
},
23
{
24
"from": "0x81606e6f8aad6c75c2f383ea595c2b9f8ce8ae3a",
25
"gas": "0x4a90ee",
26
"gasUsed": "0x9d5",
27
"to": "0x222a6322011dc37de22e72093051a9417dc0d952",
28
"input": "0x0902f1ac",
29
"output": "0x0000000000000000000000000000000000000000000000003851ddc5c13fec030000000000000000000000000000000000000000000000c1aee59d38ff661824000000000000000000000000000000000000000000000000000000006909f703",
30
"type": "STATICCALL"
31
},
32
{
33
"from": "0x81606e6f8aad6c75c2f383ea595c2b9f8ce8ae3a",
34
"gas": "0x4a7220",
35
"gasUsed": "0x456d",
36
"to": "0xc7d67a9cbb121b3b0b9c053dd9f469523243379a",
37
"input": "0x23b872dd000000000000000000000000464fc339add314932920d3e060745bd7ea3e92ad00000000000000000000000000bf5210b24d371e3df88179da61b2cd83ab44ee0000000000000000000000000000000000000000000000000000000001ab3f00",
38
"output": "0x0000000000000000000000000000000000000000000000000000000000000001",
39
"calls": [
40
{
41
"from": "0xc7d67a9cbb121b3b0b9c053dd9f469523243379a",
42
"gas": "0x493e29",
43
"gasUsed": "0x3af1",
44
"to": "0x530000000000000000000000000000000000000d",
45
"input": "0x23b872dd000000000000000000000000464fc339add314932920d3e060745bd7ea3e92ad00000000000000000000000000bf5210b24d371e3df88179da61b2cd83ab44ee0000000000000000000000000000000000000000000000000000000001ab3f00",
46
"output": "0x0000000000000000000000000000000000000000000000000000000000000001",
47
"value": "0x0",
48
"type": "DELEGATECALL"
49
}
50
],
51
"value": "0x0",
52
"type": "CALL"
53
},
54
{
55
"from": "0x81606e6f8aad6c75c2f383ea595c2b9f8ce8ae3a",
56
"gas": "0x4a2166",
57
"gasUsed": "0xbc32",
58
"to": "0x00bf5210b24d371e3df88179da61b2cd83ab44ee",
59
"input": "0x022c0d9f000000000000000000000000000000000000000000000000001c4d6ae441827f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000222a6322011dc37de22e72093051a9417dc0d95200000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000",
60
"calls": [
61
{
62
"from": "0x00bf5210b24d371e3df88179da61b2cd83ab44ee",
63
"gas": "0x48c508",
64
"gasUsed": "0x316c",
65
"to": "0x5300000000000000000000000000000000000011",
66
"input": "0xa9059cbb000000000000000000000000222a6322011dc37de22e72093051a9417dc0d952000000000000000000000000000000000000000000000000001c4d6ae441827f",
67
"output": "0x0000000000000000000000000000000000000000000000000000000000000001",
68
"value": "0x0",
69
"type": "CALL"
70
},
71
{
72
"from": "0x00bf5210b24d371e3df88179da61b2cd83ab44ee",
73
"gas": "0x4891e2",
74
"gasUsed": "0x218",
75
"to": "0x5300000000000000000000000000000000000011",
76
"input": "0x70a0823100000000000000000000000000bf5210b24d371e3df88179da61b2cd83ab44ee",
77
"output": "0x00000000000000000000000000000000000000000000000051087d90c58f598c",
78
"type": "STATICCALL"
79
},
80
{
81
"from": "0x00bf5210b24d371e3df88179da61b2cd83ab44ee",
82
"gas": "0x488e2c",
83
"gasUsed": "0x2d8",
84
"to": "0xc7d67a9cbb121b3b0b9c053dd9f469523243379a",
85
"input": "0x70a0823100000000000000000000000000bf5210b24d371e3df88179da61b2cd83ab44ee",
86
"output": "0x00000000000000000000000000000000000000000000000000000004c4a4d112",
87
"calls": [
88
{
89
"from": "0xc7d67a9cbb121b3b0b9c053dd9f469523243379a",
90
"gas": "0x476b6e",
91
"gasUsed": "0x22c",
92
"to": "0x530000000000000000000000000000000000000d",
93
"input": "0x70a0823100000000000000000000000000bf5210b24d371e3df88179da61b2cd83ab44ee",
94
"output": "0x00000000000000000000000000000000000000000000000000000004c4a4d112",
95
"value": "0x0",
96
"type": "DELEGATECALL"
97
}
98
],
99
"type": "STATICCALL"
100
}
101
],
102
"value": "0x0",
103
"type": "CALL"
104
},
105
{
106
"from": "0x81606e6f8aad6c75c2f383ea595c2b9f8ce8ae3a",
107
"gas": "0x496040",
108
"gasUsed": "0xbd03",
109
"to": "0x222a6322011dc37de22e72093051a9417dc0d952",
110
"input": "0x022c0d9f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060cd3bb1b5b24228000000000000000000000000464fc339add314932920d3e060745bd7ea3e92ad00000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000",
111
"calls": [
112
{
113
"from": "0x222a6322011dc37de22e72093051a9417dc0d952",
114
"gas": "0x4806c8",
115
"gasUsed": "0x323d",
116
"to": "0x55d1f1879969bdbb9960d269974564c58dbc3238",
117
"input": "0xa9059cbb000000000000000000000000464fc339add314932920d3e060745bd7ea3e92ad00000000000000000000000000000000000000000000000060cd3bb1b5b24228",
118
"output": "0x0000000000000000000000000000000000000000000000000000000000000001",
119
"calls": [
120
{
121
"from": "0x55d1f1879969bdbb9960d269974564c58dbc3238",
122
"gas": "0x46e622",
123
"gasUsed": "0x318b",
124
"to": "0x530000000000000000000000000000000000000d",
125
"input": "0xa9059cbb000000000000000000000000464fc339add314932920d3e060745bd7ea3e92ad00000000000000000000000000000000000000000000000060cd3bb1b5b24228",
126
"output": "0x0000000000000000000000000000000000000000000000000000000000000001",
127
"value": "0x0",
128
"type": "DELEGATECALL"
129
}
130
],
131
"value": "0x0",
132
"type": "CALL"
133
},
134
{
135
"from": "0x222a6322011dc37de22e72093051a9417dc0d952",
136
"gas": "0x47d2e8",
137
"gasUsed": "0x218",
138
"to": "0x5300000000000000000000000000000000000011",
139
"input": "0x70a08231000000000000000000000000222a6322011dc37de22e72093051a9417dc0d952",
140
"output": "0x000000000000000000000000000000000000000000000000386e2b30a5816e82",
141
"type": "STATICCALL"
142
},
143
{
144
"from": "0x222a6322011dc37de22e72093051a9417dc0d952",
145
"gas": "0x47cf32",
146
"gasUsed": "0x2d8",
147
"to": "0x55d1f1879969bdbb9960d269974564c58dbc3238",
148
"input": "0x70a08231000000000000000000000000222a6322011dc37de22e72093051a9417dc0d952",
149
"output": "0x0000000000000000000000000000000000000000000000c14e18618749b3d5fc",
150
"calls": [
151
{
152
"from": "0x55d1f1879969bdbb9960d269974564c58dbc3238",
153
"gas": "0x46af70",
154
"gasUsed": "0x22c",
155
"to": "0x530000000000000000000000000000000000000d",
156
"input": "0x70a08231000000000000000000000000222a6322011dc37de22e72093051a9417dc0d952",
157
"output": "0x0000000000000000000000000000000000000000000000c14e18618749b3d5fc",
158
"value": "0x0",
159
"type": "DELEGATECALL"
160
}
161
],
162
"type": "STATICCALL"
163
}
164
],
165
"value": "0x0",
166
"type": "CALL"
167
}
168
],
169
"value": "0x0",
170
"type": "CALL"
171
}
172
}
173
]
174
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": [
5
{
6
"result": {
7
"from": "0x464fc339add314932920d3e060745bd7ea3e92ad",
8
"gas": "0x4c4b40",
9
"gasUsed": "0x26a07",
10
"to": "0x81606e6f8aad6c75c2f383ea595c2b9f8ce8ae3a",
11
"input": "0x38ed17390000000000000000000000000000000000000000000000000000000001ab3f0000000000000000000000000000000000000000000000000060c64666d740c40000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000464fc339add314932920d3e060745bd7ea3e92ad00000000000000000000000000000000000000000000000000000000690a20950000000000000000000000000000000000000000000000000000000000000003000000000000000000000000c7d67a9cbb121b3b0b9c053dd9f469523243379a000000000000000000000000530000000000000000000000000000000000001100000000000000000000000055d1f1879969bdbb9960d269974564c58dbc3238",
12
"output": "0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000001ab3f00000000000000000000000000000000000000000000000000001c4d6ae441827f00000000000000000000000000000000000000000000000060cd3bb1b5b24228",
13
"calls": [
14
{
15
"from": "0x81606e6f8aad6c75c2f383ea595c2b9f8ce8ae3a",
16
"gas": "0x4aadce",
17
"gasUsed": "0x9d5",
18
"to": "0x00bf5210b24d371e3df88179da61b2cd83ab44ee",
19
"input": "0x0902f1ac",
20
"output": "0x0000000000000000000000000000000000000000000000005124cafba9d0dc0b00000000000000000000000000000000000000000000000000000004c2f99212000000000000000000000000000000000000000000000000000000006909f606",
21
"type": "STATICCALL"
22
},
23
{
24
"from": "0x81606e6f8aad6c75c2f383ea595c2b9f8ce8ae3a",
25
"gas": "0x4a90ee",
26
"gasUsed": "0x9d5",
27
"to": "0x222a6322011dc37de22e72093051a9417dc0d952",
28
"input": "0x0902f1ac",
29
"output": "0x0000000000000000000000000000000000000000000000003851ddc5c13fec030000000000000000000000000000000000000000000000c1aee59d38ff661824000000000000000000000000000000000000000000000000000000006909f703",
30
"type": "STATICCALL"
31
},
32
{
33
"from": "0x81606e6f8aad6c75c2f383ea595c2b9f8ce8ae3a",
34
"gas": "0x4a7220",
35
"gasUsed": "0x456d",
36
"to": "0xc7d67a9cbb121b3b0b9c053dd9f469523243379a",
37
"input": "0x23b872dd000000000000000000000000464fc339add314932920d3e060745bd7ea3e92ad00000000000000000000000000bf5210b24d371e3df88179da61b2cd83ab44ee0000000000000000000000000000000000000000000000000000000001ab3f00",
38
"output": "0x0000000000000000000000000000000000000000000000000000000000000001",
39
"calls": [
40
{
41
"from": "0xc7d67a9cbb121b3b0b9c053dd9f469523243379a",
42
"gas": "0x493e29",
43
"gasUsed": "0x3af1",
44
"to": "0x530000000000000000000000000000000000000d",
45
"input": "0x23b872dd000000000000000000000000464fc339add314932920d3e060745bd7ea3e92ad00000000000000000000000000bf5210b24d371e3df88179da61b2cd83ab44ee0000000000000000000000000000000000000000000000000000000001ab3f00",
46
"output": "0x0000000000000000000000000000000000000000000000000000000000000001",
47
"value": "0x0",
48
"type": "DELEGATECALL"
49
}
50
],
51
"value": "0x0",
52
"type": "CALL"
53
},
54
{
55
"from": "0x81606e6f8aad6c75c2f383ea595c2b9f8ce8ae3a",
56
"gas": "0x4a2166",
57
"gasUsed": "0xbc32",
58
"to": "0x00bf5210b24d371e3df88179da61b2cd83ab44ee",
59
"input": "0x022c0d9f000000000000000000000000000000000000000000000000001c4d6ae441827f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000222a6322011dc37de22e72093051a9417dc0d95200000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000",
60
"calls": [
61
{
62
"from": "0x00bf5210b24d371e3df88179da61b2cd83ab44ee",
63
"gas": "0x48c508",
64
"gasUsed": "0x316c",
65
"to": "0x5300000000000000000000000000000000000011",
66
"input": "0xa9059cbb000000000000000000000000222a6322011dc37de22e72093051a9417dc0d952000000000000000000000000000000000000000000000000001c4d6ae441827f",
67
"output": "0x0000000000000000000000000000000000000000000000000000000000000001",
68
"value": "0x0",
69
"type": "CALL"
70
},
71
{
72
"from": "0x00bf5210b24d371e3df88179da61b2cd83ab44ee",
73
"gas": "0x4891e2",
74
"gasUsed": "0x218",
75
"to": "0x5300000000000000000000000000000000000011",
76
"input": "0x70a0823100000000000000000000000000bf5210b24d371e3df88179da61b2cd83ab44ee",
77
"output": "0x00000000000000000000000000000000000000000000000051087d90c58f598c",
78
"type": "STATICCALL"
79
},
80
{
81
"from": "0x00bf5210b24d371e3df88179da61b2cd83ab44ee",
82
"gas": "0x488e2c",
83
"gasUsed": "0x2d8",
84
"to": "0xc7d67a9cbb121b3b0b9c053dd9f469523243379a",
85
"input": "0x70a0823100000000000000000000000000bf5210b24d371e3df88179da61b2cd83ab44ee",
86
"output": "0x00000000000000000000000000000000000000000000000000000004c4a4d112",
87
"calls": [
88
{
89
"from": "0xc7d67a9cbb121b3b0b9c053dd9f469523243379a",
90
"gas": "0x476b6e",
91
"gasUsed": "0x22c",
92
"to": "0x530000000000000000000000000000000000000d",
93
"input": "0x70a0823100000000000000000000000000bf5210b24d371e3df88179da61b2cd83ab44ee",
94
"output": "0x00000000000000000000000000000000000000000000000000000004c4a4d112",
95
"value": "0x0",
96
"type": "DELEGATECALL"
97
}
98
],
99
"type": "STATICCALL"
100
}
101
],
102
"value": "0x0",
103
"type": "CALL"
104
},
105
{
106
"from": "0x81606e6f8aad6c75c2f383ea595c2b9f8ce8ae3a",
107
"gas": "0x496040",
108
"gasUsed": "0xbd03",
109
"to": "0x222a6322011dc37de22e72093051a9417dc0d952",
110
"input": "0x022c0d9f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060cd3bb1b5b24228000000000000000000000000464fc339add314932920d3e060745bd7ea3e92ad00000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000",
111
"calls": [
112
{
113
"from": "0x222a6322011dc37de22e72093051a9417dc0d952",
114
"gas": "0x4806c8",
115
"gasUsed": "0x323d",
116
"to": "0x55d1f1879969bdbb9960d269974564c58dbc3238",
117
"input": "0xa9059cbb000000000000000000000000464fc339add314932920d3e060745bd7ea3e92ad00000000000000000000000000000000000000000000000060cd3bb1b5b24228",
118
"output": "0x0000000000000000000000000000000000000000000000000000000000000001",
119
"calls": [
120
{
121
"from": "0x55d1f1879969bdbb9960d269974564c58dbc3238",
122
"gas": "0x46e622",
123
"gasUsed": "0x318b",
124
"to": "0x530000000000000000000000000000000000000d",
125
"input": "0xa9059cbb000000000000000000000000464fc339add314932920d3e060745bd7ea3e92ad00000000000000000000000000000000000000000000000060cd3bb1b5b24228",
126
"output": "0x0000000000000000000000000000000000000000000000000000000000000001",
127
"value": "0x0",
128
"type": "DELEGATECALL"
129
}
130
],
131
"value": "0x0",
132
"type": "CALL"
133
},
134
{
135
"from": "0x222a6322011dc37de22e72093051a9417dc0d952",
136
"gas": "0x47d2e8",
137
"gasUsed": "0x218",
138
"to": "0x5300000000000000000000000000000000000011",
139
"input": "0x70a08231000000000000000000000000222a6322011dc37de22e72093051a9417dc0d952",
140
"output": "0x000000000000000000000000000000000000000000000000386e2b30a5816e82",
141
"type": "STATICCALL"
142
},
143
{
144
"from": "0x222a6322011dc37de22e72093051a9417dc0d952",
145
"gas": "0x47cf32",
146
"gasUsed": "0x2d8",
147
"to": "0x55d1f1879969bdbb9960d269974564c58dbc3238",
148
"input": "0x70a08231000000000000000000000000222a6322011dc37de22e72093051a9417dc0d952",
149
"output": "0x0000000000000000000000000000000000000000000000c14e18618749b3d5fc",
150
"calls": [
151
{
152
"from": "0x55d1f1879969bdbb9960d269974564c58dbc3238",
153
"gas": "0x46af70",
154
"gasUsed": "0x22c",
155
"to": "0x530000000000000000000000000000000000000d",
156
"input": "0x70a08231000000000000000000000000222a6322011dc37de22e72093051a9417dc0d952",
157
"output": "0x0000000000000000000000000000000000000000000000c14e18618749b3d5fc",
158
"value": "0x0",
159
"type": "DELEGATECALL"
160
}
161
],
162
"type": "STATICCALL"
163
}
164
],
165
"value": "0x0",
166
"type": "CALL"
167
}
168
],
169
"value": "0x0",
170
"type": "CALL"
171
}
172
}
173
]
174
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free