Closed ChandanBhindwar-zz closed 2 years ago
Have you tried setting the chain
argument like in the example? https://web3js.readthedocs.io/en/v1.7.3/web3-eth.html#id93
var tx = new Tx(rawTransaction, {'chain': 1313161555 });
Docs mention that When using ethereumjs-tx@2.0.0 if you don’t specify the parameter chain it will use mainnet by default.
Yes, I get above error.
It appears that ethereumjs-tx does not work well with custom chains atm, I'd recommend ethersjs for this.
For using ethereumjs with custom networks you can look into these docs: https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/tx/examples/custom-chain-tx.ts https://github.com/ethereumjs/ethereumjs-tx#chain-and-hardfork-support https://github.com/ethereumjs/ethereumjs-common#working-with-privatecustom-chains
Let's close this issue as it is related to ethereumjs-tx signer and not aurora-relayer. Feel free to continue the discussion in TG if you require more assistance.
It is resolved now. Thank you.
It is resolved now. Thank you.
Could You please share your code.
Hello Chandan @ChandanBhindwar, i am also facing the same issue ...could you please share your code or details on how you resolved the same .....Thank you.
Hi, I want to transfer ERC20 Tokens using web3js in aurora test network. Getting above error, When using web3.eth.sendSignedTransaction.It is giving Invalid chain_id error.Please guide me here.
Thank you .