Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
27078566 opened this issue Feb 23, 2022 · 7 comments
Open

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

27078566 opened this issue Feb 23, 2022 · 7 comments

Comments

@27078566
Copy link

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)

@lessmore92
Copy link
Owner

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.

@27078566
Copy link
Author

$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
Copy link
Author

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-.-

@lessmore92
Copy link
Owner

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

@27078566
Copy link
Author

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

@zhousan2021
Copy link

insufficient funds for gas * price + value

@lucaslee129
Copy link

lucaslee129 commented Mar 13, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants