trace_filter - Ethereum

trace_filter. Returns traces matching given filter

trace_filter - ethereum [Value: 75CU]
Returns traces matching given filter.
Use cases

Use cases

  • Filter traces for transactions from specific addresses
  • Analyze smart contract interactions in a block range
  • Debug specific account activities within block intervals
Constraints

Constraints

  • Requires valid block range and address parameters
  • Node must support the trace_filter method
  • Accurate results depend on node's data completeness
Get started
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key

Language

Request
Examples
curl https://eth.drpc.org \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"method":"trace_filter","params":[{"fromBlock":"0xccb943","toBlock":"0xccb943","fromAddress":["0xEdC763b3e418cD14767b3Be02b667619a6374076"]}],"id":1,"jsonrpc":"2.0"}'
Copy
Response
200
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    {
      "action": {
        "callType": "call",
        "from": "0xEdC763b3e418cD14767b3Be02b667619a6374076",
        "gas": "0x15f90",
        "input": "0x",
        "to": "0x8d12a197cb00d4747a1fe03395095ce2a5cc6819",
        "value": "0x0"
      },
      "blockHash": "0x5c0b4b4d3a64311a802cd51e0dd0f656b5d4016a2cf2f3d780e8b1cfe1b6ac2e",
      "blockNumber": 13498499,
      "result": {
        "gasUsed": "0x0",
        "output": "0x"
      },
      "subtraces": 0,
      "traceAddress": [],
      "transactionHash": "0x17104ac9d3312d8c136b7f44d4b8b47852618065ebfa534bd2d3b5ef218ca1f3",
      "transactionPosition": 1,
      "type": "call"
    }
  ]
}
Copy

Request params

idinteger
jsonrpcstring
methodstring
Parametersarray
array
fromBlockstring
The Quantity or Tag from this block
toBlockstring
The Quantity or Tag to this block
fromAddressstring
An array addresses of the senders
toAddressstring
An array addresses of the receivers
afterstring
The offset trace number
countstring
The Quantity or Tag to this block

Response

200
The block traces, which have the following fields (please note that all return types are hexadecimal representations of their data type unless otherwise stated):

Response params

object
idinteger
jsonrpcstring
resultobject
object
actionobject
object
callTypestring
The type of call.
fromstring
The address of the sender.
tostring
The address of the receiver.
valuestring
The value transferred in wei.
gasstring
The gas provided for the call.
inputstring
The data sent along with the call.
blockHashstring
The hash of the block where the trace occurred.
blockNumberstring
The number of the block where the trace occurred.
resultstring
object
gasUsedstring
The amount of gas used by the trace.
outputstring
The output of the call.
subtracesinteger
The number of subtraces created by this trace.
traceAddressarray_of_strings
The trace address indicating the position of this trace in the call stack.
transactionHashstring
The hash of the transaction to which this trace belongs.
transactionPositionstring
The position of the transaction in the block.
typestring
The type of trace.