The block explorer provides an API allowing users and/or applications to retrieve information from the network without the need for a local wallet.
Return data from coind
getdifficulty
Returns the current difficulty.
explorer.xhicoin.io/api/getdifficulty
getconnectioncount
Returns the number of connections the block explorer has to other nodes.
explorer.xhicoin.io/api/getconnectioncount
getblockcount
Returns the current block index.
explorer.xhicoin.io/api/getblockcount
getblockhash [index]
Returns the hash of the block at ; index 0 is the genesis block.
explorer.xhicoin.io/api/getblockhash?index=5511
getblock [hash]
Returns information about the block with the given hash.
explorer.xhicoin.io/api/getblock?hash=ebcf2bd9a7af5a83639df194845b2876dc077073e2ddbd0423fb355a4d3ab0c8
getrawtransaction [txid] [decrypt]
Returns raw transaction representation for given transaction id. decrypt can be set to 0(false) or 1(true).
explorer.xhicoin.io/api/getrawtransaction?txid=6ff1d14c165e2f5e80a7ebf3140b37c316e4e5550ba0598c0ac08b8cabca2f88&decrypt=0
explorer.xhicoin.io/api/getrawtransaction?txid=6ff1d14c165e2f5e80a7ebf3140b37c316e4e5550ba0598c0ac08b8cabca2f88&decrypt=1
Return data from local indexes
getmoneysupply
Returns current money supply
explorer.xhicoin.io/ext/getmoneysupply
getdistribution
Returns wealth distribution stats
explorer.xhicoin.io/ext/getdistribution
getaddress (/ext/getaddress/hash)
Returns information for given address
explorer.xhicoin.io/ext/getaddress/HPyB68QEUnMz5P8nL8oGZ9yuif2Ky3NzMN
getbalance (/ext/getbalance/hash)
Returns current balance of given address
explorer.xhicoin.io/ext/getbalance/HPyB68QEUnMz5P8nL8oGZ9yuif2Ky3NzMN
getlasttxs (/ext/getlasttxs/count/min)
Returns last [count] transactions greater than [min]
Note: returned values are in satoshis
explorer.xhicoin.io/ext/getlasttxs/10/100
Linking to the block explorer
transaction (/tx/txid)
explorer.xhicoin.io/tx/6ff1d14c165e2f5e80a7ebf3140b37c316e4e5550ba0598c0ac08b8cabca2f88
block (/block/hash)
explorer.xhicoin.io/block/ebcf2bd9a7af5a83639df194845b2876dc077073e2ddbd0423fb355a4d3ab0c8
address (/address/hash)
explorer.xhicoin.io/address/HPyB68QEUnMz5P8nL8oGZ9yuif2Ky3NzMN
qrcode (/qr/hash)
explorer.xhicoin.io/qr/HPyB68QEUnMz5P8nL8oGZ9yuif2Ky3NzMN