Error: This transaction is not signed #3353
-
| 
         I tried to send signed transaction in web3js with raw LegacyTransaction. Below is my code I found the problem that the console log in txHash is different with the web3 txHash and it error at the web3 sendsignedtransaction Error: This transaction is not signed (tx type=0 hash=not available (unsigned) nonce=660 value=1000000000000000000 signed=false hf=merge gasPrice=100000) The version that i used is: "@ethereumjs/common": "^4.3.0",  | 
  
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
| 
         Yes, this is because you are using: 
 Which you then try to send: If you change this: 
 to this: 
 It works :)  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         Ahh :), I got it, i fixed that and it run okay. Thank you for your time  | 
  
Beta Was this translation helpful? Give feedback.
Yes, this is because you are using:
const serializedTx = tx.serialize()Which you then try to send:
If you change this:
const serializedTx = tx.serialize()to this:
const serializedTx = signedTx.serialize()It works :)