RE: Error: fail tx invalid signature

got this error:

{"jsonrpc":"2.0","error":{"code":-32600,"message":"fail tx invalid signature"},"id":1583417144718}

when trying to broadcast this:

{ to: 'hx9cce391eba4280ad3a67be1c34b60b25706c6084',
  from: 'hxbede3b05a3b35ccb833489b29ce6ddfeb76899e2',
  stepLimit: '0x186a0',
  nid: '0x1',
  version: '0x3',
  timestamp: '0x5a01c084249e1',
  value: '0xde0b6b3a7640000',
  nonce: '0x238',
   'IodkVvIJ2mZ8awb1Bs1ovQpt5Fmd7i7qWXe3/FSTE11rmMcko28pq41JM1dx43+fEyvWwD+OS4y6B/moJQXuJwE=' }
1 Like

The from field broadcasted in that transaction was different from the wallet address signing this transaction, hence the “invalid signature” error.
It was fixed by using the wallet.getAddress() method instead of hardcoding the “from” address.

1 Like