You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
amount: 356981723430n
This is my code and log of amount. I am getting Transaction has been reverted by the EVM in sendSignedTransaction.
Plz help for solving my problem as soon as possible
The text was updated successfully, but these errors were encountered:
So you're interacting with the contract on Ethereum Mainnet? Are you certain that the from account has sufficient funds to transfer? What is the address of the from account?
`try {
let rpcUrl;
if (network === "ETH") rpcUrl = process.env.MAINNET_INFURA_URL;
else if (network === "BSC") rpcUrl = process.env.BSC_MAINNET_INFURA_URL;
console.log("rpcUrl:", rpcUrl);
const web3 = new Web3(rpcUrl);
const account = web3.eth.accounts.privateKeyToAccount("0x" + privateKey);
const fromAddress = account.address;
const tokenContract = new web3.eth.Contract(tokenAbi, tokenAddress);
amount: 356981723430n
This is my code and log of amount. I am getting Transaction has been reverted by the EVM in sendSignedTransaction.
Plz help for solving my problem as soon as possible
The text was updated successfully, but these errors were encountered: