Create transaction
In this section you'll learn how to send the essential API request to Bitchainz aka creating an transaction.
Deposit
key
explanation
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://www.bitchainz.com/api/token/transaction',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => 'reference_number=cc0a2b2-cc0a2b2c-592f-4&customer_uuid=becd4412-06df-4c17-8c06-b7e3179fd4eb&payment_method=DEPOSIT&token=USDT&fiat_amount=5000&fiat_currency=USD',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/x-www-form-urlencoded',
'Authorization: Bearer bitchainz_API_KEY'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;Withdraw
key
explanation
Last updated