Last active
July 10, 2020 10:43
-
-
Save alexroan/e40a8ba05a4d98dbea4db0a2bb9040a0 to your computer and use it in GitHub Desktop.
aave_deposit.js
This file contains hidden or 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
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