Skip to content

Instantly share code, notes, and snippets.

@alexroan
Last active July 10, 2020 10:43
Show Gist options
  • Save alexroan/e40a8ba05a4d98dbea4db0a2bb9040a0 to your computer and use it in GitHub Desktop.
Save alexroan/e40a8ba05a4d98dbea4db0a2bb9040a0 to your computer and use it in GitHub Desktop.
aave_deposit.js
lendingPoolInstance.methods.deposit(
"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", supplyValue, 0).send({from: account, value: supplyValue})
.once('transactionHash', (hash) => {
// transaction hash
})
.on('confirmation', (number, receipt) => {
// number of confirmations
})
.on('error', (error) => {
console.log(error);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment