Open 0xmarvin42 opened 1 month ago
Just call getEventsByBlockNumber every second (or 3 seconds, make the time you want). This is what watch method used to do.
What was the reason for the removal of the .watch()
method? I believe it would be more convenient to have a default method to watch contracts.
How should I listen to events? I can call getEventsByBlockNumber once in a while, but I'd like to be able to respond to events right away