post https://eth-mainnet.g.alchemy.com/v2/
Returns an array of all logs matching filter with given id. Can compute the same results with an eth_getLogs call.
Don’t have an API key?
Start using this API in your app today.
Note on Filters
- Filters expire after 5 minutes of inactivity (no queries).
- This method only works for filters created with
eth_newFilter
not for filters created usingeth_newBlockFilter
oreth_newPendingTransactionFilter
, which will return"filter not found".
eth_getLogs vs. eth_getFilterLogsThese two computations will return the same results:
- Calling
eth_getLogs
with params[<options>]
- Calling
eth_newFilter
with params[<options>]
, getting a filter id<filterId>
back, then callingeth_getFilterLogs
with params[<filterId>]