Skip to main content

debug_traceBlockByHash RPC Method

Returns the possible tracing result number by executing all transactions in the block specified by the block hash 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

blockHash
string
REQUIRED

The hash of the block to be traced

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

The result array which contains the following fields:

txHash
string

The hash of the transaction being traced

result
object

An object containing detailed information about the traced transaction

from
string

The address the transaction is sent from

gas
string

The integer of the gas provided for the transaction execution

gasUsed
string

The integer of the gas used

to
string

The address the transaction is directed to

input
string

The data given at the time of input

output
string

(Optional) The output data of the call

calls
array

(Optional) An array containing information about internal calls made during the transaction

from
string

The address making the call

gas
string

The gas limit specified for the call

gasUsed
string

The amount of gas used during the call

to
string

The address being called

input
string

The input data for the call

output
string

(Optional) The output data of the call

value
string

The value (in Wei) sent with the call

type
string

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

value
string

The integer of the value sent with this transaction

type
string

The type of the call

Request
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