Skip to content

Instantly share code, notes, and snippets.

@alexroan
Created July 10, 2020 11:10
Show Gist options
  • Save alexroan/9b20efbf99c54681b0a5b4fe683d8221 to your computer and use it in GitHub Desktop.
Save alexroan/9b20efbf99c54681b0a5b4fe683d8221 to your computer and use it in GitHub Desktop.
aave_redeem_atoken.js
aTokenInstance.methods.redeem(withdrawAmount).send({from: account})
.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