Created
November 6, 2019 12:19
-
-
Save tomarsachin2271/f3a0e88775e11bf2d0a303f46b9c7239 to your computer and use it in GitHub Desktop.
Gist showing how easy it is to use biconomy meta transaction. No need to change existing way of calling your functions
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
let bookReads = new web3.eth.Contract(abi, address); | |
bookReads.methods.addToFav(bookId).send({from: userAddress}).on("transactionHash", (hash) => { | |
// Get Transaction Hash | |
}).once("confirmation", (confirmationCount, receipt) => { | |
// Get Transaction Confirmation | |
}).on("error", (error)=>{ | |
// Error During Transaction | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment