php-binance-api icon indicating copy to clipboard operation
php-binance-api copied to clipboard

withdrawal issue

Open Hamedani33 opened this issue 4 years ago • 14 comments

Hello

I can't use blow code to withdrawal USD tether

$api = new Binance\API("**************qoDT********************************","******************zI****************");

     $asset = "USDT";
      $address = "TFmY32pYzvnLjKvgM*******************";
      $amount = 11.0;
      $response = $api->withdraw($asset, $address, $amount, $addressTag = null, $addressName = "", bool $transactionFeeFlag = false, $network = "TRC20");
      print_r($response);

also I tested TRC20 ,TRX for network but not worked

Hamedani33 avatar Apr 23 '21 19:04 Hamedani33

@Hamedani33 What is the responce you are getting?

sitenzo avatar Apr 24 '21 09:04 sitenzo

@Hamedani33 What is the responce you are getting?

Nothing! and I added my IP in trusted section at binance dashboard

Hamedani33 avatar Apr 24 '21 10:04 Hamedani33

@Hamedani33 hi I also get the same error when withdraw from Binance. Were you able to solve it? Thank you.

dev-user-2024 avatar May 19 '21 16:05 dev-user-2024

@Hamedani33 hi I also get the same error when withdraw from Binance. Were you able to solve it? Thank you.

what error? copy here

Hamedani33 avatar May 19 '21 18:05 Hamedani33

Hi, withdraw works for me. My issue is I want the transactionFee charged to my binance account and not to destination address. I have tried setting transactionFeeFlag to true and false, no change, it still deducts fee from the destination. Please help.

klipsedeville avatar May 21 '21 16:05 klipsedeville

Can you please share you withdrawal php code?

On Fri, May 21, 2021 at 9:51 AM Ikenna Iloeje @.***> wrote:

Hi, withdraw works for me. My issue is I want the transactionFee charged to my binance account and not to destination address. I have tried setting transactionFeeFlag to true and false, no change, it still deducts fee from the destination. Please help.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jaggedsoft/php-binance-api/issues/375#issuecomment-846100359, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK5AJOL3ZJQUBP4ASUPFGC3TO2FSFANCNFSM43PHDTDQ .

Hamedani33 avatar May 21 '21 17:05 Hamedani33

$binanceClient = \App\Lib\Providers\BinanceMgr::getAPIClass(); // A wrapper to get Binance API Class instance $response = $binanceClient->withdrawFee("LTC); $quantity = 0.09367; $quantity += $response["withdrawFee"]; // Add withdrawal fee to amount $response = $binanceClient->withdraw("LTC", "LTCAddress", "0.09367", null); //Expected to receive 0.09267 as binance fee is 0.001

klipsedeville avatar May 21 '21 20:05 klipsedeville

@Hamedani33 "msg" => "Invalid API-key, IP, or permissions for action." is my error

dev-user-2024 avatar May 22 '21 05:05 dev-user-2024

@Hamedani33 "msg" => "Invalid API-key, IP, or permissions for action." is my error

You may need to enable IP restrictions from Binance API Management menu. Then make sure you are making requests using the added IP

klipsedeville avatar May 22 '21 07:05 klipsedeville

@klipsedeville Thank you for your answer I did both right The host I am applying with is for Germany And my account is not authenticated, could this be the reason?

dev-user-2024 avatar May 24 '21 04:05 dev-user-2024

Try calling a non-restricted IP endpoint so you can eliminate the IP restriction. Also disable IP restriction from API Management and test

klipsedeville avatar May 24 '21 06:05 klipsedeville

but it must be IP set for withdraw

dev-user-2024 avatar May 24 '21 12:05 dev-user-2024

Hello

I can't use blow code to withdrawal USD tether

$api = new Binance\API("**************qoDT********************************","******************zI****************");

     $asset = "USDT";
      $address = "TFmY32pYzvnLjKvgM*******************";
      $amount = 11.0;
      $response = $api->withdraw($asset, $address, $amount, $addressTag = null, $addressName = "", bool $transactionFeeFlag = false, $network = "TRC20");
      print_r($response);

also I tested TRC20 ,TRX for network but not worked

Hi, please TRY with:

$response = $api->withdraw($asset, $address, $amount, $addressTag = null, $addressName = "", bool $transactionFeeFlag = false, $network = "TRX");

arahn avatar Aug 26 '21 17:08 arahn

Hello I can't use blow code to withdrawal USD tether

$api = new Binance\API("**************qoDT********************************","******************zI****************");

     $asset = "USDT";
      $address = "TFmY32pYzvnLjKvgM*******************";
      $amount = 11.0;
      $response = $api->withdraw($asset, $address, $amount, $addressTag = null, $addressName = "", bool $transactionFeeFlag = false, $network = "TRC20");
      print_r($response);

also I tested TRC20 ,TRX for network but not worked

Hi, please TRY with:

$response = $api->withdraw($asset, $address, $amount, $addressTag = null, $addressName = "", bool $transactionFeeFlag = false, $network = "TRX");

Hey, I try this code

$asset = "usdt"; $address = "TE21NZg2eY**********************"; $amount = 3; $response = $this->api->withdraw($asset, $address, $amount, null, "", false, $network = "TRC20"); print_r($response);

//response PS C:\laragon\www\binance> php app.php signedRequest error: {"code":-4019,"msg":"Withdrawal is not available for this currency."}

kit1211 avatar Dec 14 '23 15:12 kit1211