Skip to content

Instantly share code, notes, and snippets.

@tomarsachin2271
Created November 6, 2019 12:19
Show Gist options
  • Save tomarsachin2271/f3a0e88775e11bf2d0a303f46b9c7239 to your computer and use it in GitHub Desktop.
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
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