Skip to content

Error ins Funds for gas fee #22

@poejanetwork

Description

@poejanetwork

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions