Send a micropayment to a linked address from the system

📘

The SEND endpoint automatically returns your faucet balance after sending the payment, there is no need for another request to check the faucet balance.

Endpoint

https://anonwallet.net/micro/api/v1/send

BODY Post Parameter

ParametertypeExampleIs Required?
amountdouble0.00010000Yes
addressstring1BthisisandummybitcoinaddressYes
currencystringBTCNo (default is BTC)

Code Example

/** * Requires libcurl */ $curl = curl_init(); $payload = array( "amount" => "0.00010000", "address" => "1Bthisisandummybitcoinaddress", "currency" => "BTC", ); curl_setopt_array($curl, [ CURLOPT_HTTPHEADER => [ "Content-Type: application/json", "Authorization: Bearer YOUR_API_KEY_HERE" ], CURLOPT_POSTFIELDS => json_encode($payload), CURLOPT_URL => "https://anonwallet.net/micro/api/v1/send", CURLOPT_RETURNTRANSFER => true, CURLOPT_CUSTOMREQUEST => "POST", ]); $response = curl_exec($curl); $error = curl_error($curl); curl_close($curl); if ($error) { echo "cURL Error #:" . $error; } else { echo $response; }

API Response

{ "status": 200, "message": "OK", "currency": "BTC", "faucet_balance": "0.09999000", "payout_id": 17, "user_identify": "F7yOmL9XIGdU2JEV2Br6LyHpEzGCQ85uTrVOCwHb" }