Docs
Supported ChainsImmutableJSON-RPC APISmart Contract Methods

eth_getFilterLogs - Immutable RPC Method

Get all logs for a filter on Immutable. Essential for historical event queries.

Returns an array of all logs matching filter with given ID on Immutable.

Use Cases

  • Historical queries - Get all matching logs for a filter
  • Full event history - Retrieve complete event data for Web3 gaming (Gods Unchained, RavenQuest), gaming NFTs with enforced royalties, and cross-chain game assets

Request Parameters

Request
filterIdQUANTITY

Filter ID from eth_newFilter

Response Body

Response

Code Examples

Bash
curl -X POST https://api-immutable-zkevm-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-immutable-zkevm-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