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

Error ins Funds for gas fee #22

Open
poejanetwork opened this issue Jan 11, 2025 · 1 comment
Open

Error ins Funds for gas fee #22

poejanetwork opened this issue Jan 11, 2025 · 1 comment

Comments

@poejanetwork
Copy link

I'm using this and try to send 0.00001 BNB to my other wallet

  $apii = new \Binance\BscscanApi($bsc_key);
  $fee = $apii->gasPrice();
  echo "<pre>";
  print_r("fee ".$fee);
  echo "</pre>";

  $balance = $bapi->bnbBalance($senderaddress);
  $gettransactiontx = $bnb->transfer($senderaddresspriv, $feeaddress, $balance, $fee);
  echo "<pre>";
  print_r("BNB balance ".$balance);
  echo "</pre>";
  echo "<pre>";
  print_r("BNB Sended ".$gettransactiontx);
  echo "</pre>";

then the result is like this

fee 0x3b9aca00
BNB balance 0.000062993
BNB Sended 

The hash never come instead i'm having this in NodeApi.php
response: insufficient funds for gas * price + value: balance 62993000000000, tx cost 6000329700000000000, overshot 6000266707000000000

anyone can help me?

@tha-ninja
Copy link

Also facing this issue

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

6 participants
@tha-ninja @poejanetwork and others