php-erc20
php-erc20 copied to clipboard
insufficient funds for gas * price + value
$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
i have the same problem with it , please kindly tell me how to fix it if you have fixed , Thanks.
i have the same problem with it , please kindly tell me how to fix it if you have fixed , Thanks.
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.