Skip to main content

trace_get RPC Method

Returns the trace at the given trace tree path of a transaction (Supported on Erigon).

Updated on
Oct 29, 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

indices
array
REQUIRED

The trace tree path (traceAddress) of the trace to return, as an array of hex-encoded indices. For example, ["0x0"] returns the first subcall of the transaction

Returns

result
object

The trace object at the given path, or null if the transaction or the trace path is not found. It has 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

The result of the call at the given trace path

gasUsed
string

The amount of gas used by this call, 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

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"action": {
6
"from": "0x1c39ba39e4735cb65978d4db400ddd70a72dc750",
7
"callType": "call",
8
"gas": "0x13e99",
9
"input": "0x16c72721",
10
"to": "0x2bd2326c993dfaef84f696526064ff22eba5b362",
11
"value": "0x0"
12
},
13
"blockHash": "0x7eb25504e4c202cf3d62fd585d3e238f592c780cca82dacb2ed3cb5b38883add",
14
"blockNumber": 3068185,
15
"result": {
16
"gasUsed": "0x183",
17
"output": "0x0000000000000000000000000000000000000000000000000000000000000001"
18
},
19
"subtraces": 0,
20
"traceAddress": [
21
0
22
],
23
"transactionHash": "0x17104ac9d3312d8c136b7f44d4b8b47852618065ebfa534bd2d3b5ef218ca1f3",
24
"transactionPosition": 2,
25
"type": "call"
26
}
27
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": {
5
"action": {
6
"from": "0x1c39ba39e4735cb65978d4db400ddd70a72dc750",
7
"callType": "call",
8
"gas": "0x13e99",
9
"input": "0x16c72721",
10
"to": "0x2bd2326c993dfaef84f696526064ff22eba5b362",
11
"value": "0x0"
12
},
13
"blockHash": "0x7eb25504e4c202cf3d62fd585d3e238f592c780cca82dacb2ed3cb5b38883add",
14
"blockNumber": 3068185,
15
"result": {
16
"gasUsed": "0x183",
17
"output": "0x0000000000000000000000000000000000000000000000000000000000000001"
18
},
19
"subtraces": 0,
20
"traceAddress": [
21
0
22
],
23
"transactionHash": "0x17104ac9d3312d8c136b7f44d4b8b47852618065ebfa534bd2d3b5ef218ca1f3",
24
"transactionPosition": 2,
25
"type": "call"
26
}
27
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free