SEARCH
You are in browse mode. You must login to use MEMORY

   Log in to start


From course:

Solidity 2022

» Start this Course
(Practice similar questions for free)
Question:

How to query past events and filter their time range?

Author: kotrotko



Answer:

We can query past events using getPastEvents, and use the filters fromBlock and toBlock to give Solidity a time range for the event logs ("block" in this case referring to the Ethereum block number).


0 / 5  (0 ratings)

1 answer(s) in total

Author

kotrotko
kotrotko