Skip to main content
Blockra is a crypto payment gateway that bridges fiat pricing and crypto settlement. You specify the amount you want to charge in a fiat currency (e.g. USD), Blockra locks the live exchange rate, generates a unique deposit address, monitors the blockchain, and credits your balance once the required confirmations arrive. This page explains the core concepts you need before making your first API call.

Base URL

All API requests go to:
Every response uses the same envelope: a data object on success, or an error object on failure. See Errors for the full list of error codes.

Payment lifecycle

Every payment moves through a predictable set of statuses:
StatusDescription
pendingPayment created, waiting for the buyer to send funds
detectedFunds seen on-chain, awaiting required confirmations
completedPayment confirmed; your balance has been credited
overpaidBuyer sent more than the expected amount
underpaidBuyer sent less than the expected amount
expiredThe 30-minute quote window elapsed with no payment
failedPayment failed for another reason
cancelledPayment was cancelled

How a payment works

1

Create a payment or checkout session

Call POST /payments with the fiat amount and the coin, or POST /checkout/sessions for a hosted checkout page where the buyer picks the coin.
2

The buyer pays

Blockra returns a deposit address, the exact expected_amount, and a qr_data string. Display these to the buyer. The quote is valid for 30 minutes.
3

Blockra settles

Once the transaction reaches the required confirmations, the payment moves to completed and your merchant balance is credited the net amount — the total minus the Blockra fee.
4

You withdraw

Withdraw your available balance to an external wallet any time from the dashboard.

Amounts and precision

Crypto amounts are returned in two forms:
  • expected_amount — a human-readable decimal string (e.g. "0.1183"), already rounded to a payable precision. Show this to the buyer.
  • expected_amount_atoms — the exact integer amount in the asset’s smallest unit (satoshis, wei, etc.) as a string. Use this for exact programmatic comparisons.
Fiat amounts (fiat_amount, fee_fiat, net_fiat) are decimal numbers in the payment’s currency.

Supported assets

AssetNetworkSmallest unitDecimals
BTCBitcoinsatoshi8
LTCLitecoinlitoshi8
ETHEthereumwei18
USDCEthereummicro-USDC6
USDTEthereummicro-USDT6

Fees

Blockra charges a fee on each payment, and a small fee on withdrawals:
Fee
Per payment1.25% + $0.10
Withdrawal (payout)0.5%
The payment fee is deducted from the amount charged — your balance is credited the net (net_fiat = fiat_amount − fee_fiat). On withdrawal, Blockra deducts the 0.5% payout fee plus the on-chain network fee, then sends the remainder to your external wallet. The minimum payment is $1, or its equivalent in your pricing currency.

Next steps

Authentication

Create an API key and learn how to pass it on every request.

Accept Payments

Walk through a full payment integration end to end.