I have activated watching events with Contract.events.events_name(filter, lastBlock)
, now I need to stop watching this event. I can't find the command in web3 docs. I'm using Web3 version: 1.2.1.
How can I stop watching events?
This has been answered in the following github issue. I suppose it is still up to date.
Quoting the aswer:
After calling Contract.events.EventName you get a subscription in a response. It has unsubscribe method.
However, at this time, it was not fully working. When you test it out, please edit my post to put the correct information.