getLogs

Returns an array of all logs matching a given filter object. Returns logs which are records that denote/provide context on specific events within a smart contract, like a token transfer or a change of ownership for example.

🚧

Log Limits

You can make eth_getLogs requests with up to a 2K block range and 150MB limit on the response size OR you can request any block range with a cap of 10K logs in the response.

If you need to pull logs frequently, we recommend using WebSockets to push new logs to you when they are available.

📘

Understanding Logs

Want to understand how logs and events work on the EVM? Check out this guide: Understanding Logs: Deep Dive into eth_getLogs

Language