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
Aug 31, 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 result objects with the following fields:

result
object

A result array with the following fields:

calls
array

A list of sub-calls

from
string

The address from which the tokens are transferred.

gas
string

The gas limit or maximum amount of gas that can be used for executing the transaction

gasUsed
string

The gas used by the transaction

input
string

The data or input parameters for the transaction, typically encoded as hexadecimal

to
string

The address to which the tokens are transferred

type
string

The type of token (ERC-20, ERC-721 or ERC-1155 etc)

value
string

The token value

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

input
string

The data given at the time of input

to
string

The address the transaction is directed to

type
string

The type of the call

value
string

The integer of the value sent with this transaction

txHash
string

The hash of the transaction being traced

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"result": [
4
{
5
"result": {
6
"calls": [
7
{
8
"from": "0x4200000000000000000000000000000000000015",
9
"gas": "0xe9b75",
10
"gasUsed": "0x4889",
11
"input": "0x098999be00000558000c5fc50000000000000002000000006887e1040000000000873e7500000000000000000000000000000000000000000000000000000000000091ce000000000000000000000000000000000000000000000000000000000000000106b6fdd685cb71ce9bb57ba7ef82e4c4d62d8432dfc969788a4bae3935d3dec50000000000000000000000001caaaa58002a7e8b4c6f427ac2c943767b4d6cd7000000000000000000000000",
12
"to": "0xff256497d61dcd71a9e9ff43967c13fde1f72d12",
13
"type": "DELEGATECALL",
14
"value": "0x0"
15
}
16
],
17
"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",
18
"gas": "0xf4240",
19
"gasUsed": "0xb41c",
20
"input": "0x098999be00000558000c5fc50000000000000002000000006887e1040000000000873e7500000000000000000000000000000000000000000000000000000000000091ce000000000000000000000000000000000000000000000000000000000000000106b6fdd685cb71ce9bb57ba7ef82e4c4d62d8432dfc969788a4bae3935d3dec50000000000000000000000001caaaa58002a7e8b4c6f427ac2c943767b4d6cd7000000000000000000000000",
21
"to": "0x4200000000000000000000000000000000000015",
22
"type": "CALL",
23
"value": "0x0"
24
},
25
"txHash": "0x79b524d4305dfa348d3525b9da01239fed53ad4d645f3bc136bfe3e2b39ef779"
26
}
27
],
28
"id": 1
29
}
1
{
2
"jsonrpc": "2.0",
3
"result": [
4
{
5
"result": {
6
"calls": [
7
{
8
"from": "0x4200000000000000000000000000000000000015",
9
"gas": "0xe9b75",
10
"gasUsed": "0x4889",
11
"input": "0x098999be00000558000c5fc50000000000000002000000006887e1040000000000873e7500000000000000000000000000000000000000000000000000000000000091ce000000000000000000000000000000000000000000000000000000000000000106b6fdd685cb71ce9bb57ba7ef82e4c4d62d8432dfc969788a4bae3935d3dec50000000000000000000000001caaaa58002a7e8b4c6f427ac2c943767b4d6cd7000000000000000000000000",
12
"to": "0xff256497d61dcd71a9e9ff43967c13fde1f72d12",
13
"type": "DELEGATECALL",
14
"value": "0x0"
15
}
16
],
17
"from": "0xdeaddeaddeaddeaddeaddeaddeaddeaddead0001",
18
"gas": "0xf4240",
19
"gasUsed": "0xb41c",
20
"input": "0x098999be00000558000c5fc50000000000000002000000006887e1040000000000873e7500000000000000000000000000000000000000000000000000000000000091ce000000000000000000000000000000000000000000000000000000000000000106b6fdd685cb71ce9bb57ba7ef82e4c4d62d8432dfc969788a4bae3935d3dec50000000000000000000000001caaaa58002a7e8b4c6f427ac2c943767b4d6cd7000000000000000000000000",
21
"to": "0x4200000000000000000000000000000000000015",
22
"type": "CALL",
23
"value": "0x0"
24
},
25
"txHash": "0x79b524d4305dfa348d3525b9da01239fed53ad4d645f3bc136bfe3e2b39ef779"
26
}
27
],
28
"id": 1
29
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free