Is it possible to get transaction hash before send transaction to node? How transactionHash is calculated?
Asked
Active
Viewed 1,038 times
1 Answers
1
The transaction hash is the rlp hash of the signed transaction: i.e.
https://medium.com/@codetractio/inside-an-ethereum-transaction-fa94ffca912f

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