sendSignedTransaction returned error invalid sender

Hi, Trying to send signed transaction with the following code. However getting an error as invalid sender.

var approveTX ={
from: web3.utils.toHex(user_wallet.address),
to: web3.utils.toHex(out_token_address),
gas: web3.utils.toHex(30000),
gasPrice: web3.utils.toHex(600),//gasPrice*ONE_GWEI,
data: web3.utils.toHex(out_token_info.token_contract.methods.approve(UNISWAP_ROUTER_ADDRESS, 1000000000).encodeABI()),
chainId: web3.utils.toHex(137)
}
var tx = new Tx(approveTX);
tx.sign(privateKey);
var serializedTx = tx.serialize();
var result = await web3.eth.sendSignedTransaction(‘0x’ + serializedTx.toString(‘hex’));

HTTP provider - https://matic.getblock.io/mainnet/?api_key=${KEY}

1 Like

I did not lose any coins. I am trying to build a dapp. As part of my dapp development, broadcasting signed transaction using web3.eth.sendSignedTransaction to polygon mainnet. Where same code is working for ethereum mainnet.

Hi
I send a nft
But no deposit
Please chech
How should i checking…
Please help me…
Id transaction

0x8781b762f10a172bcc739c34159377e698c3c59d7023edf104018a60582c3395

My send
add0xF46084628BAd0404bc940c55A2A206C60d446292
My recive add
0x376549558ad40B1e55E8Cf9401e55C41B95B6D58

1 Like