Skip to main content

trace_transaction RPC Method

Returns all traces of given transaction(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

hash
string
REQUIRED

The hash of a transaction

Returns

result
array

The block traces, where each item represents a single trace entry. All numeric values are hexadecimal strings unless otherwise noted.

action
object

The action to be performed on the receiver id

from
string

The address of the sender

callType
string

The type of call, such as call, delegatecall, staticcall

gas
string

The gas provided by the sender, encoded as a hexadecimal string

input
string

The input data sent along with the transaction

to
string

The address of the receiver

value
string

The amount of wei transferred, encoded as a hexadecimal string

blockHash
string

The hash of the block that contains this trace

blockNumber
integer

The number of the block that contains this trace

result
object

The result of the call

gasUsed
string

The amount of gas used by this call

output
string

The return value from the call. If no RETURN opcode executed, this is empty bytes

subtraces
integer

The number of internal sub-calls made by this call

traceAddress
array

An array of integers representing the position in the call tree

transactionHash
string

The hash of the transaction this trace is part of

transactionPosition
integer

The index of the transaction in the block

type
string

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

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": [
5
{
6
"action": {
7
"callType": "call",
8
"from": "0xe93685f3bba03016f02bd1828badd6195988d950",
9
"to": "0xe1844c5d63a9543023008d332bd3d2e6f1fe1043",
10
"value": "0x0",
11
"gas": "0x85d4c",
12
"input": "0x0894edf100000000000000000000000000000000000000000000000000000000000000408725448cef57149288e928a6a4cf1088e824fe5736fb14f3a522d717f61e0f2400000000000000000000000000000000000000000000000000000000000000510100000000000011ed000075a00000000000000000000000009d92cd1a5cea3147e5bf47eff2d2c632c98392670000767c000000000000000000000000e51ee9868c1f0d6cd968a8b8c8376dc2991bfe44000000000000000000000000000000"
13
},
14
"blockHash": "0x17e5ef90a3354eafc5f60afa8ec35293d73b402bc5ec3e525a9fa6fee038e3e1",
15
"blockNumber": 40173417,
16
"result": {
17
"gasUsed": "0x1deff",
18
"output": "0x"
19
},
20
"subtraces": 1,
21
"traceAddress": [],
22
"transactionHash": "0x628d0dbb92da07916246ac6d7676de2512cbe6bc922b5b6125de566bae079c46",
23
"transactionPosition": 0,
24
"type": "call"
25
},
26
{
27
"action": {
28
"callType": "call",
29
"from": "0xe1844c5d63a9543023008d332bd3d2e6f1fe1043",
30
"to": "0x6f475642a6e85809b1c36fa62763669b1b48dd5b",
31
"value": "0x0",
32
"gas": "0x7e805",
33
"input": "0xa825d74700000000000000000000000000000000000000000000000000000000000075a00000000000000000000000009d92cd1a5cea3147e5bf47eff2d2c632c983926700000000000000000000000000000000000000000000000000000000000011ed000000000000000000000000e51ee9868c1f0d6cd968a8b8c8376dc2991bfe448725448cef57149288e928a6a4cf1088e824fe5736fb14f3a522d717f61e0f24"
34
},
35
"blockHash": "0x17e5ef90a3354eafc5f60afa8ec35293d73b402bc5ec3e525a9fa6fee038e3e1",
36
"blockNumber": 40173417,
37
"result": {
38
"gasUsed": "0x82cb",
39
"output": "0x"
40
},
41
"subtraces": 0,
42
"traceAddress": [
43
0
44
],
45
"transactionHash": "0x628d0dbb92da07916246ac6d7676de2512cbe6bc922b5b6125de566bae079c46",
46
"transactionPosition": 0,
47
"type": "call"
48
}
49
]
50
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": [
5
{
6
"action": {
7
"callType": "call",
8
"from": "0xe93685f3bba03016f02bd1828badd6195988d950",
9
"to": "0xe1844c5d63a9543023008d332bd3d2e6f1fe1043",
10
"value": "0x0",
11
"gas": "0x85d4c",
12
"input": "0x0894edf100000000000000000000000000000000000000000000000000000000000000408725448cef57149288e928a6a4cf1088e824fe5736fb14f3a522d717f61e0f2400000000000000000000000000000000000000000000000000000000000000510100000000000011ed000075a00000000000000000000000009d92cd1a5cea3147e5bf47eff2d2c632c98392670000767c000000000000000000000000e51ee9868c1f0d6cd968a8b8c8376dc2991bfe44000000000000000000000000000000"
13
},
14
"blockHash": "0x17e5ef90a3354eafc5f60afa8ec35293d73b402bc5ec3e525a9fa6fee038e3e1",
15
"blockNumber": 40173417,
16
"result": {
17
"gasUsed": "0x1deff",
18
"output": "0x"
19
},
20
"subtraces": 1,
21
"traceAddress": [],
22
"transactionHash": "0x628d0dbb92da07916246ac6d7676de2512cbe6bc922b5b6125de566bae079c46",
23
"transactionPosition": 0,
24
"type": "call"
25
},
26
{
27
"action": {
28
"callType": "call",
29
"from": "0xe1844c5d63a9543023008d332bd3d2e6f1fe1043",
30
"to": "0x6f475642a6e85809b1c36fa62763669b1b48dd5b",
31
"value": "0x0",
32
"gas": "0x7e805",
33
"input": "0xa825d74700000000000000000000000000000000000000000000000000000000000075a00000000000000000000000009d92cd1a5cea3147e5bf47eff2d2c632c983926700000000000000000000000000000000000000000000000000000000000011ed000000000000000000000000e51ee9868c1f0d6cd968a8b8c8376dc2991bfe448725448cef57149288e928a6a4cf1088e824fe5736fb14f3a522d717f61e0f24"
34
},
35
"blockHash": "0x17e5ef90a3354eafc5f60afa8ec35293d73b402bc5ec3e525a9fa6fee038e3e1",
36
"blockNumber": 40173417,
37
"result": {
38
"gasUsed": "0x82cb",
39
"output": "0x"
40
},
41
"subtraces": 0,
42
"traceAddress": [
43
0
44
],
45
"transactionHash": "0x628d0dbb92da07916246ac6d7676de2512cbe6bc922b5b6125de566bae079c46",
46
"transactionPosition": 0,
47
"type": "call"
48
}
49
]
50
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free