Help: I cannot calculate the transaction hash #2158
Unanswered
skolliecool
asked this question in
Q&A
Replies: 2 comments 1 reply
-
More than 6 months passed since this question was asked, but I figured this could be helpful to others maybe. You should check this out. Hope it helps! |
Beta Was this translation helpful? Give feedback.
0 replies
-
I usually use web3.js more than ethers.js . We can easily calculate Hash using web3.js and it will help you.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All
I have this transaction:
The transaction hash,
0xf4584008cc70f2f532765a2f035a2525992a258b2d2afd6b49ad5b2857a6197d
can be seen on etherscan - so the values above correspond to what is on Etherscan.However, there is no way I am able to calculate this hash using ethersjs. Here is how I have tried:
METHOD 1 - use get raw transaction from the cookbook
METHOD 2 - serialize and calculate myself (this turns out to be identical to the above method, but I will include it anyways)
METHOD 3 - maybe BigNumber should be converted to string???
The only thing I can think of is that the "r", "s" and "v" values may have changed (which I think is impossible). Or, I am doing something wrong (which is far more possible).
Any help would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions