php-erc20 icon indicating copy to clipboard operation
php-erc20 copied to clipboard

TX fee (XX ether) exceeds the configured cap (1.00 ether)

Open 27078566 opened this issue 3 years ago • 7 comments

Ask for help on how to set parameters. Use the default gaslimits (50000) and real-time gas (76044395808) to prompt me TX fee (XX ether) exceeds the configured cap (1.00 ether)

27078566 avatar Feb 23 '22 06:02 27078566

Hi, Please describe more about your problem.

Have a look at https://ethereum.org/en/developers/docs/gas/ to know how to find the right value for Gas Price and Gas Limit.

lessmore92 avatar Feb 23 '22 17:02 lessmore92

$approve_tx = $token->approve($owner_address, $myapp_address, 1000,50000,76044395808); $approve_tx_id = $approve_tx->sign($owner_private)->send(); ERROR TX fee (XX ether) exceeds the configured cap (1.00 ether)

27078566 avatar Feb 24 '22 02:02 27078566

I calculated that only 0.0038022197904eth is needed. After using sendrawtransaction, it reminds me that I have exceeded 1eth. Brother, please tell me what's wrong with the code. I've doubted my life-.-

27078566 avatar Feb 24 '22 03:02 27078566

Please test again and try the default value for gas price and gas limit $token->approve($owner_address, $myapp_address, 1000);

lessmore92 avatar Feb 26 '22 23:02 lessmore92

I tried the same, suggesting that I made the same mistake and was desperate

27078566 avatar Feb 28 '22 02:02 27078566

insufficient funds for gas * price + value

zhousan2021 avatar Dec 12 '22 15:12 zhousan2021

I have same problem. And I'd like to know the reason. It works well before 20min, but for now it is working like that. What is the reason and how to solve that?

cryptostar7 avatar Mar 13 '24 07:03 cryptostar7