Skip to main content

trace_filter RPC Method

Returns traces matching given filter (Supported on Erigon).

Updated on
Jun 18, 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.
Deprecation Notice

This method will be deprecated on Amoy Testnet (July 1, 2026) and Mainnet (July 15, 2026) following Polygon Labs' sunset of Erigon. Use eth_getLogs for range-based filtering as an alternative.

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 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

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

The ParityTrace object, which has the following fields:

action

The action to be performed on the receiver id:

from

The address of the sender

callType

The type of method such as call, delegatecall

gas

The gas provided by the sender, encoded as hexadecimal

input

The data sent along with the transaction

to

The address of the receiver

value

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

blockHash

The hash of the block where this transaction was in

blockNumber

The block number where this transaction was in

result

The integer of the gas price used encoded as hexadecimal

gasUsed

The amount of gas used by this specific transaction alone

output

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

The traces of contract calls made by the transaction

traceAddress

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

transactionHash

The hash of the transaction

transactionPosition

The transaction position

type

The value of the method such as call or create

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": []
5
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": []
5
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free