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...
from
string
Loading...
gas
string
Loading...
gasUsed
string
Loading...
to
string
Loading...
input
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...
value
string
Loading...
type
string
Loading...
Request
1
curl -X POST "https://docs-demo.plasma-mainnet.quiknode.pro/" \
2
-H "Content-Type: application/json" \
3
-d '{
4
"jsonrpc": "2.0",
5
"method": "debug_traceBlockByNumber",
6
"params": [
7
"0xBA2CD",
8
{
9
"tracer": "callTracer",
10
"tracerConfig": {
11
"onlyTopCall": false
12
}
13
}
14
],
15
"id": 1
16
}'
1
curl -X POST "https://docs-demo.plasma-mainnet.quiknode.pro/" \
2
-H "Content-Type: application/json" \
3
-d '{
4
"jsonrpc": "2.0",
5
"method": "debug_traceBlockByNumber",
6
"params": [
7
"0xBA2CD",
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": "0xdf47d65dd845073ce2c6cdfd264d624bf87fc4210892b67b9bb5899d54a3c71c",
7
"result": {
8
"calls": [
9
{
10
"from": "0x3c2269811836af69497e5f486a85d7316753cf62",
11
"gas": "0x2e970",
12
"gasUsed": "0x2a78",
13
"input": "0x3161b7f600000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000012200000000000000000000000000000000000000000000a0e70c49198e236d44b300000000000000000000000000000000000000000000000000000000042c1d800000000000000000000000000000000000000000000000000000000000000010",
14
"to": "0x4ee2f9b7cf3a68966c370f3eb2c16613d3235245",
15
"type": "DELEGATECALL",
16
"value": "0x0"
17
}
18
],
19
"from": "0x339d413ccefd986b1b3647a9cfa9cbbe70a30749",
20
"gas": "0x35f30",
21
"gasUsed": "0x9489",
22
"input": "0x3161b7f600000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000012200000000000000000000000000000000000000000000a0e70c49198e236d44b300000000000000000000000000000000000000000000000000000000042c1d800000000000000000000000000000000000000000000000000000000000000010",
23
"to": "0x3c2269811836af69497e5f486a85d7316753cf62",
24
"type": "CALL",
25
"value": "0x0"
26
}
27
},
28
{
29
"txHash": "0x10cc3c05a602d1c1339bde5f3c35a7c567e6b96ec0984df045998de5309194b4",
30
"result": {
31
"calls": [
32
{
33
"from": "0x3c2269811836af69497e5f486a85d7316753cf62",
34
"gas": "0x2e988",
35
"gasUsed": "0x2a78",
36
"input": "0x3161b7f60000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000b800000000000000000000000000000000000000000000a0e70c49198e236d44b30000000000000000000000000000000000000000000000000000000000550a320000000000000000000000000000000000000000000000000000000000000010",
37
"to": "0x4ee2f9b7cf3a68966c370f3eb2c16613d3235245",
38
"type": "DELEGATECALL",
39
"value": "0x0"
40
}
41
],
42
"from": "0x339d413ccefd986b1b3647a9cfa9cbbe70a30749",
43
"gas": "0x35f30",
44
"gasUsed": "0x9471",
45
"input": "0x3161b7f60000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000b800000000000000000000000000000000000000000000a0e70c49198e236d44b30000000000000000000000000000000000000000000000000000000000550a320000000000000000000000000000000000000000000000000000000000000010",
46
"to": "0x3c2269811836af69497e5f486a85d7316753cf62",
47
"type": "CALL",
48
"value": "0x0"
49
}
50
},
51
{
52
"txHash": "0xe2adc94f436029fc51c41ba3ded50c292bc3b170fbc5574507860f09506538e8",
53
"result": {
54
"calls": [
55
{
56
"from": "0x3c2269811836af69497e5f486a85d7316753cf62",
57
"gas": "0x2e97c",
58
"gasUsed": "0x2a78",
59
"input": "0x3161b7f600000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000006500000000000000000000000000000000000000000000a0e70c49198e236d44b3000000000000000000000000000000000000000000000000000000001f02c78e000000000000000000000000000000000000000000000000000000000000000c",
60
"to": "0x4ee2f9b7cf3a68966c370f3eb2c16613d3235245",
61
"type": "DELEGATECALL",
62
"value": "0x0"
63
}
64
],
65
"from": "0x339d413ccefd986b1b3647a9cfa9cbbe70a30749",
66
"gas": "0x35f30",
67
"gasUsed": "0x947d",
68
"input": "0x3161b7f600000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000006500000000000000000000000000000000000000000000a0e70c49198e236d44b3000000000000000000000000000000000000000000000000000000001f02c78e000000000000000000000000000000000000000000000000000000000000000c",
69
"to": "0x3c2269811836af69497e5f486a85d7316753cf62",
70
"type": "CALL",
71
"value": "0x0"
72
}
73
},
74
{
75
"txHash": "0x58140afbab35d992bcccaf9df2630ed2e4c179ab2ae132e4e7b0f252f4b562b5",
76
"result": {
77
"calls": [
78
{
79
"from": "0x3c2269811836af69497e5f486a85d7316753cf62",
80
"gas": "0x2e97c",
81
"gasUsed": "0x2a78",
82
"input": "0x3161b7f600000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000016f0000000000000000000000000000000000000000000001fa13e050d85ef86fe4000000000000000000000000000000000000000000000000000000002da2df000000000000000000000000000000000000000000000000000000000000000010",
83
"to": "0x4ee2f9b7cf3a68966c370f3eb2c16613d3235245",
84
"type": "DELEGATECALL",
85
"value": "0x0"
86
}
87
],
88
"from": "0x339d413ccefd986b1b3647a9cfa9cbbe70a30749",
89
"gas": "0x35f30",
90
"gasUsed": "0x947d",
91
"input": "0x3161b7f600000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000016f0000000000000000000000000000000000000000000001fa13e050d85ef86fe4000000000000000000000000000000000000000000000000000000002da2df000000000000000000000000000000000000000000000000000000000000000010",
92
"to": "0x3c2269811836af69497e5f486a85d7316753cf62",
93
"type": "CALL",
94
"value": "0x0"
95
}
96
}
97
]
98
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": [
5
{
6
"txHash": "0xdf47d65dd845073ce2c6cdfd264d624bf87fc4210892b67b9bb5899d54a3c71c",
7
"result": {
8
"calls": [
9
{
10
"from": "0x3c2269811836af69497e5f486a85d7316753cf62",
11
"gas": "0x2e970",
12
"gasUsed": "0x2a78",
13
"input": "0x3161b7f600000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000012200000000000000000000000000000000000000000000a0e70c49198e236d44b300000000000000000000000000000000000000000000000000000000042c1d800000000000000000000000000000000000000000000000000000000000000010",
14
"to": "0x4ee2f9b7cf3a68966c370f3eb2c16613d3235245",
15
"type": "DELEGATECALL",
16
"value": "0x0"
17
}
18
],
19
"from": "0x339d413ccefd986b1b3647a9cfa9cbbe70a30749",
20
"gas": "0x35f30",
21
"gasUsed": "0x9489",
22
"input": "0x3161b7f600000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000012200000000000000000000000000000000000000000000a0e70c49198e236d44b300000000000000000000000000000000000000000000000000000000042c1d800000000000000000000000000000000000000000000000000000000000000010",
23
"to": "0x3c2269811836af69497e5f486a85d7316753cf62",
24
"type": "CALL",
25
"value": "0x0"
26
}
27
},
28
{
29
"txHash": "0x10cc3c05a602d1c1339bde5f3c35a7c567e6b96ec0984df045998de5309194b4",
30
"result": {
31
"calls": [
32
{
33
"from": "0x3c2269811836af69497e5f486a85d7316753cf62",
34
"gas": "0x2e988",
35
"gasUsed": "0x2a78",
36
"input": "0x3161b7f60000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000b800000000000000000000000000000000000000000000a0e70c49198e236d44b30000000000000000000000000000000000000000000000000000000000550a320000000000000000000000000000000000000000000000000000000000000010",
37
"to": "0x4ee2f9b7cf3a68966c370f3eb2c16613d3235245",
38
"type": "DELEGATECALL",
39
"value": "0x0"
40
}
41
],
42
"from": "0x339d413ccefd986b1b3647a9cfa9cbbe70a30749",
43
"gas": "0x35f30",
44
"gasUsed": "0x9471",
45
"input": "0x3161b7f60000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000b800000000000000000000000000000000000000000000a0e70c49198e236d44b30000000000000000000000000000000000000000000000000000000000550a320000000000000000000000000000000000000000000000000000000000000010",
46
"to": "0x3c2269811836af69497e5f486a85d7316753cf62",
47
"type": "CALL",
48
"value": "0x0"
49
}
50
},
51
{
52
"txHash": "0xe2adc94f436029fc51c41ba3ded50c292bc3b170fbc5574507860f09506538e8",
53
"result": {
54
"calls": [
55
{
56
"from": "0x3c2269811836af69497e5f486a85d7316753cf62",
57
"gas": "0x2e97c",
58
"gasUsed": "0x2a78",
59
"input": "0x3161b7f600000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000006500000000000000000000000000000000000000000000a0e70c49198e236d44b3000000000000000000000000000000000000000000000000000000001f02c78e000000000000000000000000000000000000000000000000000000000000000c",
60
"to": "0x4ee2f9b7cf3a68966c370f3eb2c16613d3235245",
61
"type": "DELEGATECALL",
62
"value": "0x0"
63
}
64
],
65
"from": "0x339d413ccefd986b1b3647a9cfa9cbbe70a30749",
66
"gas": "0x35f30",
67
"gasUsed": "0x947d",
68
"input": "0x3161b7f600000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000006500000000000000000000000000000000000000000000a0e70c49198e236d44b3000000000000000000000000000000000000000000000000000000001f02c78e000000000000000000000000000000000000000000000000000000000000000c",
69
"to": "0x3c2269811836af69497e5f486a85d7316753cf62",
70
"type": "CALL",
71
"value": "0x0"
72
}
73
},
74
{
75
"txHash": "0x58140afbab35d992bcccaf9df2630ed2e4c179ab2ae132e4e7b0f252f4b562b5",
76
"result": {
77
"calls": [
78
{
79
"from": "0x3c2269811836af69497e5f486a85d7316753cf62",
80
"gas": "0x2e97c",
81
"gasUsed": "0x2a78",
82
"input": "0x3161b7f600000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000016f0000000000000000000000000000000000000000000001fa13e050d85ef86fe4000000000000000000000000000000000000000000000000000000002da2df000000000000000000000000000000000000000000000000000000000000000010",
83
"to": "0x4ee2f9b7cf3a68966c370f3eb2c16613d3235245",
84
"type": "DELEGATECALL",
85
"value": "0x0"
86
}
87
],
88
"from": "0x339d413ccefd986b1b3647a9cfa9cbbe70a30749",
89
"gas": "0x35f30",
90
"gasUsed": "0x947d",
91
"input": "0x3161b7f600000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000016f0000000000000000000000000000000000000000000001fa13e050d85ef86fe4000000000000000000000000000000000000000000000000000000002da2df000000000000000000000000000000000000000000000000000000000000000010",
92
"to": "0x3c2269811836af69497e5f486a85d7316753cf62",
93
"type": "CALL",
94
"value": "0x0"
95
}
96
}
97
]
98
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free