Skip to content
LogoLogo

getFilterLogs

Returns a list of event logs since the filter was created.

Note: getFilterLogs is only compatible with event filters.

Usage

import {  } from 'viem'
import {  } from './client'
 
const  = await .({ 
  : '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48',
  : ('event Transfer(address indexed, address indexed, uint256)'),
})
const  = await .({  })
 
[{ ... }, { ... }, { ... }]

Returns

Log[]

A list of event logs.

Parameters

filter

An event filter.

const  = await .()
const  = await .({
  , 
})

JSON-RPC Method

eth_getFilterLogs