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

insufficient funds for gas * price + value #18

Open
suixin406 opened this issue Jul 15, 2022 · 3 comments
Open

insufficient funds for gas * price + value #18

suixin406 opened this issue Jul 15, 2022 · 3 comments

Comments

@suixin406
Copy link

$token = new USDT("https://mainnet.infura.io/v3/8038c7c7********");

$owner_address = '0x1d64720e43342bdd0E824e1dadEF';
$myapp_private = '0xbf15a4a052a3b59c1a55988e8a1e35056fbfacf94ce';
$myapp_address = '0x907Dc5716029B907BfFB223f0A*******';
$to_address = '0x907Dc5716029B907BfFB2*******';

$transfer_tx = $token->transferFrom($myapp_address, $owner_address, $to_address, 1);
$transfer_tx_id = $transfer_tx->sign($myapp_private)->send();

How to solve this please?

Uncaught RuntimeException: insufficient funds for gas * price + value

@jucci1887
Copy link

jucci1887 commented Dec 1, 2022

i have the same problem with it , please kindly tell me how to fix it if you have fixed , Thanks.

1 similar comment
@zhousan2021
Copy link

i have the same problem with it , please kindly tell me how to fix it if you have fixed , Thanks.

@lessmore92
Copy link
Owner

This error is related to the values of the gasPrice and gasLimit. And those are variant values based on the function you call and the network status.

Please do a search about that, and use the correct values to get away from this error.

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