ethers.utils.joinSignature(expandedSig) can not return correct signed transaction #2879
Replies: 2 comments 1 reply
-
(This is not a valid use of the I don't know what you mean by "the result of "signature" can't match signed_transaction". The A signed transaction doesn't have a concept of an opaque transaction; it is either signed (in which case its |
Beta Was this translation helpful? Give feedback.
-
Hi ricmoo, I am so exciting to get the response from you so prompt and from you directly!!!! But I am stuck to get the signed_transaction hex (signed (in which case its r, s and v are set) ) back by using tx_hash_id. I used: const raw = ethers.utils.serializeTransaction(rsTx) const msgHash = ethers.utils.keccak256(raw) Is it possible for me to get the original signed_transaction hex back? Thanks a lot, ricmoo! Your ethers.js is a really great product!!! Regards, Brad |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe your Issue
Hi there,
Below is an actual signed transaction which has been sent to Ropsten network: https://ropsten.etherscan.io/tx/0xf4727b35f10cbe2256b38adcc594f25854a7f16c8461e280079e7003a18d446d
signed_transaction =
0xf86b808504a817c800825208942890228d4478e2c3b0ebf5a38479e3396c1d6074872386f26fc100008029a0520e5053c1b573d747f823a0b23d52e5a619298f46cd781d677d0e5e78fbc750a075be461137c2c2a5594beff76ecb11a215384c574a7e5b620dba5cc63b0a0f13
I try to use the following code to get the corresponding signed_transaction from the tx hash id.
const tx = await infuraProvider.getTransaction( "0xf4727b35f10cbe2256b38adcc594f25854a7f16c8461e280079e7003a18d446d ")
const expandedSig = {
r: tx.r,
s: tx.s,
v: tx.v
}
const signature = ethers.utils.joinSignature(expandedSig)
unfortunately, the result of "signature" can't match signed_transaction.
I googled everywhere, this is the solution I found.
I have to figure it out asap to meet my boss's deadline.
Could you please let me know if there is any solution?
Any sugguestion will be highly appreciated!
Regards,
Brad
This is an exception issue
Beta Was this translation helpful? Give feedback.
All reactions