trace_filter
API key required. This Polygon Amoy method is documented for keyed private endpoints. It is not available on
/v1/rpc/public. Create an endpoint to get an API key.
Network: Polygon Amoy · Testnet · Chain ID 80002 (0x13882)
Counts as 5 requests. See Request Counting.
trace_filter returns trace entries that match a block range and optional address filters. It is a paid trace method, not available on Free, and can be expensive for broad historical ranges.
Parameters
Object- Filter object:
| Field | Type | Description |
|---|---|---|
fromBlock | QUANTITY|TAG | Start block. |
toBlock | QUANTITY|TAG | End block. |
fromAddress | Array<DATA> | Optional sender addresses. |
toAddress | Array<DATA> | Optional receiver addresses. |
after | QUANTITY | Optional pagination offset. |
count | QUANTITY | Optional page size. |
Request
{
"jsonrpc": "2.0",
"method": "trace_filter",
"params": [
{
"fromBlock": "0x1",
"toBlock": "0x10",
"count": "0x10"
}
],
"id": 1
}Code Examples
curl -X POST https://polygon-amoy-bor-rpc.blockreq.com/v1/rpc/BRQ1P0000000000000000000000000000000000000000000000000000000 \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"trace_filter","params":[{"fromBlock":"0x1","toBlock":"0x10","count":"0x10"}],"id":1}'