eth_getFilterLogs - zkSync RPC Method
Get all logs for a filter on zkSync Era. Essential for historical event queries.
Returns an array of all logs matching filter with given ID on zkSync Era.
Use Cases
- Historical queries - Get all matching logs for a filter
- Full event history - Retrieve complete event data for RWA tokenization ($1.9B, 25% market share), hyperchain deployment via ZK Stack, and cross-chain DeFi
Request Parameters
Filter ID from eth_newFilter
Response Body
Code Examples
curl -X POST https://api-zksync-era-mainnet-full.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-zksync-era-mainnet-full.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