Created
June 5, 2020 09:17
-
-
Save alexroan/15e8437cd79d6f0ebb748ca50028910b to your computer and use it in GitHub Desktop.
redeemEthFromCompound.js
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
cEthInstance.methods.redeemUnderlying(redeemAmount).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