Developer API's Tools for developers to get data about the blockchains

Services provided by cryptoblocks.site are free of charge. Please do not abuse them.

API Calls Root URL

API shares a normalized root URL which is:

https://cryptoblocks.site/coin/api.php

Query API

Please limit your calls to the Query API to 1 every 10 seconds.
The API function to call is specified through the 'q' parameter.
For instance you can ask the current difficulty "https://cryptoblocks.site/xnk/api.php?q=getdifficulty".

Real-Time Simple Queries


getblockcountreturns the current block height as a plain text string
getdifficultyreturns the difficulty as a plain text string
totalbcreturns the outstanding number of coins in satoshis (x 1e8, for compatibility with blockchain.info API)
totalcoinsreturns the outstanding number of coins
nethashpsreturns the hashrate in H/s

Address Queries

Pass the address in the 'a' parameter

balancereturns the balance of the address. For incorrect addresses or addresses never seen on the network, the returned balance is zero. Can be delayed by up to 4 hours unless you specify an API Key
getreceivedbyaddressreturns the amount of the address. For incorrect addresses or addresses never seen on the network, the returned amount is zero. Can be delayed by up to 4 hour.
addressfirstseenreturns the date and time as unixtimestamp of the block in which the address was first seen, or 0 if never seen

Transactions Queries

Get your free premium key!