Categories
Cryptocurrency Ethereum Mastering Development

Can’t estimate gas on Infura using web3 or axios

I’m trying to estimate gas required to transfer usdt using Infura node but always receive gas required exceeds allowance (12451164) or always failing transaction error. I have tried both using web3 and post (via axios) and both return same error. Axios attempt: export const estimateUsdtGas: EstimateGasType = async ({ web3 }, to, amount, wallet) => […]