Skip to main content

trace_filter RPC Method

Returns traces matching given filter (Supported on Erigon).

Updated on
Oct 26, 2026

Parameters

object
object
REQUIRED

The filter object

fromBlock
string

The Quantity or Tag from this block

toBlock
string

The Quantity or Tag to this block

fromAddress
array

An array addresses of the senders

toAddress
array

An array addresses of the receivers

after
integer

The offset trace number

count
integer

The integer number of traces to display in a batch

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 trace action object.

from
string

The address of the sender

callType
string

The type of call, such as call or 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 value sent with this transaction, encoded as hexadecimal

blockHash
string

The hash of the block where this transaction was included

blockNumber
integer

The block number where this transaction was included

result
object | null

The trace result object.

gasUsed
string

The amount of gas used by this specific transaction alone

output
string

The value returned by the contract call. If the RETURN method was not executed, the output is empty bytes

subtraces
integer

The number of child traces made by the transaction

traceAddress
array

The list of trace address positions for the call execution path

transactionHash
string

The hash of the transaction

transactionPosition
integer

The transaction position

type
string

The trace type, 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