Skip to content

Instantly share code, notes, and snippets.

@alexroan
Created June 5, 2020 09:03
Show Gist options
  • Save alexroan/de3e8ec63c83916fc5c131085e6a1cbb to your computer and use it in GitHub Desktop.
Save alexroan/de3e8ec63c83916fc5c131085e6a1cbb to your computer and use it in GitHub Desktop.
supplyEthToCompound.js
cEthInstance.methods.mint().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