Skip to main content

trace_filter

Parameters

  1. Object - The filter object

    • fromBlock: Quantity or Tag - (optional) From this block.
    • toBlock: Quantity or Tag - (optional) To this block.
    • fromAddress: Array - (optional) Sent from these addresses.
    • toAddress: Address - (optional) Sent to these addresses.
    • after: Quantity - (optional) The offset trace number
    • count: Quantity - (optional) Integer number of traces to display in a batch.

Returns

  • Array - Traces matching given filter

Example

Request

curl https://astar.blastapi.io/<project-id>
-X POST \
-H "Content-Type: application/json" \
-d '{"method":"trace_filter","params":[{"fromBlock":"0x412A61","toBlock":"0x412A62"}],"id":1,"jsonrpc":"2.0"}'