Skip to main content

trace_filter RPC Method

Returns traces matching given filter (Supported on Erigon).

Updated on
Jun 15, 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.
Please be aware that the maximum block range limit for this RPC method is 10,000 blocks for those on paid plans. Consider dividing your queries into smaller segments to enhance response times and manage errors more effectively. For further details on the block range limit and strategies for mitigating it, please consult the FAQ

Parameters

object
object

The filter object

fromBlock
string

The starting block number for the filter in hexadecimal format

toBlock
string

The ending block number for the filter in hexadecimal format

fromAddress
array

An array of sender addresses to filter by

toAddress
array

An array of receiver addresses to filter by

after
integer

The offset trace number for pagination

count
integer

The number of traces to display in a batch

Returns

result
array

An array of trace objects that match the given filter

action
object

The trace action object containing details of the call

from
string

The address of the sender

callType
string

The type of method such as call, delegatecall, staticcall

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 value sent with this transaction encoded as hexadecimal

blockHash
string

The hash of the block containing this transaction

blockNumber
string

The block number containing this transaction encoded as hexadecimal

result
object

The execution result object of the trace

gasUsed
string

The amount of gas used by this specific trace

output
string

The value returned by the call, empty if no RETURN was executed

subtraces
integer

The number of subtraces (internal calls) in this trace

traceAddress
array

The list showing the nested call structure of this trace

transactionHash
string

The hash of the transaction

transactionPosition
integer

The transaction index position within the block

type
string

The type of trace, such as call or create

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