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
Jan 21, 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

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

txHash

The hash of the transaction being traced

result

An object containing detailed information about the traced transaction

beforeEVMTransfers

An array representing EVM transfers that occurred before the execution of the transaction

purpose

(Optional) The purpose of the EVM transfer

from

(Optional) The Ethereum address initiating the transfer

to

(Optional) The Ethereum address receiving the transfer

value

(Optional) The value of the transfer, specified in hexadecimal format (Wei)

afterEVMTransfers

An array representing EVM transfers that occurred after the execution of the transaction

purpose

(Optional) The purpose of the EVM transfer

from

(Optional) The Ethereum address initiating the transfer

to

(Optional) The Ethereum address receiving the transfer

value

(Optional) The value of the transfer, specified in hexadecimal format (Wei)

from

The address the transaction is sent from

gas

The integer of the gas provided for the transaction execution

gasUsed

The integer of the gas used

to

The address the transaction is directed to

input

The data given at the time of input

calls

An array containing information about internal calls made during the transaction

from

The address making the call

gas

The gas limit specified for the call

gasUsed

The amount of gas used during the call

to

The address being called

input

The input data for the call

output

The output data of the call

value

The value (in Wei) sent with the call

type

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

value

The integer of the value sent with this transaction

type

The type of the call

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": [
5
{
6
"txHash": "0xff2cab1b9dd1ea097141e097a81a7fa5cc0a9db547c1c8704e1075dca7a66416",
7
"result": {
8
"afterEVMTransfers": [],
9
"beforeEVMTransfers": [],
10
"from": "0x00000000000000000000000000000000000a4b05",
11
"gas": "0x0",
12
"gasUsed": "0x0",
13
"input": "0x6bf6a42d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010cdd230000000000000000000000000000000000000000000000000000000000ccde120000000000000000000000000000000000000000000000000000000000000003",
14
"to": "0x00000000000000000000000000000000000a4b05",
15
"type": "CALL",
16
"value": "0x0"
17
}
18
},
19
{
20
"txHash": "0x8df16124831f2ce7c21ae55bd96d9665849d438f0f705122ab43a6b7a9c7f401",
21
"result": {
22
"afterEVMTransfers": [
23
{
24
"from": null,
25
"purpose": "gasRefund",
26
"to": "0xbebF987E8542e1E5408E6ED922b3867Fd3ca4b64",
27
"value": "0x170cdc1e00"
28
},
29
{
30
"from": null,
31
"purpose": "feeCollection",
32
"to": "0x9fCB6F75D99029f28F6F4a1d277bae49c5CAC79f",
33
"value": "0x8302f00480"
34
},
35
{
36
"from": null,
37
"purpose": "feeCollection",
38
"to": "0xa4B00000000000000000000000000000000000F6",
39
"value": "0x12e4522500"
40
}
41
],
42
"beforeEVMTransfers": [
43
{
44
"from": "0xbebF987E8542e1E5408E6ED922b3867Fd3ca4b64",
45
"purpose": "feePayment",
46
"to": null,
47
"value": "0xacf41e4780"
48
}
49
],
50
"calls": [
51
{
52
"from": "0x750ba8b76187092b0d1e87e28daaf484d1b5273b",
53
"gas": "0x9811",
54
"gasUsed": "0x904",
55
"input": "0x5c60da1b",
56
"output": "0x00000000000000000000000053923a0d1f4805463584c91b2e55d6c600a94e91",
57
"to": "0xd31ed16a8cece0a5070ac26024674eb680e3e639",
58
"type": "STATICCALL"
59
},
60
{
61
"from": "0x750ba8b76187092b0d1e87e28daaf484d1b5273b",
62
"gas": "0x84ac",
63
"gasUsed": "0x5ff2",
64
"input": "0x095ea7b300000000000000000000000028e0f3ebab59a998c4f1019358388b5e2ca92cfa000000000000000000000000000000000000000000000000000000002123e300",
65
"output": "0x0000000000000000000000000000000000000000000000000000000000000001",
66
"to": "0x53923a0d1f4805463584c91b2e55d6c600a94e91",
67
"type": "DELEGATECALL",
68
"value": "0x0"
69
}
70
],
71
"from": "0xbebf987e8542e1e5408e6ed922b3867fd3ca4b64",
72
"gas": "0x1222b",
73
"gasUsed": "0xfb7f",
74
"input": "0x095ea7b300000000000000000000000028e0f3ebab59a998c4f1019358388b5e2ca92cfa000000000000000000000000000000000000000000000000000000002123e300",
75
"output": "0x0000000000000000000000000000000000000000000000000000000000000001",
76
"to": "0x750ba8b76187092b0d1e87e28daaf484d1b5273b",
77
"type": "CALL",
78
"value": "0x0"
79
}
80
}
81
]
82
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": [
5
{
6
"txHash": "0xff2cab1b9dd1ea097141e097a81a7fa5cc0a9db547c1c8704e1075dca7a66416",
7
"result": {
8
"afterEVMTransfers": [],
9
"beforeEVMTransfers": [],
10
"from": "0x00000000000000000000000000000000000a4b05",
11
"gas": "0x0",
12
"gasUsed": "0x0",
13
"input": "0x6bf6a42d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010cdd230000000000000000000000000000000000000000000000000000000000ccde120000000000000000000000000000000000000000000000000000000000000003",
14
"to": "0x00000000000000000000000000000000000a4b05",
15
"type": "CALL",
16
"value": "0x0"
17
}
18
},
19
{
20
"txHash": "0x8df16124831f2ce7c21ae55bd96d9665849d438f0f705122ab43a6b7a9c7f401",
21
"result": {
22
"afterEVMTransfers": [
23
{
24
"from": null,
25
"purpose": "gasRefund",
26
"to": "0xbebF987E8542e1E5408E6ED922b3867Fd3ca4b64",
27
"value": "0x170cdc1e00"
28
},
29
{
30
"from": null,
31
"purpose": "feeCollection",
32
"to": "0x9fCB6F75D99029f28F6F4a1d277bae49c5CAC79f",
33
"value": "0x8302f00480"
34
},
35
{
36
"from": null,
37
"purpose": "feeCollection",
38
"to": "0xa4B00000000000000000000000000000000000F6",
39
"value": "0x12e4522500"
40
}
41
],
42
"beforeEVMTransfers": [
43
{
44
"from": "0xbebF987E8542e1E5408E6ED922b3867Fd3ca4b64",
45
"purpose": "feePayment",
46
"to": null,
47
"value": "0xacf41e4780"
48
}
49
],
50
"calls": [
51
{
52
"from": "0x750ba8b76187092b0d1e87e28daaf484d1b5273b",
53
"gas": "0x9811",
54
"gasUsed": "0x904",
55
"input": "0x5c60da1b",
56
"output": "0x00000000000000000000000053923a0d1f4805463584c91b2e55d6c600a94e91",
57
"to": "0xd31ed16a8cece0a5070ac26024674eb680e3e639",
58
"type": "STATICCALL"
59
},
60
{
61
"from": "0x750ba8b76187092b0d1e87e28daaf484d1b5273b",
62
"gas": "0x84ac",
63
"gasUsed": "0x5ff2",
64
"input": "0x095ea7b300000000000000000000000028e0f3ebab59a998c4f1019358388b5e2ca92cfa000000000000000000000000000000000000000000000000000000002123e300",
65
"output": "0x0000000000000000000000000000000000000000000000000000000000000001",
66
"to": "0x53923a0d1f4805463584c91b2e55d6c600a94e91",
67
"type": "DELEGATECALL",
68
"value": "0x0"
69
}
70
],
71
"from": "0xbebf987e8542e1e5408e6ed922b3867fd3ca4b64",
72
"gas": "0x1222b",
73
"gasUsed": "0xfb7f",
74
"input": "0x095ea7b300000000000000000000000028e0f3ebab59a998c4f1019358388b5e2ca92cfa000000000000000000000000000000000000000000000000000000002123e300",
75
"output": "0x0000000000000000000000000000000000000000000000000000000000000001",
76
"to": "0x750ba8b76187092b0d1e87e28daaf484d1b5273b",
77
"type": "CALL",
78
"value": "0x0"
79
}
80
}
81
]
82
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free