eth_getFilterLogs - Flow EVM RPC Method
Get all logs for a filter on Flow EVM Gateway. Essential for historical event queries.
Returns an array of all logs matching filter with given ID on Flow EVM Gateway.
Use Cases
- Historical queries - Get all matching logs for a filter
- Full event history - Retrieve complete event data for consumer NFTs (NBA Top Shot, Disney Pinnacle), gaming dApps, and hybrid Cadence-EVM applications
Request Parameters
Filter ID from eth_newFilter
Response Body
Code Examples
curl -X POST https://api-flow-evm-gateway-mainnet.n.dwellir.com/YOUR_API_KEY \
-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-flow-evm-gateway-mainnet.n.dwellir.com/YOUR_API_KEY');
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
eth_getFilterChanges
Poll filter for new events on Flow EVM Gateway. Essential for event monitoring for consumer NFTs (NBA Top Shot, Disney Pinnacle), gaming dApps, and hybrid Cadence-EVM applications.
eth_uninstallFilter
Remove a filter on Flow EVM Gateway. Essential for cleanup after event monitoring.