eth_getFilterLogs
Returns an array of all logs matching filter with given ID on Avalanche.
Use Cases#
- Historical queries - Get all matching logs for a filter
- Full event history - Retrieve complete event data for institutional RWA tokenization ($18B+ transfer volume), gaming subnets, and enterprise blockchains
Parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
filterId | QUANTITY | Yes | Filter ID from eth_newFilter |
Request#
{
"jsonrpc": "2.0",
"method": "eth_getFilterLogs",
"params": ["0x1"],
"id": 1
}
Code Examples#
- cURL
- JavaScript
curl -X POST https://api-avalanche-mainnet-archive.n.dwellir.com/YOUR_API_KEY/ext/bc/C/rpc \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getFilterLogs",
"params": ["0x1"],
"id": 1
}'
import { JsonRpcProvider } from 'ethers';
const provider = new JsonRpcProvider('https://api-avalanche-mainnet-archive.n.dwellir.com/YOUR_API_KEY/ext/bc/C/rpc');
const logs = await provider.send('eth_getFilterLogs', [filterId]);
console.log('All matching logs:', logs.length);
Related Methods#
eth_newFilter- Create filtereth_getLogs- Direct log query