Is it possible to get transaction hash before send transaction to node? How transactionHash is calculated?


1 Answer 1


The transaction hash is the rlp hash of the signed transaction: i.e.

https://medium.com/@codetractio/inside-an-ethereum-transaction-fa94ffca912f example

  • Is it the same hash as received by ETHEREUMJS-TX.hash()? [ethereumjs.Util.sha3(ethereumjs.RLP.encode(tx_.raw)).toString('hex')] Jan 12, 2018 at 20:08
  • I believe this is wrong: the transaction is hashed, THEN signed. From the linked article
    – Dogweather
    Nov 5, 2020 at 18:56

Not the answer you're looking for? Browse other questions tagged or ask your own question.