Get a list of recent payments for your faucet
Endpoint
http://anonwallet.net/micro/api/v1/payments
Parameter | type | Example | Is Required? |
---|---|---|---|
currency | string | BTC | No (default is BTC) |
count | integer/numeric | 100 | No (default returns latest 10 payments) |
Code Example
/**
* Requires libcurl
*/
$curl = curl_init();
$payload = array(
"currency" => "BTC",
"count" => 5
);
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/payments",
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",
"payments": [{
"date": "2022-06-30T09:31:28",
"to": "tb1q39nujtteca9w38ekwra7lrsvl8rlh23nxzx04r",
"amount": "0.00001000"
}, {
"date": "2022-06-30T09:31:28",
"to": "tb1q39nujtteca9w38ekwra7lrsvl8rlh23nxzx04r",
"amount": "0.00001000"
}, {
"date": "2022-06-30T09:31:28",
"to": "tb1q39nujtteca9w38ekwra7lrsvl8rlh23nxzx04r",
"amount": "0.00001000"
}, {
"date": "2022-06-30T09:31:28",
"to": "tb1q39nujtteca9w38ekwra7lrsvl8rlh23nxzx04r",
"amount": "0.00001000"
}, {
"date": "2022-06-30T09:31:28",
"to": "tb1q39nujtteca9w38ekwra7lrsvl8rlh23nxzx04r",
"amount": "0.00001000"
}]
}