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
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

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
array

An array of transaction trace result objects

result
object

The result of the transaction trace

from
string

Sender address

gas
string

Gas provided for execution

gasUsed
string

Gas used during execution

to
string

Recipient address

input
string

Input data sent along with the call

calls
array

(Optional) The nested internal call traces

from
string

The sender address

gas
string

The gas provided for the call

gasUsed
string

The gas used by the call

to
string

The recipient address

input
string

Input data for the call

output
string

Output data returned by the call

value
string

Value transferred in the call

type
string

Type of the call

calls
array

Sub-calls made during this call

value
string

Value transferred in the call

type
string

Type of the call (e.g., CALL, STATICCALL, DELEGATECALL)

output
string

Output data returned by the call

txHash
string

The hash of the transaction

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": [
5
{
6
"result": {
7
"from": "0x00000000000000000000000000000001625f0000",
8
"gas": "0x1c9c380",
9
"gasUsed": "0x1c95c",
10
"to": "0x00000000000000000000000000000001625f2004",
11
"input": "0x8d4adfd500000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000652608e313f5a0000000000000000000000000000000000000000000000000000000000000000",
12
"calls": [
13
{
14
"from": "0x00000000000000000000000000000001625f2004",
15
"gas": "0x1c233e8",
16
"gasUsed": "0x27a8",
17
"to": "0x00000000000000000000000000000001625f2005",
18
"input": "0xb28f6645000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000",
19
"value": "0x0",
20
"type": "CALL"
21
},
22
{
23
"from": "0x00000000000000000000000000000001625f2004",
24
"gas": "0x1c201ba",
25
"gasUsed": "0xc0ee",
26
"to": "0x00000000000000000000000000000001625f2001",
27
"input": "0xc07352510000000000000000000000000000000000000000000000000000000000000006",
28
"output": "0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000030dd0fb2d8376b398b81b21e08f62c7cc9dea4d800000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000011349242670ce84800000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000026000000000000000000000000000000000000000000000000000000000000000308036b132d000cb779c7a5b86775b2f1317ef49b0f1d61add333d9bd1b45bc68cf3df52842ce87600b9d4bc04f2b645c1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060841b83e79793f05aab0d87cc62c0ffe8ae7de7a43b4166d4ff9ccc94da36d0ea5b66b937892892404d2bb57df4d731de04d4a49ad71c3e348850b9450d1125cfcb94482a2874bac0c12b5bd8158aaa29a52276b6c35323ce15bd04639be1ebdc000000000000000000000000000000000000000000000000000000000000007f7e2f646e732f6d61696e6e65742d797869612d322e677261766974792e78797a2f7463702f363138302f6e6f6973652d696b2f373364616666313233653934316632396133343963313431633862323164326439623463366565313137353163613063383663316362633638656537386334372f68616e647368616b652f3000000000000000000000000000000000000000000000000000000000000000007f7e2f646e732f6d61696e6e65742d797869612d322e677261766974792e78797a2f7463702f363139302f6e6f6973652d696b2f373364616666313233653934316632396133343963313431633862323164326439623463366565313137353163613063383663316362633638656537386334372f68616e647368616b652f3000",
29
"type": "STATICCALL"
30
},
31
{
32
"from": "0x00000000000000000000000000000001625f2004",
33
"gas": "0x1c12fb3",
34
"gasUsed": "0x1ba3",
35
"to": "0x00000000000000000000000000000001625f1000",
36
"input": "0x89b5de3c00000000000000000000000030dd0fb2d8376b398b81b21e08f62c7cc9dea4d8000000000000000000000000000000000000000000000000000652608e313f5a",
37
"value": "0x0",
38
"type": "CALL"
39
},
40
{
41
"from": "0x00000000000000000000000000000001625f2004",
42
"gas": "0x1c109a9",
43
"gasUsed": "0x2384",
44
"to": "0x00000000000000000000000000000001625f2003",
45
"input": "0x6041eae6",
46
"output": "0x0000000000000000000000000000000000000000000000000000000000000000",
47
"calls": [
48
{
49
"from": "0x00000000000000000000000000000001625f2003",
50
"gas": "0x1b9fac5",
51
"gasUsed": "0x15a",
52
"to": "0x00000000000000000000000000000001625f1000",
53
"input": "0xfc68bbde",
54
"output": "0x000000000000000000000000000000000000000000000000000652608e313f5a",
55
"type": "STATICCALL"
56
},
57
{
58
"from": "0x00000000000000000000000000000001625f2003",
59
"gas": "0x1b9ee1e",
60
"gasUsed": "0x93b",
61
"to": "0x00000000000000000000000000000001625f1005",
62
"input": "0xa0fe71da",
63
"output": "0x00000000000000000000000000000000000000000000000000000001ad274800",
64
"type": "STATICCALL"
65
}
66
],
67
"value": "0x0",
68
"type": "CALL"
69
},
70
{
71
"from": "0x00000000000000000000000000000001625f2004",
72
"gas": "0x1c0e544",
73
"gasUsed": "0x1a9",
74
"to": "0x00000000000000000000000000000001625f2003",
75
"input": "0x76671808",
76
"output": "0x0000000000000000000000000000000000000000000000000000000000000023",
77
"type": "STATICCALL"
78
}
79
],
80
"value": "0x0",
81
"type": "CALL"
82
},
83
"txHash": "0x091bd81bdfa55c663c48be7b4412d10f6533acbccac7beb43cdd7a8d3c945afc"
84
},
85
{
86
"result": {
87
"from": "0x43e4a1aa550a979582dc3449a6bd441f37f2f84c",
88
"gas": "0xea60",
89
"gasUsed": "0xc964",
90
"to": "0x779c127bd3b93efcefacf182e2ce4907765db997",
91
"input": "0xa9059cbb000000000000000000000000f9f5d67ea953a764b07e05bbad59d851544351e5000000000000000000000000000000000004d0985cb1d3608acc930223590000",
92
"output": "0x0000000000000000000000000000000000000000000000000000000000000001",
93
"value": "0x0",
94
"type": "CALL"
95
},
96
"txHash": "0xb0b276823f1c86213ea8f0c04471cd126392d4c9c4a536940c2bf4f3764c628f"
97
}
98
]
99
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": [
5
{
6
"result": {
7
"from": "0x00000000000000000000000000000001625f0000",
8
"gas": "0x1c9c380",
9
"gasUsed": "0x1c95c",
10
"to": "0x00000000000000000000000000000001625f2004",
11
"input": "0x8d4adfd500000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000652608e313f5a0000000000000000000000000000000000000000000000000000000000000000",
12
"calls": [
13
{
14
"from": "0x00000000000000000000000000000001625f2004",
15
"gas": "0x1c233e8",
16
"gasUsed": "0x27a8",
17
"to": "0x00000000000000000000000000000001625f2005",
18
"input": "0xb28f6645000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000",
19
"value": "0x0",
20
"type": "CALL"
21
},
22
{
23
"from": "0x00000000000000000000000000000001625f2004",
24
"gas": "0x1c201ba",
25
"gasUsed": "0xc0ee",
26
"to": "0x00000000000000000000000000000001625f2001",
27
"input": "0xc07352510000000000000000000000000000000000000000000000000000000000000006",
28
"output": "0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000030dd0fb2d8376b398b81b21e08f62c7cc9dea4d800000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000011349242670ce84800000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000026000000000000000000000000000000000000000000000000000000000000000308036b132d000cb779c7a5b86775b2f1317ef49b0f1d61add333d9bd1b45bc68cf3df52842ce87600b9d4bc04f2b645c1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060841b83e79793f05aab0d87cc62c0ffe8ae7de7a43b4166d4ff9ccc94da36d0ea5b66b937892892404d2bb57df4d731de04d4a49ad71c3e348850b9450d1125cfcb94482a2874bac0c12b5bd8158aaa29a52276b6c35323ce15bd04639be1ebdc000000000000000000000000000000000000000000000000000000000000007f7e2f646e732f6d61696e6e65742d797869612d322e677261766974792e78797a2f7463702f363138302f6e6f6973652d696b2f373364616666313233653934316632396133343963313431633862323164326439623463366565313137353163613063383663316362633638656537386334372f68616e647368616b652f3000000000000000000000000000000000000000000000000000000000000000007f7e2f646e732f6d61696e6e65742d797869612d322e677261766974792e78797a2f7463702f363139302f6e6f6973652d696b2f373364616666313233653934316632396133343963313431633862323164326439623463366565313137353163613063383663316362633638656537386334372f68616e647368616b652f3000",
29
"type": "STATICCALL"
30
},
31
{
32
"from": "0x00000000000000000000000000000001625f2004",
33
"gas": "0x1c12fb3",
34
"gasUsed": "0x1ba3",
35
"to": "0x00000000000000000000000000000001625f1000",
36
"input": "0x89b5de3c00000000000000000000000030dd0fb2d8376b398b81b21e08f62c7cc9dea4d8000000000000000000000000000000000000000000000000000652608e313f5a",
37
"value": "0x0",
38
"type": "CALL"
39
},
40
{
41
"from": "0x00000000000000000000000000000001625f2004",
42
"gas": "0x1c109a9",
43
"gasUsed": "0x2384",
44
"to": "0x00000000000000000000000000000001625f2003",
45
"input": "0x6041eae6",
46
"output": "0x0000000000000000000000000000000000000000000000000000000000000000",
47
"calls": [
48
{
49
"from": "0x00000000000000000000000000000001625f2003",
50
"gas": "0x1b9fac5",
51
"gasUsed": "0x15a",
52
"to": "0x00000000000000000000000000000001625f1000",
53
"input": "0xfc68bbde",
54
"output": "0x000000000000000000000000000000000000000000000000000652608e313f5a",
55
"type": "STATICCALL"
56
},
57
{
58
"from": "0x00000000000000000000000000000001625f2003",
59
"gas": "0x1b9ee1e",
60
"gasUsed": "0x93b",
61
"to": "0x00000000000000000000000000000001625f1005",
62
"input": "0xa0fe71da",
63
"output": "0x00000000000000000000000000000000000000000000000000000001ad274800",
64
"type": "STATICCALL"
65
}
66
],
67
"value": "0x0",
68
"type": "CALL"
69
},
70
{
71
"from": "0x00000000000000000000000000000001625f2004",
72
"gas": "0x1c0e544",
73
"gasUsed": "0x1a9",
74
"to": "0x00000000000000000000000000000001625f2003",
75
"input": "0x76671808",
76
"output": "0x0000000000000000000000000000000000000000000000000000000000000023",
77
"type": "STATICCALL"
78
}
79
],
80
"value": "0x0",
81
"type": "CALL"
82
},
83
"txHash": "0x091bd81bdfa55c663c48be7b4412d10f6533acbccac7beb43cdd7a8d3c945afc"
84
},
85
{
86
"result": {
87
"from": "0x43e4a1aa550a979582dc3449a6bd441f37f2f84c",
88
"gas": "0xea60",
89
"gasUsed": "0xc964",
90
"to": "0x779c127bd3b93efcefacf182e2ce4907765db997",
91
"input": "0xa9059cbb000000000000000000000000f9f5d67ea953a764b07e05bbad59d851544351e5000000000000000000000000000000000004d0985cb1d3608acc930223590000",
92
"output": "0x0000000000000000000000000000000000000000000000000000000000000001",
93
"value": "0x0",
94
"type": "CALL"
95
},
96
"txHash": "0xb0b276823f1c86213ea8f0c04471cd126392d4c9c4a536940c2bf4f3764c628f"
97
}
98
]
99
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free