Skip to content

Instantly share code, notes, and snippets.

@hadv
Last active July 22, 2019 07:35
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 hadv/da20e96d1cab02930cc2e78008c298c5 to your computer and use it in GitHub Desktop.
Save hadv/da20e96d1cab02930cc2e78008c298c5 to your computer and use it in GitHub Desktop.
sendSignedTransaction
web3.eth.sendSignedTransaction(raw)
.on('transactionHash', (hash) => {
console.log('sent tx with hash: ' + hash);
})
.on('error', (err) => {
console.log('error: ' + err);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment