Is it possible to get transaction hash before send transaction to node? How transactionHash is calculated?
1 Answer
The transaction hash is the rlp hash of the signed transaction: i.e.
https://medium.com/@codetractio/inside-an-ethereum-transaction-fa94ffca912f
-
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 Nov 5, 2020 at 18:56