Create Withdraw

Create Withdraw API Url

https://payid19.com/api/v1/create_withdraw

*Before using the API, you need to activate it from the Settings->API Settings section and specify the allowed IP address.

Requests

Parameters to be sent to the service are as follows:

Input Name Type Required Description
public_key String Yes your public key
private_key String Yes your private key
coin String No, default USDT We only support USDT.
network String No, default TRC20 We only support TRC20.
address String Yes Wallet address to sent.
amount numeris Yes Amount to send

Response

Parameters to be returned from the service are as follows:

Input Name Type Description
status String success or error
message String error message if status is error
balance numeric balance after send
network_fee numeric transaction cost

Sample Codes


Create Withdraw Sample

<?php
$url= 'https://payid19.com/api/v1/create_withdraw';

$post = [
'public_key' => 'yourpublickey',
'private_key' => 'yourprivatekey',
'coin' => 'USDT',
'network' => 'TRC20',
'address' => 'walletaddresstosent',
'amount' => 50
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,http_build_query($post));
$result = curl_exec($ch);
curl_close($ch);

if(json_decode($result)->status=='error'){
//error
echo json_decode($result)->message;
}else{
//success
echo json_decode($result)->balance;
}