Coinbase (Lib)
Send Crypto Using CB Lib :
<?php
$account_id = 'acc id';
$private_key = 'key2';
$api_key = 'key1';
$to_email = 'email';
$amount = 0.00000001;
$currency = 'BTC';
$tranx_id = LibCB_sendCrypto(
$private_key,
$api_key,
$to_email,
$amount,
$currency,
$account_id
);
$data = explode(",", "$tranx_id");
$id = $data[0];
if($id=="Failed"){
$by_err = $data[1];
$as_err = $data[2];
bot_sendMessage($chat_id,$message_id, "$id By $by_err As $as_err","","Markdown");
return;
}
$amount = $data[1];
$currecny = $data[2];
$to = $data[3];
bot_sendMessage($chat_id,$message_id, "Transfer : Success\nTranscation Id : $id\nCurrency : $currecny\nAmount : $amount\nTo : $to","","Markdown");Last updated