API documentation
https://cryptocurrencyapi.net/api/.<METHOD>?key=<YOUR_API_KEY>¤cy=<CCUR>¶m1=value1¶m2=value2&...
Parameter | Description | Example |
---|---|---|
METHOD |
One of the methods: give - Create new address balance - Get balance of primary address send - Create request of sending coins from primary address to any another status - Get status of request track - Track transaction of receiving coins with fixed amount | balance |
YOUR_API_KEY | Your API access key from settings | 8c2dc9d3fa-df73e0d10d-1715eb503f-685b1965d8 |
currency |
CCUR (cryptocurrency): BTC - Bitcoin LTC - Litecoin DASH - Dash DOGE - Dogecoin BCH - BitcoinCash | BTC |
from* | Primary address selection | 1BmWHmDSu743vALbFYmWMegSUgnVp4vq23 |
address | Destination address | 1BmWHmDSu743vALbFYmWMegSUgnVp4vq23 |
amount | Amount of coins. MINIMAL amount is 0.00002800 | 0.12345678 |
statusURL* | (URL-encoded) URL to your IPN handler | https://your-domain/handler.php?a=1&b=2 |
tag* | Tag or label of operation | oper12 |
fee* | Fee amount (value < 1.000) or Fee price in sat/B (value >= 1.000) | 0.00025 |
multi* | Combine multiple requests into a single transaction | 1 |
lifetime* | Maximum tracking time in minutes | 30 |
Examples
https://cryptocurrencyapi.net/api/.give?key=<YOUR_API_KEY>¤cy=<CCUR>&tag=oper12&statusURL=<URL_ENCODED>
https://cryptocurrencyapi.net/api/.balance?key=<YOUR_API_KEY>¤cy=<CCUR>
https://cryptocurrencyapi.net/api/.send?key=<YOUR_API_KEY>¤cy=<CCUR>&address=<PAYEE_ADDR>&amount=<AMOUNT>&multi=1&tag=oper12&statusURL=<URL_ENCODED>
https://cryptocurrencyapi.net/api/.track?key=<YOUR_API_KEY>¤cy=<CCUR>&address=<YOUR_ADDR>&amount=<AMOUNT>&tag=oper12&lifetime=30&statusURL=<URL_ENCODED>
PHP IPN Handler Code Example
...
if (!$_POST)
$_POST = @json_decode(file_get_contents('php://input'), true);
if (!$_POST['cryptocurrencyapi.net'])
return;
$sign2 = sha1(implode(':', array(
$_POST['currency'],
$_POST['type'],
$_POST['date'],
$_POST['address'],
$_POST['amount'],
$_POST['txid'],
$_POST['pos'],
$_POST['confirmations'],
$_POST['tag'],
$cfg['apikey'] // API access key
)));
if ($sign2 !== $_POST['sign2'])
die('Sign wrong'); // this answer will be visible in the dashboard
echo('OK');
...
Notifications come from IP = 88.99.198.205