eth_getFilterLogs on Polygon
Returns all logs matching a filter created with eth_newFilter. A heavy, stateful method — needs a free API key.
Returns the whole backlog for a filter id in one shot — as heavy as eth_getLogs. Filters are node-local and expire when idle, so a stale id returns 'filter not found'; re-create it and retry.
Polygon endpoint (keyed — free)
https://rpc.nodeflare.app/polygon/v1/YOUR_KEYMethod
eth_getFilterLogs
Cost
75 CU
Chain ID
137
Block time
~1.5 s
Finality
~5 s (milestone finality)
Logs & events on Polygon
Very high log density (payments, gaming, NFT mints). Tight address + topic0 filters are essential; wide unfiltered ranges are the top cause of slow queries. Each call costs 75 CU.
Parameters
[filterId]cURL
curl https://rpc.nodeflare.app/polygon/v1/YOUR_KEY \
-X POST \
-H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","method":"eth_getFilterLogs","params":["0x0"],"id":1}'ethers.js
import { ethers } from 'ethers';
const provider = new ethers.JsonRpcProvider(
'https://rpc.nodeflare.app/polygon/v1/YOUR_KEY'
);
const result = await provider.send('eth_getFilterLogs', ["0x0"]);Try it live
Runs the example above against the public Polygon endpoint — straight from your browser.
eth_getFilterLogs on Polygon — FAQ
How do I call eth_getFilterLogs on Polygon?
POST a JSON-RPC 2.0 request with "method": "eth_getFilterLogs" to NodeFlare's Polygon endpoint at https://rpc.nodeflare.app/polygon/v1/YOUR_KEY. This method requires a free API key — it is not available on the public endpoint.
What does eth_getFilterLogs cost on the free tier?
eth_getFilterLogs is weighted at 75 compute units per call. The free tier includes 2,000,000 CU/month, so that is roughly 26,666 eth_getFilterLogs calls per month — no credit card.
Is eth_getFilterLogs available on the public Polygon endpoint?
No. eth_getFilterLogs is a heavy method and requires a free API key. The public no-key endpoint serves standard read methods; create a free key to unlock eth_getFilterLogs, eth_getLogs, trace_* and debug_*.
Anything Polygon-specific to know when using eth_getFilterLogs?
Very high log density (payments, gaming, NFT mints). Tight address + topic0 filters are essential; wide unfiltered ranges are the top cause of slow queries. Each call costs 75 CU.
Call eth_getFilterLogs on Polygon with a free key
2,000,000 compute units/month, heavy methods unlocked, every chain included. No credit card.
Get your free API key →