Docs
Supported ChainsFlow EVM GatewayJSON-RPC APISmart Contract Methods

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

Request
filterIdQUANTITY

Filter ID from eth_newFilter

Response Body

Response

Code Examples

Bash
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
  }'
JavaScript
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);

On this page