Get started

    Get Secret Key

        https://blocky.is/merchants
        *need registeration
                

The blocky API is a full solution for online payments via Crypto currencies instantly.

To use this API, you need an Secret Key. Go to your account add merchant and get the secret key
Please contact us at [email protected] to get help regarding any issue.

Generate Invocie

   
$api_key = "account generates api key";
$api_key = md5($api_key);
$deposit = round($deposit, 8);  // amount
$det = urlencode('Invoice for User'); // detail/memo/comment
$symbol = "USDT"; // check symbols to get payment method
$inv_id = "123"; // your system invoice id
$json = file_get_contents("https://blocky.is/payment.php?api_key={$api_key}&type=invoice&symbol={$symbol}&amount={$deposit}&order_no={$inv_id}&memo={$det}");
$json = json_decode($json, true);
if($json['result']) {
    if($json['address']) {
        // The address will return in case of white label is turned on for the merchant
        $address = $json['address'];  // payment address / link
        $img = "https://chart.googleapis.com/chart?chs=200x200&chld=L|2&cht=qr&chl={$address}"; 
    } else {    
        //in case of Perfect Money only url will return
        $url = $json["url"];  // payment link
    }
}
                

The blocky API is a full solution for online payments via Crypto currencies instantly.

QUERY PARAMETERS

Field Type Description
$api_key String Your Secret key. - you will get from your account
$symbol String System Payment Method Symbol.
BTC - Bitcoin
USD - Perfect Money
ETH - Ethereum
EUSCE - USDC ERC20
EUSDT - USDT ERC20
LTC- Litecoin
DOGE - DogeCoin
TRX -Tron
USDT - USDT TRC20
TUSDC - USDC TRC20
BUSDT - USDT BEP20
BNB - Binance Coin
BUSD - BUSD BEP20
SHIB - SHIB BEP20
ADA - Cardano BEP20
USDC - USDC BEP20
MATIC - Polygon
MUSDT - USDT PoS
MUSDC - USDC PoS
$deposit String Amount you want to deposit
$inv_id Boolean Your system invoice/order id for which you want to get payment
$det String Description / Detail / Memo for your invoice can be anything like (Deposit to Username)
$address Integer Blocky generated payment wallet address for payment.
$url Integer Will be used in case of Perfect Money or ePaycore.

To use this API, you need an Secret Key. Go to your account add merchant and get the secret key
Please contact us at [email protected] to get help regarding any issue.

Get IPN


if   (!in_array($_SERVER['REMOTE_ADDR'], array('134.119.180.66', '2a01:7a7:2:3717:ec4:7aff:fe53:5826')))   die();

$api_key = "account generates api key";
$currency = $_POST['symbol'];
$invoice_id = $_POST['id'];
$transaction_hash = $_POST['txn_id'];
$amount = $_POST['amount'];
$address = $_POST['address'];
$confirmations = $_POST['confirmations'];
$ipn_hash = $_POST['hash'];
$hash = hash('sha256', $api_key.$currency.$amount.$transaction_hash);
//only postback came from our ips please make checks on ip on your ends properly
if($hash == $rec_hash) {
    //if system returns 200 than the IPN will be maked as sucessfully on blocky server
    echo '*ok*';
    break;
} else {
    //in case your conditions does not meet criteria
    die();
}                

The IP address of the server sending notification to SCI :
134.119.180.66 2a01:7a7:2:3717:ec4:7aff:fe53:5826


QUERY PARAMETERS

Field Type Description
symbol String This will post currency symbol.
id String This will post invoice id.
txn_id String This will post transaction hash id.
amount Boolean This will post the amount recieved
confirmations String This will post confirmations from the blockchain
address String This address on which user have made payment in case of PM it will came empty
hash String This IPN hash to verify ipn came from our servers

Make Payment / Withdraw


$api_key = "account generates api key";
$api_key = md5($api_key);
$symbol = "USDT";  // check symbols to get payment method
$amount = number_format($amount,8,'.', '');  // amount to pay
$address = "user address here"; // payment address
$data = file_get_contents("https://blocky.is/payment.php?api_key={$api_key}&type=payment&symbol={$symbol}&amount={$amount}&address={$address}");
$data = json_decode($data, true);
if (!$data['tx_id']) {
    //failure
    $error = $data['message'];
} else {
    //suuccess
    $tx_id = $data['tx_id']; 
}
                

The request for invoice and withdrawals must came from the IP you set in blocky merchant settings otherwise it will not be processed


QUERY PARAMETERS

Field Type Description
api_key String Your Secret key. - you will get from your account
symbol String System Payment Method Symbol.
BTC - Bitcoin
USD - Perfect Money
ETH - Ethereum
EUSCE - USDC ERC20
EUSDT - USDT ERC20
LTC- Litecoin
DOGE - DogeCoin
TRX -Tron
USDT - USDT TRC20
TUSDC - USDC TRC20
BUSDT - USDT BEP20
BNB - Binance Coin
BUSD - BUSD BEP20
SHIB - SHIB BEP20
ADA - Cardano BEP20
USDC - USDC BEP20
MATIC - Polygon
MUSDT - USDT PoS
MUSDC - USDC PoS
$amount String Amount you want to withdraw or make payment
$tx_id Boolean Transaction Hash ID from the blockchain
$error String System generated error