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

An array of traced transaction results

txHash
string

The hash of the transaction being traced

result
object

Details about the traced transaction execution

from
string

The address the transaction is sent from

gas
string

The gas provided for the transaction

gasUsed
string

The gas consumed during execution

to
string

The address the transaction is sent to

input
string

The input data for the transaction

calls
array

Internal calls made during the transaction execution

from
string

The address initiating the call

gas
string

The gas provided for the call

gasUsed
string

The gas used by the call

to
string

The address targeted by the call

input
string

The input data sent with the call

value
string

The amount of wei sent with the call

type
string

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

value
string

The amount of wei sent with the transaction

type
string

The transaction type (e.g., CALL)

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": [
5
{
6
"result": {
7
"from": "0x1a2a5e805342d5139111488c59d72832055a3e8f",
8
"gas": "0x24dce",
9
"gasUsed": "0x24935",
10
"to": "0x5362874e334bb5a2c8083a2cf2eb3db6f3d8e33c",
11
"input": "0x15373e3d000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000001",
12
"calls": [
13
{
14
"from": "0x5362874e334bb5a2c8083a2cf2eb3db6f3d8e33c",
15
"gas": "0x1c51a",
16
"gasUsed": "0xc208",
17
"to": "0x63d1447d01432e18ac769968fdf78ccc70015172",
18
"input": "0xfcc77c180000000000000000000000001a2a5e805342d5139111488c59d72832055a3e8f0000000000000000000000000000000000000000000000000000000000000000",
19
"output": "0x0000000000000000000000000000000000000000000000000000000000000064",
20
"calls": [
21
{
22
"from": "0x63d1447d01432e18ac769968fdf78ccc70015172",
23
"gas": "0x1992e",
24
"gasUsed": "0x1419",
25
"to": "0x403ecf8ba28e58ce4d1847c1c95ac54651fab151",
26
"input": "0xc2bc2efc0000000000000000000000001a2a5e805342d5139111488c59d72832055a3e8f",
27
"output": "0x00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000bc6418ce24fd96fe86f799a7f3167dcc2ea028a8562e1d88bf2282abc3992fb1",
28
"type": "STATICCALL"
29
},
30
{
31
"from": "0x63d1447d01432e18ac769968fdf78ccc70015172",
32
"gas": "0x178e6",
33
"gasUsed": "0x71a3",
34
"to": "0x5cf1bf680fff2ecb146ef977bf46c4cae46ba4c6",
35
"input": "0x861a34bd0000000000000000000000000000000000000000000000000000000000000002",
36
"output": "0x0000000000000000000000000000000000000000000000000000000000000064",
37
"type": "STATICCALL"
38
}
39
],
40
"type": "STATICCALL"
41
}
42
],
43
"value": "0x0",
44
"type": "CALL"
45
},
46
"txHash": "0xe9e55413b4d0b2c1beab8cda113c7a2c25c9b1b2b24aba3a4b651f0943912e17"
47
}
48
]
49
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": [
5
{
6
"result": {
7
"from": "0x1a2a5e805342d5139111488c59d72832055a3e8f",
8
"gas": "0x24dce",
9
"gasUsed": "0x24935",
10
"to": "0x5362874e334bb5a2c8083a2cf2eb3db6f3d8e33c",
11
"input": "0x15373e3d000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000001",
12
"calls": [
13
{
14
"from": "0x5362874e334bb5a2c8083a2cf2eb3db6f3d8e33c",
15
"gas": "0x1c51a",
16
"gasUsed": "0xc208",
17
"to": "0x63d1447d01432e18ac769968fdf78ccc70015172",
18
"input": "0xfcc77c180000000000000000000000001a2a5e805342d5139111488c59d72832055a3e8f0000000000000000000000000000000000000000000000000000000000000000",
19
"output": "0x0000000000000000000000000000000000000000000000000000000000000064",
20
"calls": [
21
{
22
"from": "0x63d1447d01432e18ac769968fdf78ccc70015172",
23
"gas": "0x1992e",
24
"gasUsed": "0x1419",
25
"to": "0x403ecf8ba28e58ce4d1847c1c95ac54651fab151",
26
"input": "0xc2bc2efc0000000000000000000000001a2a5e805342d5139111488c59d72832055a3e8f",
27
"output": "0x00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000bc6418ce24fd96fe86f799a7f3167dcc2ea028a8562e1d88bf2282abc3992fb1",
28
"type": "STATICCALL"
29
},
30
{
31
"from": "0x63d1447d01432e18ac769968fdf78ccc70015172",
32
"gas": "0x178e6",
33
"gasUsed": "0x71a3",
34
"to": "0x5cf1bf680fff2ecb146ef977bf46c4cae46ba4c6",
35
"input": "0x861a34bd0000000000000000000000000000000000000000000000000000000000000002",
36
"output": "0x0000000000000000000000000000000000000000000000000000000000000064",
37
"type": "STATICCALL"
38
}
39
],
40
"type": "STATICCALL"
41
}
42
],
43
"value": "0x0",
44
"type": "CALL"
45
},
46
"txHash": "0xe9e55413b4d0b2c1beab8cda113c7a2c25c9b1b2b24aba3a4b651f0943912e17"
47
}
48
]
49
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free