Skip to main content

debug_traceBlockByHash RPC Method

Loading...

Updated on
Feb 13, 2026

debug_traceBlockByHash 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

blockHash
string
REQUIRED
Loading...
object
object
REQUIRED
Loading...
tracer
string
Loading...
callTracer
string
Loading...
prestateTracer
string
Loading...
tracerConfig
object
Loading...
onlyTopCall
boolean
Loading...

Returns

result
object
Loading...
txHash
string
Loading...
result
object
Loading...
from
string
Loading...
gas
string
Loading...
gasUsed
string
Loading...
to
string
Loading...
input
string
Loading...
output
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.0g-mainnet.quiknode.pro/" \
2
-H "Content-Type: application/json" \
3
-d '{
4
"jsonrpc": "2.0",
5
"method": "debug_traceBlockByHash",
6
"params": [
7
"0xdfbd608c64132fa7ee4c489028ac8d58ab9e03f45e3e63609dca312c8b4f444b",
8
{
9
"tracer": "callTracer"
10
}
11
],
12
"id": 1
13
}'
1
curl -X POST "https://docs-demo.0g-mainnet.quiknode.pro/" \
2
-H "Content-Type: application/json" \
3
-d '{
4
"jsonrpc": "2.0",
5
"method": "debug_traceBlockByHash",
6
"params": [
7
"0xdfbd608c64132fa7ee4c489028ac8d58ab9e03f45e3e63609dca312c8b4f444b",
8
{
9
"tracer": "callTracer"
10
}
11
],
12
"id": 1
13
}'
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": [
5
{
6
"txHash": "0xcf4592ad3fb5170bfa0d253dd0428692d4e43d43003946f2a5acbd394950e09d",
7
"result": {
8
"from": "0x2bd96b37616bc62f6a2aca56eda91b2b89214766",
9
"gas": "0x5208",
10
"gasUsed": "0x5208",
11
"input": "0x",
12
"to": "0x3de9cc4cfd031dcddd0acbf3ba69be3c27955a4d",
13
"type": "CALL",
14
"value": "0x723d225c0d28cffc20"
15
}
16
},
17
{
18
"txHash": "0x35ff67d36279def4badea6eaff600736f34cd035ae61f3b792d9b055f65c6d16",
19
"result": {
20
"calls": [
21
{
22
"calls": [
23
{
24
"from": "0x6a9c6b5507e322aa00eb9c45e80c07ab63acabb6",
25
"gas": "0x54ba8",
26
"gasUsed": "0x9f0",
27
"input": "0x6352211e000000000000000000000000000000000000000000000000000000000001824b",
28
"output": "0x000000000000000000000000a378cd9a07aa0c0d767c92069e0ca185d5b27283",
29
"to": "0x7565b7de18df5b4131bdc7abc6fa2d0a772c3fc5",
30
"type": "STATICCALL"
31
},
32
{
33
"from": "0x6a9c6b5507e322aa00eb9c45e80c07ab63acabb6",
34
"gas": "0x52e11",
35
"gasUsed": "0x220",
36
"input": "0x6352211e000000000000000000000000000000000000000000000000000000000001824b",
37
"output": "0x000000000000000000000000a378cd9a07aa0c0d767c92069e0ca185d5b27283",
38
"to": "0x7565b7de18df5b4131bdc7abc6fa2d0a772c3fc5",
39
"type": "STATICCALL"
40
},
41
{
42
"from": "0x6a9c6b5507e322aa00eb9c45e80c07ab63acabb6",
43
"gas": "0x4bb5e",
44
"gasUsed": "0x8cc4",
45
"input": "0x23b872dd000000000000000000000000ccd7af961ceda6bd383fea1ecc2ffaa410d991e90000000000000000000000006a9c6b5507e322aa00eb9c45e80c07ab63acabb6000000000000000000000000000000000000000000000004433e67300c6d0000",
46
"output": "0x0000000000000000000000000000000000000000000000000000000000000001",
47
"to": "0x1cd0690ff9a693f5ef2dd976660a8dafc81a109c",
48
"type": "CALL",
49
"value": "0x0"
50
},
51
{
52
"calls": [
53
{
54
"calls": [
55
{
56
"from": "0x6a9c6b5507e322aa00eb9c45e80c07ab63acabb6",
57
"gas": "0x7fe",
58
"gasUsed": "0x37",
59
"input": "0x",
60
"to": "0xa37064be25e7ae41954ba6327e65afd21086cbb2",
61
"type": "DELEGATECALL",
62
"value": "0x4433e67300c6d0000"
63
}
64
],
65
"from": "0x1cd0690ff9a693f5ef2dd976660a8dafc81a109c",
66
"gas": "0x8fc",
67
"gasUsed": "0x133",
68
"input": "0x",
69
"to": "0x6a9c6b5507e322aa00eb9c45e80c07ab63acabb6",
70
"type": "CALL",
71
"value": "0x4433e67300c6d0000"
72
}
73
],
74
"from": "0x6a9c6b5507e322aa00eb9c45e80c07ab63acabb6",
75
"gas": "0x42e5f",
76
"gasUsed": "0x2424",
77
"input": "0x2e1a7d4d000000000000000000000000000000000000000000000004433e67300c6d0000",
78
"to": "0x1cd0690ff9a693f5ef2dd976660a8dafc81a109c",
79
"type": "CALL",
80
"value": "0x0"
81
},
82
{
83
"from": "0x6a9c6b5507e322aa00eb9c45e80c07ab63acabb6",
84
"gas": "0x3efa3",
85
"gasUsed": "0x0",
86
"input": "0x",
87
"to": "0xa378cd9a07aa0c0d767c92069e0ca185d5b27283",
88
"type": "CALL",
89
"value": "0x4433e67300c6d0000"
90
}
91
],
92
"from": "0x6a9c6b5507e322aa00eb9c45e80c07ab63acabb6",
93
"gas": "0x58556",
94
"gasUsed": "0x1863d",
95
"input": "0xc52e5ad1000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000001824b000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000aa81c01f81f10800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
96
"to": "0xa37064be25e7ae41954ba6327e65afd21086cbb2",
97
"type": "DELEGATECALL",
98
"value": "0x0"
99
}
100
],
101
"from": "0xa378cd9a07aa0c0d767c92069e0ca185d5b27283",
102
"gas": "0x60699",
103
"gasUsed": "0x4d214",
104
"input": "0xc52e5ad1000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000001824b000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000aa81c01f81f10800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
105
"to": "0x6a9c6b5507e322aa00eb9c45e80c07ab63acabb6",
106
"type": "CALL",
107
"value": "0x0"
108
}
109
}
110
]
111
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": [
5
{
6
"txHash": "0xcf4592ad3fb5170bfa0d253dd0428692d4e43d43003946f2a5acbd394950e09d",
7
"result": {
8
"from": "0x2bd96b37616bc62f6a2aca56eda91b2b89214766",
9
"gas": "0x5208",
10
"gasUsed": "0x5208",
11
"input": "0x",
12
"to": "0x3de9cc4cfd031dcddd0acbf3ba69be3c27955a4d",
13
"type": "CALL",
14
"value": "0x723d225c0d28cffc20"
15
}
16
},
17
{
18
"txHash": "0x35ff67d36279def4badea6eaff600736f34cd035ae61f3b792d9b055f65c6d16",
19
"result": {
20
"calls": [
21
{
22
"calls": [
23
{
24
"from": "0x6a9c6b5507e322aa00eb9c45e80c07ab63acabb6",
25
"gas": "0x54ba8",
26
"gasUsed": "0x9f0",
27
"input": "0x6352211e000000000000000000000000000000000000000000000000000000000001824b",
28
"output": "0x000000000000000000000000a378cd9a07aa0c0d767c92069e0ca185d5b27283",
29
"to": "0x7565b7de18df5b4131bdc7abc6fa2d0a772c3fc5",
30
"type": "STATICCALL"
31
},
32
{
33
"from": "0x6a9c6b5507e322aa00eb9c45e80c07ab63acabb6",
34
"gas": "0x52e11",
35
"gasUsed": "0x220",
36
"input": "0x6352211e000000000000000000000000000000000000000000000000000000000001824b",
37
"output": "0x000000000000000000000000a378cd9a07aa0c0d767c92069e0ca185d5b27283",
38
"to": "0x7565b7de18df5b4131bdc7abc6fa2d0a772c3fc5",
39
"type": "STATICCALL"
40
},
41
{
42
"from": "0x6a9c6b5507e322aa00eb9c45e80c07ab63acabb6",
43
"gas": "0x4bb5e",
44
"gasUsed": "0x8cc4",
45
"input": "0x23b872dd000000000000000000000000ccd7af961ceda6bd383fea1ecc2ffaa410d991e90000000000000000000000006a9c6b5507e322aa00eb9c45e80c07ab63acabb6000000000000000000000000000000000000000000000004433e67300c6d0000",
46
"output": "0x0000000000000000000000000000000000000000000000000000000000000001",
47
"to": "0x1cd0690ff9a693f5ef2dd976660a8dafc81a109c",
48
"type": "CALL",
49
"value": "0x0"
50
},
51
{
52
"calls": [
53
{
54
"calls": [
55
{
56
"from": "0x6a9c6b5507e322aa00eb9c45e80c07ab63acabb6",
57
"gas": "0x7fe",
58
"gasUsed": "0x37",
59
"input": "0x",
60
"to": "0xa37064be25e7ae41954ba6327e65afd21086cbb2",
61
"type": "DELEGATECALL",
62
"value": "0x4433e67300c6d0000"
63
}
64
],
65
"from": "0x1cd0690ff9a693f5ef2dd976660a8dafc81a109c",
66
"gas": "0x8fc",
67
"gasUsed": "0x133",
68
"input": "0x",
69
"to": "0x6a9c6b5507e322aa00eb9c45e80c07ab63acabb6",
70
"type": "CALL",
71
"value": "0x4433e67300c6d0000"
72
}
73
],
74
"from": "0x6a9c6b5507e322aa00eb9c45e80c07ab63acabb6",
75
"gas": "0x42e5f",
76
"gasUsed": "0x2424",
77
"input": "0x2e1a7d4d000000000000000000000000000000000000000000000004433e67300c6d0000",
78
"to": "0x1cd0690ff9a693f5ef2dd976660a8dafc81a109c",
79
"type": "CALL",
80
"value": "0x0"
81
},
82
{
83
"from": "0x6a9c6b5507e322aa00eb9c45e80c07ab63acabb6",
84
"gas": "0x3efa3",
85
"gasUsed": "0x0",
86
"input": "0x",
87
"to": "0xa378cd9a07aa0c0d767c92069e0ca185d5b27283",
88
"type": "CALL",
89
"value": "0x4433e67300c6d0000"
90
}
91
],
92
"from": "0x6a9c6b5507e322aa00eb9c45e80c07ab63acabb6",
93
"gas": "0x58556",
94
"gasUsed": "0x1863d",
95
"input": "0xc52e5ad1000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000001824b000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000aa81c01f81f10800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
96
"to": "0xa37064be25e7ae41954ba6327e65afd21086cbb2",
97
"type": "DELEGATECALL",
98
"value": "0x0"
99
}
100
],
101
"from": "0xa378cd9a07aa0c0d767c92069e0ca185d5b27283",
102
"gas": "0x60699",
103
"gasUsed": "0x4d214",
104
"input": "0xc52e5ad1000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000001824b000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000aa81c01f81f10800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
105
"to": "0x6a9c6b5507e322aa00eb9c45e80c07ab63acabb6",
106
"type": "CALL",
107
"value": "0x0"
108
}
109
}
110
]
111
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free