Skip to main content

debug_traceBlockByNumber RPC Method

Returns the tracing result by executing all transactions in the block specified by number with a tracer.

Updated on
Apr 03, 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

blockNumber
string
REQUIRED

The block number as a string in hexadecimal format or tags. The supported tag values include earliest for the earliest/genesis block, latest for the latest mined block, pending for the pending state/transactions, safe for the most recent secure block, and finalized for the most recent secure block accepted by more than 2/3 of validators

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
object

The result object 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 gas provided for the transaction execution

gasUsed
string

The gas used by the transaction

to
string

The address the transaction is directed to

input
string

The input data sent with the transaction

output
string

(Optional) The returned data from the transaction execution

error
string

(Optional) The error message if the transaction failed

revertReason
string

(Optional) The decoded revert reason if available

calls
array

(Optional) List of internal calls triggered 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, STATICCALL)

calls
array

(Optional) Recursive internal calls

value
string

The value (in Wei) sent with this transaction

type
string

The type of the outermost call

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": [
5
{
6
"txHash": "0xa747b7488abb2f8401bdbb0cd868494105e990726a93e253cddd17968ed91db1",
7
"result": {
8
"calls": [
9
{
10
"from": "0xbee97f13cc7a681436ee8de71926b8fad6f10b0f",
11
"gas": "0x1093e",
12
"gasUsed": "0x317d",
13
"input": "0xa9059cbb0000000000000000000000004ad948127fcc4605886696d880455f218c4b0425000000000000000000000000000000000000000000000008e354744520d07a2c",
14
"output": "0x0000000000000000000000000000000000000000000000000000000000000001",
15
"to": "0xa04bc7140c26fc9bb1f36b1a604c7a5a88fb0e70",
16
"type": "CALL",
17
"value": "0x0"
18
}
19
],
20
"from": "0x4ad948127fcc4605886696d880455f218c4b0425",
21
"gas": "0x2489d",
22
"gasUsed": "0x1413f",
23
"input": "0x3d18b912",
24
"to": "0xbee97f13cc7a681436ee8de71926b8fad6f10b0f",
25
"type": "CALL",
26
"value": "0x0"
27
}
28
},
29
{
30
"txHash": "0x06a23225fc8de20ddc37bccb2262e1519f3bdcb24eaed10b251d16a85e684c28",
31
"result": {
32
"from": "0x43b9f230c6328d42ae9674d15093b2093de24838",
33
"gas": "0x1339e",
34
"gasUsed": "0xd755",
35
"input": "0x4a502f3900000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000220000000000000000000000000000000000000000000000000000000006883737500000000000000000000000000000000000000000000000000000000000000030000000000000000000000000555e30da8f98308edb960aa94c0db47230d2b9c000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad3800000000000000000000000050c42deacd8fc9773493ed674b675be577f2634b000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001fd431800000000000000000000000000000000000000000000000000000056a5d7f338000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000b1a2bc2ec500000000000000000000000000000000000000000000000000000003e81a816a7a9900000000000000000000000000000000000000000000000000027f16d66a77fe00000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000000000adee1d61c000000000000000000000000000000000000000000000000000000001ad27480",
36
"to": "0x2a375567f5e13f6bd74fda7627df3b1af6bfa5a6",
37
"type": "CALL",
38
"value": "0x0"
39
}
40
}
41
]
42
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": [
5
{
6
"txHash": "0xa747b7488abb2f8401bdbb0cd868494105e990726a93e253cddd17968ed91db1",
7
"result": {
8
"calls": [
9
{
10
"from": "0xbee97f13cc7a681436ee8de71926b8fad6f10b0f",
11
"gas": "0x1093e",
12
"gasUsed": "0x317d",
13
"input": "0xa9059cbb0000000000000000000000004ad948127fcc4605886696d880455f218c4b0425000000000000000000000000000000000000000000000008e354744520d07a2c",
14
"output": "0x0000000000000000000000000000000000000000000000000000000000000001",
15
"to": "0xa04bc7140c26fc9bb1f36b1a604c7a5a88fb0e70",
16
"type": "CALL",
17
"value": "0x0"
18
}
19
],
20
"from": "0x4ad948127fcc4605886696d880455f218c4b0425",
21
"gas": "0x2489d",
22
"gasUsed": "0x1413f",
23
"input": "0x3d18b912",
24
"to": "0xbee97f13cc7a681436ee8de71926b8fad6f10b0f",
25
"type": "CALL",
26
"value": "0x0"
27
}
28
},
29
{
30
"txHash": "0x06a23225fc8de20ddc37bccb2262e1519f3bdcb24eaed10b251d16a85e684c28",
31
"result": {
32
"from": "0x43b9f230c6328d42ae9674d15093b2093de24838",
33
"gas": "0x1339e",
34
"gasUsed": "0xd755",
35
"input": "0x4a502f3900000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000220000000000000000000000000000000000000000000000000000000006883737500000000000000000000000000000000000000000000000000000000000000030000000000000000000000000555e30da8f98308edb960aa94c0db47230d2b9c000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad3800000000000000000000000050c42deacd8fc9773493ed674b675be577f2634b000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001fd431800000000000000000000000000000000000000000000000000000056a5d7f338000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000b1a2bc2ec500000000000000000000000000000000000000000000000000000003e81a816a7a9900000000000000000000000000000000000000000000000000027f16d66a77fe00000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000000000adee1d61c000000000000000000000000000000000000000000000000000000001ad27480",
36
"to": "0x2a375567f5e13f6bd74fda7627df3b1af6bfa5a6",
37
"type": "CALL",
38
"value": "0x0"
39
}
40
}
41
]
42
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free