Documentation
Welcome to CryptoChain API. A unified interface to query raw blockchain data from Bitcoin, Litecoin, Polygon, and more.
Base URL: https://cryptochain.sh/api
Bitcoin (BTC)
Powered by Mempool.space. Data is returned in Satoshis (1 BTC = 100,000,000 Sats).
Get Address Balance
GET /api/btc/address/:address
// Example Request
curl https://cryptochain.sh/api/btc/address/1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa
// Response (Calculate Balance: funded_txo_sum - spent_txo_sum)
{
"address": "1A1z...",
"chain_stats": {
"funded_txo_count": 1340,
"funded_txo_sum": 6834000000,
"spent_txo_sum": 0
}
}
Get UTXOs
GET /api/btc/address/:address/utxo
Get Transaction Details
GET /api/btc/tx/:txid
// Example
curl https://cryptochain.sh/api/btc/tx/5f69f...
Get Current Block Height
GET /api/btc/blocks/tip/height
Litecoin (LTC)
Powered by Litecoinspace.org.
Get Address Info
GET /api/ltc/address/:address
// Example
curl https://cryptochain.sh/api/ltc/address/LeUtEarFZUELssCY48KwJNohFTLYFEDzzq
Get Transaction
GET /api/ltc/tx/:txid
Polygon (MATIC)
Powered by Blockscout V2.
Get Token Balances
GET /api/polygon/address/:address/token-balances
// Example
curl https://cryptochain.sh/api/polygon/address/0x7D1A.../token-balances
Get Transactions
GET /api/polygon/address/:address/transactions
Dogecoin (DOGE)
Powered by Dogechain.info.
Get Balance
GET /api/doge/address/balance/:address
Kaspa (KAS)
Powered by Kaspa.org.
Get Balance
GET /api/kas/addresses/:address/balance