Skip to main content

trace_filter

Returns traces matching a filter on Gnosis.

Archive Node Required

This method requires an archive node. It is not available on full nodes.

Use Cases#

  • Address activity - Find all internal transactions involving an address
  • Contract monitoring - Track calls to specific contracts
  • Forensic analysis - Investigate transaction patterns for prediction markets (largest by market cap), Safe wallet infrastructure, CoW Protocol DEX, and Gnosis Pay card integration

Parameters#

ParameterTypeRequiredDescription
filterObjectObjectYesFilter criteria (see below)

Filter Object Fields#

FieldTypeDescription
fromBlockQUANTITY|TAGStart block (hex or tag)
toBlockQUANTITY|TAGEnd block (hex or tag)
fromAddressArray<DATA>Filter by sender addresses
toAddressArray<DATA>Filter by receiver addresses
afterQUANTITYOffset for pagination
countQUANTITYMax results to return

Request#

{
"jsonrpc": "2.0",
"method": "trace_filter",
"params": [{
"fromBlock": "latest",
"toBlock": "latest",
"toAddress": ["0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d"],
"count": 10
}],
"id": 1
}

Code Examples#

curl -X POST https://api-gnosis-mainnet.n.dwellir.com/YOUR_API_KEY \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "trace_filter",
"params": [{
"fromBlock": "latest",
"toBlock": "latest",
"toAddress": ["0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d"],
"count": 10
}],
"id": 1
}'