eth_getFilterLogs
The eth_getFilterLogs method returns an array of all logs matching a filter created with eth_newFilter. Unlike eth_getFilterChanges which returns only new logs since the last poll, this method returns all logs that match the filter criteria from its creation. It's useful for getting the complete set of logs matching your filter criteria without needing to track what you've already received.
Parameters
parameter | type | description |
|---|---|---|
filterId | string (required) | The filter ID returned from eth_newFilter |
Return Object
Returns an array of all log objects matching the filter. Each log includes address, topics, data, block number, transaction hash, and log index.
Request Example
Request
Response Example
Response