Last active
December 6, 2020 09:56
-
-
Save parv3213/e870673211225a8464645b26771cefb5 to your computer and use it in GitHub Desktop.
Events web3 event function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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