-
Notifications
You must be signed in to change notification settings - Fork 25
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
Always insufficient funds for gas * price + value #17
Comments
Hi, Have a look at the
|
Did your problem solve? |
$token = new USDT("https://mainnet.infura.io/v3/8038c7c7********"); $owner_address = '0x1d64720e43342bdd0E824e1dadEF'; $transfer_tx = $token->transferFrom($myapp_address, $owner_address, $to_address, 1); How to solve this please? Uncaught RuntimeException: insufficient funds for gas * price + value |
This error usually happens, when the gas price and gas limit parameters value are wrong; in this library, there is a default value for those, But based on time and network (ETH network) gas price needs to be adjusted. Also gas limit is different for various methods. You can search and learn more about gas price and gas limit, then in all methods of this library, you can set the correct value for these. |
hi ,
i have setting gasPrice、gasLimit like that, but it cant work . The responce is : please , how to fix it ? thanks |
@jucci1887 Does the |
$owner_private = '0x922b775cef0410717c28e0b04c23ffa5a0e2*********';
$owner_address = '0x9118cc4212dCC83dca639de28FC0D47AfdE4C45F';
$token = new Token("0xdac17f958d2ee523a2206206994597c13d831ec7","https://mainnet.infura.io/v3/d5cd9b58d5ca43409486******");
//by this method we allow $myapp_address to send upto 99999 token behalf of $owner_address
$approve_tx = $token->approve($owner_address, "0x4E0E4CbdfBaB08e65F5ECAb25bEAA*******", 9999);
$approve_tx_id = $approve_tx->sign($owner_private)->send();
Hello author, I have a problem!
It keeps prompting insufficient funds for gas
But there is enough ETH in the account
can you help me
The text was updated successfully, but these errors were encountered: