method.watch()

Use watch to listen for events emitted by a smart contract method. You can define functions to be executed when certain events are caught.