withdrawal issue
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 What is the responce you are getting?
@Hamedani33 What is the responce you are getting?
Nothing! and I added my IP in trusted section at binance dashboard
@Hamedani33 hi I also get the same error when withdraw from Binance. Were you able to solve it? Thank you.
@Hamedani33 hi I also get the same error when withdraw from Binance. Were you able to solve it? Thank you.
what error? copy here
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.
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 .
$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
@Hamedani33 "msg" => "Invalid API-key, IP, or permissions for action." is my error
@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 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?
Try calling a non-restricted IP endpoint so you can eliminate the IP restriction. Also disable IP restriction from API Management and test
but it must be IP set for withdraw
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");
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."}