Skip to main content

trace_block RPC Method

Returns traces created at given block (Supported on Erigon).

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

Returns

result
array

The block traces, where each trace object contains the following fields (all values are hexadecimal unless otherwise noted):

action
object

The action object that describes the call context

from
string

The address of the sender

callType
string

The type of call (e.g., call, delegatecall, staticcall, etc.)

gas
string

The gas provided for the call

input
string

The input data sent with the call

to
string

The address of the recipient

value
string

The amount of wei sent with the call

blockHash
string

The hash of the block containing the traced transaction

blockNumber
integer

The block number of the traced transaction

error
string

(Optional) Error message if the call failed

result
object

The result of the traced call execution

gasUsed
string

The gas used by this specific call

output
string

The return value from the call, or empty if no RETURN was executed

subtraces
integer

The number of internal subtraces that occurred

traceAddress
array

The call hierarchy represented as an array of integers

transactionHash
string

The hash of the transaction that generated this trace

transactionPosition
integer

The index of the transaction in the block

type
string

The type of trace (e.g., call, create)

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": [
5
{
6
"action": {
7
"callType": "call",
8
"from": "0x07ce66c58b4b266096e16406ad2168d950bb0c45",
9
"to": "0xe414a5a72fa07ab0a0814922fd779730d43ad8b6",
10
"value": "0x0",
11
"gas": "0x37585c",
12
"input": "0x00000000000344df454639134c260c0c49f46dd8f2a4016c26c1cf1f4ef90e5e1928d756b9100a486775003cafd839688f44ef9cad21b500e2250c72eee6f7260d152628daba372434f7543cd1952401131f5ae1cbfefe8efbdf93da23fa4d39f14a817c25f56aa4abed7073e746aeb2cf0030d6982d0bf801e0000000000000002f"
13
},
14
"blockHash": "0x8d3d7ecbf58616b422fd08aa89d8c2da159095b92a1c8e6ad089dd9a502cde0f",
15
"blockNumber": 9009586,
16
"result": {
17
"gasUsed": "0xb4798",
18
"output": "0x"
19
},
20
"subtraces": 4,
21
"traceAddress": [],
22
"transactionHash": "0x9fcc52b51ca1314e847dfea0983170d1d87db629bd434307d4b141bdd25242c0",
23
"transactionPosition": 0,
24
"type": "call"
25
},
26
{
27
"action": {
28
"callType": "staticcall",
29
"from": "0xe414a5a72fa07ab0a0814922fd779730d43ad8b6",
30
"to": "0xec462cbffa8f385e6af8da003755b71e51451934",
31
"value": "0x0",
32
"gas": "0x36525d",
33
"input": "0xfba21b3d0000000000000000000000009f46dd8f2a4016c26c1cf1f4ef90e5e1928d756b000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000344df454639134c26"
34
},
35
"blockHash": "0x8d3d7ecbf58616b422fd08aa89d8c2da159095b92a1c8e6ad089dd9a502cde0f",
36
"blockNumber": 9009586,
37
"result": {
38
"gasUsed": "0x6586",
39
"output": "0x000000000000000000000000000000000000000000000000000000000319de5f"
40
},
41
"subtraces": 5,
42
"traceAddress": [
43
0
44
],
45
"transactionHash": "0x9fcc52b51ca1314e847dfea0983170d1d87db629bd434307d4b141bdd25242c0",
46
"transactionPosition": 0,
47
"type": "call"
48
},
49
{
50
"action": {
51
"callType": "staticcall",
52
"from": "0xec462cbffa8f385e6af8da003755b71e51451934",
53
"to": "0x9f46dd8f2a4016c26c1cf1f4ef90e5e1928d756b",
54
"value": "0x0",
55
"gas": "0x356c10",
56
"input": "0x1a686502"
57
},
58
"blockHash": "0x8d3d7ecbf58616b422fd08aa89d8c2da159095b92a1c8e6ad089dd9a502cde0f",
59
"blockNumber": 9009586,
60
"result": {
61
"gasUsed": "0x97e",
62
"output": "0x0000000000000000000000000000000000000000000000003d2571521fce39ab"
63
},
64
"subtraces": 0,
65
"traceAddress": [
66
0,
67
0
68
],
69
"transactionHash": "0x9fcc52b51ca1314e847dfea0983170d1d87db629bd434307d4b141bdd25242c0",
70
"transactionPosition": 0,
71
"type": "call"
72
}
73
]
74
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": [
5
{
6
"action": {
7
"callType": "call",
8
"from": "0x07ce66c58b4b266096e16406ad2168d950bb0c45",
9
"to": "0xe414a5a72fa07ab0a0814922fd779730d43ad8b6",
10
"value": "0x0",
11
"gas": "0x37585c",
12
"input": "0x00000000000344df454639134c260c0c49f46dd8f2a4016c26c1cf1f4ef90e5e1928d756b9100a486775003cafd839688f44ef9cad21b500e2250c72eee6f7260d152628daba372434f7543cd1952401131f5ae1cbfefe8efbdf93da23fa4d39f14a817c25f56aa4abed7073e746aeb2cf0030d6982d0bf801e0000000000000002f"
13
},
14
"blockHash": "0x8d3d7ecbf58616b422fd08aa89d8c2da159095b92a1c8e6ad089dd9a502cde0f",
15
"blockNumber": 9009586,
16
"result": {
17
"gasUsed": "0xb4798",
18
"output": "0x"
19
},
20
"subtraces": 4,
21
"traceAddress": [],
22
"transactionHash": "0x9fcc52b51ca1314e847dfea0983170d1d87db629bd434307d4b141bdd25242c0",
23
"transactionPosition": 0,
24
"type": "call"
25
},
26
{
27
"action": {
28
"callType": "staticcall",
29
"from": "0xe414a5a72fa07ab0a0814922fd779730d43ad8b6",
30
"to": "0xec462cbffa8f385e6af8da003755b71e51451934",
31
"value": "0x0",
32
"gas": "0x36525d",
33
"input": "0xfba21b3d0000000000000000000000009f46dd8f2a4016c26c1cf1f4ef90e5e1928d756b000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000344df454639134c26"
34
},
35
"blockHash": "0x8d3d7ecbf58616b422fd08aa89d8c2da159095b92a1c8e6ad089dd9a502cde0f",
36
"blockNumber": 9009586,
37
"result": {
38
"gasUsed": "0x6586",
39
"output": "0x000000000000000000000000000000000000000000000000000000000319de5f"
40
},
41
"subtraces": 5,
42
"traceAddress": [
43
0
44
],
45
"transactionHash": "0x9fcc52b51ca1314e847dfea0983170d1d87db629bd434307d4b141bdd25242c0",
46
"transactionPosition": 0,
47
"type": "call"
48
},
49
{
50
"action": {
51
"callType": "staticcall",
52
"from": "0xec462cbffa8f385e6af8da003755b71e51451934",
53
"to": "0x9f46dd8f2a4016c26c1cf1f4ef90e5e1928d756b",
54
"value": "0x0",
55
"gas": "0x356c10",
56
"input": "0x1a686502"
57
},
58
"blockHash": "0x8d3d7ecbf58616b422fd08aa89d8c2da159095b92a1c8e6ad089dd9a502cde0f",
59
"blockNumber": 9009586,
60
"result": {
61
"gasUsed": "0x97e",
62
"output": "0x0000000000000000000000000000000000000000000000003d2571521fce39ab"
63
},
64
"subtraces": 0,
65
"traceAddress": [
66
0,
67
0
68
],
69
"transactionHash": "0x9fcc52b51ca1314e847dfea0983170d1d87db629bd434307d4b141bdd25242c0",
70
"transactionPosition": 0,
71
"type": "call"
72
}
73
]
74
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free