Skip to main content

trace_transaction RPC Method

Returns all traces of given transaction(Supported on Erigon).

Updated on
Oct 26, 2026

Parameters

hash
string
REQUIRED

The hash of a transaction

Returns

array
array

The block traces, which have the following fields (please note that all return types are hexadecimal representations of their data type unless otherwise stated):

action
object

The action to be performed on the receiver id

from
string

The address of the sender

callType
string

The type of method such as call, delegatecall

gas
string

The gas provided by the sender, encoded as hexadecimal

input
string

The data sent along with the transaction

to
string

The address of the receiver

value
string

The integer of the value sent with this transaction, encoded as hexadecimal

blockHash
string

The hash of the block where this transaction was in

blockNumber
integer

The block number where this transaction was in

result
object | null

The integer of the gas price used encoded as hexadecimal

gasUsed
string

The total used gas by all transactions in this block encoded as hexadecimal

output
string

The value returned by the contract call, and it only contains the actual value sent by the RETURN method. If the RETURN method was not executed, the output is empty bytes

subtraces
integer

The traces of contract calls made by the transaction

traceAddress
array

The list of addresses where the call was executed, the address of the parents, and the order of the current sub call

transactionHash
string

The hash of the transaction

transactionPosition
integer

The transaction position

type
string

The value of the method such as call or create

error
string

(Conditional) Error message when execution fails.

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": [
5
{
6
"action": {
7
"from": "0xfffffffffffffffffffffffffffffffffffffffe",
8
"callType": "call",
9
"gas": "0x1c96fc8",
10
"input": "0x092193ab000000000000000000000000514708beda3441cc4e141f8546c096eaab7c8a05",
11
"to": "0x0000000000000000000000000000000000002002",
12
"value": "0x3782dace9d900000"
13
},
14
"blockHash": "0x464dc0fc78ef448e18597261ac67ecfdf3c5a6ba0a86d30947ca4d379f0fc46b",
15
"blockNumber": 327680,
16
"error": "Insufficient balance for transfer",
17
"result": null,
18
"subtraces": 0,
19
"traceAddress": [],
20
"transactionHash": "0x5d005403489e1bc301344d2b51fa7f403372cf4e7941c2861aa320f1605c9dd4",
21
"transactionPosition": 0,
22
"type": "call"
23
}
24
]
25
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": [
5
{
6
"action": {
7
"from": "0xfffffffffffffffffffffffffffffffffffffffe",
8
"callType": "call",
9
"gas": "0x1c96fc8",
10
"input": "0x092193ab000000000000000000000000514708beda3441cc4e141f8546c096eaab7c8a05",
11
"to": "0x0000000000000000000000000000000000002002",
12
"value": "0x3782dace9d900000"
13
},
14
"blockHash": "0x464dc0fc78ef448e18597261ac67ecfdf3c5a6ba0a86d30947ca4d379f0fc46b",
15
"blockNumber": 327680,
16
"error": "Insufficient balance for transfer",
17
"result": null,
18
"subtraces": 0,
19
"traceAddress": [],
20
"transactionHash": "0x5d005403489e1bc301344d2b51fa7f403372cf4e7941c2861aa320f1605c9dd4",
21
"transactionPosition": 0,
22
"type": "call"
23
}
24
]
25
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free