Put in order · Blockchain and Web3 course · Module 4: ethers.js & viem
Querying Historical Events
Arrange the steps for querying past events:
Items to put in order
- Specify the block range (fromBlock, toBlock)
- Call contract.queryFilter(filter, fromBlock, toBlock)
- Define a filter for the event
You can check the correct answer by solving this task in the CodeWorlds game.