I’m receiving this error when approving a transaction on Ethereum Mainnet, even though I have enough balance: insufficient funds for gas * price + value: balance 10459790858839717, tx cost 14285714285700000, overshot 3825923426860283
The error is from RPC, you account has a balance of 0.0104, and the gas it requires to execute the transaction is 0.014, hence it’s giving the error. Usually in production, you should calculate the gas upfront, and show error upfront of insufficient which doesn’t allow to submit transaction.
It’s same as the error message, gas + price + value, where gas is gasLimit, price is gasPrice, and value is native token value. If no native token is involved it’s 0, for instance if you are swapping, sending, etc 0.001 ETH from A to B, in that case value would be 0.001, and for other cases it’s zero.However after new Ethereum upgrade, the price can be (base + priority fee). You can read more here.