Skip to content

Instantly share code, notes, and snippets.

@alexroan
Created June 5, 2020 09:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexroan/15e8437cd79d6f0ebb748ca50028910b to your computer and use it in GitHub Desktop.
Save alexroan/15e8437cd79d6f0ebb748ca50028910b to your computer and use it in GitHub Desktop.
redeemEthFromCompound.js
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