Skip to main content

debug_traceBlockByNumber RPC Method

Loading...

Updated on
Mar 27, 2026

debug_traceBlockByNumber RPC Method

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
Loading...
object
object
REQUIRED
Loading...
tracer
string
Loading...
callTracer
string
Loading...
prestateTracer
string
Loading...
tracerConfig
object
Loading...
onlyTopCall
boolean
Loading...

Returns

result
array
Loading...
txHash
string
Loading...
result
object
Loading...
beforeEVMTransfers
array
Loading...
purpose
string
Loading...
from
string
Loading...
to
string
Loading...
value
string
Loading...
afterEVMTransfers
array
Loading...
purpose
string
Loading...
from
string
Loading...
to
string
Loading...
value
string
Loading...
from
string
Loading...
gas
string
Loading...
gasUsed
string
Loading...
to
string
Loading...
input
string
Loading...
value
string
Loading...
type
string
Loading...
calls
array
Loading...
from
string
Loading...
gas
string
Loading...
gasUsed
string
Loading...
to
string
Loading...
input
string
Loading...
output
string
Loading...
value
string
Loading...
type
string
Loading...
calls
array
Loading...
Request
1
curl -X POST "https://docs-demo.gravity-alpham.quiknode.pro/" \
2
-H "Content-Type: application/json" \
3
-d '{
4
"jsonrpc": "2.0",
5
"method": "debug_traceBlockByNumber",
6
"params": [
7
"0x2dc5da",
8
{
9
"tracer": "callTracer",
10
"tracerConfig": {
11
"onlyTopCall": false
12
}
13
}
14
],
15
"id": 1
16
}'
1
curl -X POST "https://docs-demo.gravity-alpham.quiknode.pro/" \
2
-H "Content-Type: application/json" \
3
-d '{
4
"jsonrpc": "2.0",
5
"method": "debug_traceBlockByNumber",
6
"params": [
7
"0x2dc5da",
8
{
9
"tracer": "callTracer",
10
"tracerConfig": {
11
"onlyTopCall": false
12
}
13
}
14
],
15
"id": 1
16
}'
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": [
5
{
6
"txHash": "0x0aa304003fbf17976b003458bb270cb285c7674288d85c8b7057237d3b715eb1",
7
"result": {
8
"beforeEVMTransfers": [],
9
"afterEVMTransfers": [],
10
"from": "0x00000000000000000000000000000000000a4b05",
11
"gas": "0x0",
12
"gasUsed": "0x0",
13
"to": "0x00000000000000000000000000000000000a4b05",
14
"input": "0x6bf6a42d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000013b3eea00000000000000000000000000000000000000000000000000000000002dc5da0000000000000000000000000000000000000000000000000000000000000002",
15
"value": "0x0",
16
"type": "CALL"
17
}
18
},
19
{
20
"txHash": "0xff5a6cab2c0cb98e63c46ca076d670487c1ec009ff8912b49755435a23accc5d",
21
"result": {
22
"beforeEVMTransfers": [
23
{
24
"purpose": "feePayment",
25
"from": "0xBd49C1F881872Ee078Bc5AAB9295f943c3b6e496",
26
"to": null,
27
"value": "0x574e950a13f2000"
28
}
29
],
30
"afterEVMTransfers": [
31
{
32
"purpose": "gasRefund",
33
"from": null,
34
"to": "0xBd49C1F881872Ee078Bc5AAB9295f943c3b6e496",
35
"value": "0x39b7752908b3000"
36
},
37
{
38
"purpose": "feeCollection",
39
"from": null,
40
"to": "0x6CBb552855CE5Eb70af49B76a8048be8E3799A05",
41
"value": "0x1d971fe10b3f000"
42
},
43
{
44
"purpose": "feeCollection",
45
"from": null,
46
"to": "0xa4B00000000000000000000000000000000000F6",
47
"value": "0x0"
48
}
49
],
50
"from": "0xbd49c1f881872ee078bc5aab9295f943c3b6e496",
51
"gas": "0x3554a",
52
"gasUsed": "0x12133",
53
"to": "0x0c11df9bb57c15926d5195b5f814c1a3ac07969c",
54
"input": "0xc794d5e000000000000000000000000097d9c79b468de92e836ef01b2dcfbd17f7771cc20000000000000000000000000000000000000000000000000000000001e0071e00000000000000000000000030de59dfa64f5bfb58de423f10b3b6f75125fc9a0000000000000000000000000000000000000000000000004563918244f4000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000004163e2e94855c777bda5de2c513f26d76755b50cde76d1ef0834e4c7a367667c9e17b72c18a02be47c3721b5451132eb5b1f377b20ddeca46eff2389faf79f77b61c00000000000000000000000000000000000000000000000000000000000000",
55
"calls": [
56
{
57
"from": "0x0c11df9bb57c15926d5195b5f814c1a3ac07969c",
58
"gas": "0x2da4e",
59
"gasUsed": "0xb1a8",
60
"to": "0x81f3eadb41604091312eb035fcd3f95fc7dc4305",
61
"input": "0xc794d5e000000000000000000000000097d9c79b468de92e836ef01b2dcfbd17f7771cc20000000000000000000000000000000000000000000000000000000001e0071e00000000000000000000000030de59dfa64f5bfb58de423f10b3b6f75125fc9a0000000000000000000000000000000000000000000000004563918244f4000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000004163e2e94855c777bda5de2c513f26d76755b50cde76d1ef0834e4c7a367667c9e17b72c18a02be47c3721b5451132eb5b1f377b20ddeca46eff2389faf79f77b61c00000000000000000000000000000000000000000000000000000000000000",
62
"calls": [
63
{
64
"from": "0x0c11df9bb57c15926d5195b5f814c1a3ac07969c",
65
"gas": "0x29631",
66
"gasUsed": "0xbb8",
67
"to": "0x0000000000000000000000000000000000000001",
68
"input": "0x8b3d6b3ced9a7d79c4615838f341a53e0b537bb12bb0b2c7e690d980648f1406000000000000000000000000000000000000000000000000000000000000001c63e2e94855c777bda5de2c513f26d76755b50cde76d1ef0834e4c7a367667c9e17b72c18a02be47c3721b5451132eb5b1f377b20ddeca46eff2389faf79f77b6",
69
"output": "0x00000000000000000000000093955adc230013c176746707855671c83df4d36e",
70
"type": "STATICCALL"
71
},
72
{
73
"from": "0x0c11df9bb57c15926d5195b5f814c1a3ac07969c",
74
"gas": "0x2722c",
75
"gasUsed": "0x4ce0",
76
"to": "0x97d9c79b468de92e836ef01b2dcfbd17f7771cc2",
77
"input": "0x40c10f1900000000000000000000000030de59dfa64f5bfb58de423f10b3b6f75125fc9a0000000000000000000000000000000000000000000000004563918244f40000",
78
"value": "0x0",
79
"type": "CALL"
80
}
81
],
82
"value": "0x0",
83
"type": "DELEGATECALL"
84
}
85
],
86
"value": "0x0",
87
"type": "CALL"
88
}
89
},
90
{
91
"txHash": "0x6f5cbc9df8a1c43d9c2e9d24f6686818ce6636b9d244b44c5d3392aac5e379a5",
92
"result": {
93
"beforeEVMTransfers": [
94
{
95
"purpose": "feePayment",
96
"from": "0xe92a87082a0800F97849a4278ab36414Da3f6548",
97
"to": null,
98
"value": "0x574e950a13f2000"
99
}
100
],
101
"afterEVMTransfers": [
102
{
103
"purpose": "gasRefund",
104
"from": null,
105
"to": "0xe92a87082a0800F97849a4278ab36414Da3f6548",
106
"value": "0x32e1d135a5b7000"
107
},
108
{
109
"purpose": "feeCollection",
110
"from": null,
111
"to": "0x6CBb552855CE5Eb70af49B76a8048be8E3799A05",
112
"value": "0x246cc3d46e3b000"
113
},
114
{
115
"purpose": "feeCollection",
116
"from": null,
117
"to": "0xa4B00000000000000000000000000000000000F6",
118
"value": "0x0"
119
}
120
],
121
"from": "0xe92a87082a0800f97849a4278ab36414da3f6548",
122
"gas": "0x3554a",
123
"gasUsed": "0x163ff",
124
"to": "0x0c11df9bb57c15926d5195b5f814c1a3ac07969c",
125
"input": "0xc794d5e0000000000000000000000000a433a2ea017001606e824c5e0c1a56d63f364e680000000000000000000000000000000000000000000000000000000001e007230000000000000000000000005520287c64e5300a0f8135c42e1b5fe0ecb5506e0000000000000000000000000000000000000000000000008ac7230489e8000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000041377101989cfee0350fb45bb1f37718ded37e60aa8c29e12067851d15eeeda0425ca60450e68479306cf50ab78763fa218e98e930b6d7e5f9bb25af677de2d0371c00000000000000000000000000000000000000000000000000000000000000",
126
"calls": [
127
{
128
"from": "0x0c11df9bb57c15926d5195b5f814c1a3ac07969c",
129
"gas": "0x2da4e",
130
"gasUsed": "0xf474",
131
"to": "0x81f3eadb41604091312eb035fcd3f95fc7dc4305",
132
"input": "0xc794d5e0000000000000000000000000a433a2ea017001606e824c5e0c1a56d63f364e680000000000000000000000000000000000000000000000000000000001e007230000000000000000000000005520287c64e5300a0f8135c42e1b5fe0ecb5506e0000000000000000000000000000000000000000000000008ac7230489e8000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000041377101989cfee0350fb45bb1f37718ded37e60aa8c29e12067851d15eeeda0425ca60450e68479306cf50ab78763fa218e98e930b6d7e5f9bb25af677de2d0371c00000000000000000000000000000000000000000000000000000000000000",
133
"calls": [
134
{
135
"from": "0x0c11df9bb57c15926d5195b5f814c1a3ac07969c",
136
"gas": "0x29631",
137
"gasUsed": "0xbb8",
138
"to": "0x0000000000000000000000000000000000000001",
139
"input": "0xc8dca10ad41cb1d9c94075bc1247ea31b5686af9ee6739e8fe7afdd6822e5d47000000000000000000000000000000000000000000000000000000000000001c377101989cfee0350fb45bb1f37718ded37e60aa8c29e12067851d15eeeda0425ca60450e68479306cf50ab78763fa218e98e930b6d7e5f9bb25af677de2d037",
140
"output": "0x00000000000000000000000093955adc230013c176746707855671c83df4d36e",
141
"type": "STATICCALL"
142
},
143
{
144
"from": "0x0c11df9bb57c15926d5195b5f814c1a3ac07969c",
145
"gas": "0x2722c",
146
"gasUsed": "0x8fac",
147
"to": "0xa433a2ea017001606e824c5e0c1a56d63f364e68",
148
"input": "0x40c10f190000000000000000000000005520287c64e5300a0f8135c42e1b5fe0ecb5506e0000000000000000000000000000000000000000000000008ac7230489e80000",
149
"value": "0x0",
150
"type": "CALL"
151
}
152
],
153
"value": "0x0",
154
"type": "DELEGATECALL"
155
}
156
],
157
"value": "0x0",
158
"type": "CALL"
159
}
160
}
161
]
162
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": [
5
{
6
"txHash": "0x0aa304003fbf17976b003458bb270cb285c7674288d85c8b7057237d3b715eb1",
7
"result": {
8
"beforeEVMTransfers": [],
9
"afterEVMTransfers": [],
10
"from": "0x00000000000000000000000000000000000a4b05",
11
"gas": "0x0",
12
"gasUsed": "0x0",
13
"to": "0x00000000000000000000000000000000000a4b05",
14
"input": "0x6bf6a42d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000013b3eea00000000000000000000000000000000000000000000000000000000002dc5da0000000000000000000000000000000000000000000000000000000000000002",
15
"value": "0x0",
16
"type": "CALL"
17
}
18
},
19
{
20
"txHash": "0xff5a6cab2c0cb98e63c46ca076d670487c1ec009ff8912b49755435a23accc5d",
21
"result": {
22
"beforeEVMTransfers": [
23
{
24
"purpose": "feePayment",
25
"from": "0xBd49C1F881872Ee078Bc5AAB9295f943c3b6e496",
26
"to": null,
27
"value": "0x574e950a13f2000"
28
}
29
],
30
"afterEVMTransfers": [
31
{
32
"purpose": "gasRefund",
33
"from": null,
34
"to": "0xBd49C1F881872Ee078Bc5AAB9295f943c3b6e496",
35
"value": "0x39b7752908b3000"
36
},
37
{
38
"purpose": "feeCollection",
39
"from": null,
40
"to": "0x6CBb552855CE5Eb70af49B76a8048be8E3799A05",
41
"value": "0x1d971fe10b3f000"
42
},
43
{
44
"purpose": "feeCollection",
45
"from": null,
46
"to": "0xa4B00000000000000000000000000000000000F6",
47
"value": "0x0"
48
}
49
],
50
"from": "0xbd49c1f881872ee078bc5aab9295f943c3b6e496",
51
"gas": "0x3554a",
52
"gasUsed": "0x12133",
53
"to": "0x0c11df9bb57c15926d5195b5f814c1a3ac07969c",
54
"input": "0xc794d5e000000000000000000000000097d9c79b468de92e836ef01b2dcfbd17f7771cc20000000000000000000000000000000000000000000000000000000001e0071e00000000000000000000000030de59dfa64f5bfb58de423f10b3b6f75125fc9a0000000000000000000000000000000000000000000000004563918244f4000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000004163e2e94855c777bda5de2c513f26d76755b50cde76d1ef0834e4c7a367667c9e17b72c18a02be47c3721b5451132eb5b1f377b20ddeca46eff2389faf79f77b61c00000000000000000000000000000000000000000000000000000000000000",
55
"calls": [
56
{
57
"from": "0x0c11df9bb57c15926d5195b5f814c1a3ac07969c",
58
"gas": "0x2da4e",
59
"gasUsed": "0xb1a8",
60
"to": "0x81f3eadb41604091312eb035fcd3f95fc7dc4305",
61
"input": "0xc794d5e000000000000000000000000097d9c79b468de92e836ef01b2dcfbd17f7771cc20000000000000000000000000000000000000000000000000000000001e0071e00000000000000000000000030de59dfa64f5bfb58de423f10b3b6f75125fc9a0000000000000000000000000000000000000000000000004563918244f4000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000004163e2e94855c777bda5de2c513f26d76755b50cde76d1ef0834e4c7a367667c9e17b72c18a02be47c3721b5451132eb5b1f377b20ddeca46eff2389faf79f77b61c00000000000000000000000000000000000000000000000000000000000000",
62
"calls": [
63
{
64
"from": "0x0c11df9bb57c15926d5195b5f814c1a3ac07969c",
65
"gas": "0x29631",
66
"gasUsed": "0xbb8",
67
"to": "0x0000000000000000000000000000000000000001",
68
"input": "0x8b3d6b3ced9a7d79c4615838f341a53e0b537bb12bb0b2c7e690d980648f1406000000000000000000000000000000000000000000000000000000000000001c63e2e94855c777bda5de2c513f26d76755b50cde76d1ef0834e4c7a367667c9e17b72c18a02be47c3721b5451132eb5b1f377b20ddeca46eff2389faf79f77b6",
69
"output": "0x00000000000000000000000093955adc230013c176746707855671c83df4d36e",
70
"type": "STATICCALL"
71
},
72
{
73
"from": "0x0c11df9bb57c15926d5195b5f814c1a3ac07969c",
74
"gas": "0x2722c",
75
"gasUsed": "0x4ce0",
76
"to": "0x97d9c79b468de92e836ef01b2dcfbd17f7771cc2",
77
"input": "0x40c10f1900000000000000000000000030de59dfa64f5bfb58de423f10b3b6f75125fc9a0000000000000000000000000000000000000000000000004563918244f40000",
78
"value": "0x0",
79
"type": "CALL"
80
}
81
],
82
"value": "0x0",
83
"type": "DELEGATECALL"
84
}
85
],
86
"value": "0x0",
87
"type": "CALL"
88
}
89
},
90
{
91
"txHash": "0x6f5cbc9df8a1c43d9c2e9d24f6686818ce6636b9d244b44c5d3392aac5e379a5",
92
"result": {
93
"beforeEVMTransfers": [
94
{
95
"purpose": "feePayment",
96
"from": "0xe92a87082a0800F97849a4278ab36414Da3f6548",
97
"to": null,
98
"value": "0x574e950a13f2000"
99
}
100
],
101
"afterEVMTransfers": [
102
{
103
"purpose": "gasRefund",
104
"from": null,
105
"to": "0xe92a87082a0800F97849a4278ab36414Da3f6548",
106
"value": "0x32e1d135a5b7000"
107
},
108
{
109
"purpose": "feeCollection",
110
"from": null,
111
"to": "0x6CBb552855CE5Eb70af49B76a8048be8E3799A05",
112
"value": "0x246cc3d46e3b000"
113
},
114
{
115
"purpose": "feeCollection",
116
"from": null,
117
"to": "0xa4B00000000000000000000000000000000000F6",
118
"value": "0x0"
119
}
120
],
121
"from": "0xe92a87082a0800f97849a4278ab36414da3f6548",
122
"gas": "0x3554a",
123
"gasUsed": "0x163ff",
124
"to": "0x0c11df9bb57c15926d5195b5f814c1a3ac07969c",
125
"input": "0xc794d5e0000000000000000000000000a433a2ea017001606e824c5e0c1a56d63f364e680000000000000000000000000000000000000000000000000000000001e007230000000000000000000000005520287c64e5300a0f8135c42e1b5fe0ecb5506e0000000000000000000000000000000000000000000000008ac7230489e8000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000041377101989cfee0350fb45bb1f37718ded37e60aa8c29e12067851d15eeeda0425ca60450e68479306cf50ab78763fa218e98e930b6d7e5f9bb25af677de2d0371c00000000000000000000000000000000000000000000000000000000000000",
126
"calls": [
127
{
128
"from": "0x0c11df9bb57c15926d5195b5f814c1a3ac07969c",
129
"gas": "0x2da4e",
130
"gasUsed": "0xf474",
131
"to": "0x81f3eadb41604091312eb035fcd3f95fc7dc4305",
132
"input": "0xc794d5e0000000000000000000000000a433a2ea017001606e824c5e0c1a56d63f364e680000000000000000000000000000000000000000000000000000000001e007230000000000000000000000005520287c64e5300a0f8135c42e1b5fe0ecb5506e0000000000000000000000000000000000000000000000008ac7230489e8000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000041377101989cfee0350fb45bb1f37718ded37e60aa8c29e12067851d15eeeda0425ca60450e68479306cf50ab78763fa218e98e930b6d7e5f9bb25af677de2d0371c00000000000000000000000000000000000000000000000000000000000000",
133
"calls": [
134
{
135
"from": "0x0c11df9bb57c15926d5195b5f814c1a3ac07969c",
136
"gas": "0x29631",
137
"gasUsed": "0xbb8",
138
"to": "0x0000000000000000000000000000000000000001",
139
"input": "0xc8dca10ad41cb1d9c94075bc1247ea31b5686af9ee6739e8fe7afdd6822e5d47000000000000000000000000000000000000000000000000000000000000001c377101989cfee0350fb45bb1f37718ded37e60aa8c29e12067851d15eeeda0425ca60450e68479306cf50ab78763fa218e98e930b6d7e5f9bb25af677de2d037",
140
"output": "0x00000000000000000000000093955adc230013c176746707855671c83df4d36e",
141
"type": "STATICCALL"
142
},
143
{
144
"from": "0x0c11df9bb57c15926d5195b5f814c1a3ac07969c",
145
"gas": "0x2722c",
146
"gasUsed": "0x8fac",
147
"to": "0xa433a2ea017001606e824c5e0c1a56d63f364e68",
148
"input": "0x40c10f190000000000000000000000005520287c64e5300a0f8135c42e1b5fe0ecb5506e0000000000000000000000000000000000000000000000008ac7230489e80000",
149
"value": "0x0",
150
"type": "CALL"
151
}
152
],
153
"value": "0x0",
154
"type": "DELEGATECALL"
155
}
156
],
157
"value": "0x0",
158
"type": "CALL"
159
}
160
}
161
]
162
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free