Send payments via api

Send Payments via your website/app instantly

Send Payments using our API

Use our API to send payments using your API key and API secret. This can be modified to your needs and is great for mass payments.

API_KEY, API_SECRET, and HASH can be found on your API settings page located at the dashboard.

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"]);
} else {
$transaction_id = $response["transaction_id"]; //Shows TXN
}