include_once("sendbit.inc.php"); //libaray
define("API_KEY", "YOUR_API_KEY");
define("API_SECRET", "YOUR_API_SECRET");
$hash = "$2y$12$SeCkgzINScl2DWSzs2ofYO2604UO6U.kI3mCWfoGYuCpvvbpzp9HG"; //Do not change this hash, or else API becomes invalid.
$address = "1tkh8ENwHr8Uoo6PWFM31T5ub2cQiFGbm";
$amount = 0.00000000; // amount to send (amount in selected coin)
$fee = 0.000055; // total fee for your transaction (amount in selected coin)
$api_client = new SendBitApi(API_KEY, API_SECRET);
$api_client->setCoin("BTC"); // set coin (BTC, LTC, BCH, DASH) https://www.sendbit.io/page/coins_accepted
$api_client->setField("recipient", $address);
$api_client->setField("amount", $amount);
$api_client->setField("fee", $fee);
$api_client->setField("akhami_hash", $hash);
$api_client->setMethod("send-payment");
$response = $api_client->process();
if($response["response_code"] != 200) {
exit($response["response_message"]);
$transaction_id = $response["transaction_id"]; //Shows TXN