Skip to content

Instantly share code, notes, and snippets.

@miguelmota
Created July 15, 2019 20:58
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 miguelmota/2da736107ece65629b7baa3d59288abc to your computer and use it in GitHub Desktop.
Save miguelmota/2da736107ece65629b7baa3d59288abc to your computer and use it in GitHub Desktop.
Web3.js get transaction hash from signed transaction data
const txHash = web3.utils.sha3('<signed-transaction-data>', {encoding: 'hex'})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment