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

insufficient funds for gas * price + value

Open suixin406 opened this issue 3 years ago • 3 comments

$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

suixin406 avatar Jul 15 '22 10:07 suixin406

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

jucci1887 avatar Dec 01 '22 15:12 jucci1887

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

zhousan2021 avatar Dec 12 '22 16:12 zhousan2021

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.

lessmore92 avatar Dec 15 '22 08:12 lessmore92