Skip to content

Instantly share code, notes, and snippets.

@parv3213
Last active December 6, 2020 09:56
Show Gist options
  • Save parv3213/e870673211225a8464645b26771cefb5 to your computer and use it in GitHub Desktop.
Save parv3213/e870673211225a8464645b26771cefb5 to your computer and use it in GitHub Desktop.
Events web3 event function
const eventEvents = () => {
console.log(`Listening Transfer events`);
contractInstance.events
.Transfer()
.on("data", (event) => console.log(event))
.on("error", (error) => console.log(error));
}
eventEvents();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment