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.
shanghai:8080/api/getdifficulty
getconnectioncount
Returns the number of connections the block explorer has to other nodes.
shanghai:8080/api/getconnectioncount
getblockcount
Returns the current block index.
shanghai:8080/api/getblockcount
getblockhash [index]
Returns the hash of the block at ; index 0 is the genesis block.
shanghai:8080/api/getblockhash?index=16918
getblock [hash]
Returns information about the block with the given hash.
shanghai:8080/api/getblock?hash=13138742cfc8fe715a33bf5337ffb0a494a04dd8fb44d617717621c349cb721c
getrawtransaction [txid] [decrypt]
Returns raw transaction representation for given transaction id. decrypt can be set to 0(false) or 1(true).
shanghai:8080/api/getrawtransaction?txid=98d99264e2ed316e960b1c8baf3f79c8adda5888cda92c3db868aaa687ed4b57&decrypt=0
shanghai:8080/api/getrawtransaction?txid=98d99264e2ed316e960b1c8baf3f79c8adda5888cda92c3db868aaa687ed4b57&decrypt=1
Return data from local indexes
getmoneysupply
Returns current money supply
shanghai:8080/ext/getmoneysupply
getdistribution
Returns wealth distribution stats
shanghai:8080/ext/getdistribution
getaddress (/ext/getaddress/hash)
Returns information for given address
shanghai:8080/ext/getaddress/BBejVGuNvKcZjwFPRji6gn1yu15e68hKZy
getbalance (/ext/getbalance/hash)
Returns current balance of given address
shanghai:8080/ext/getbalance/BBejVGuNvKcZjwFPRji6gn1yu15e68hKZy
getlasttxs (/ext/getlasttxs/count/min)
Returns last [count] transactions greater than [min]
Note: returned values are in satoshis
shanghai:8080/ext/getlasttxs/10/100
Linking to the block explorer
transaction (/tx/txid)
shanghai:8080/tx/98d99264e2ed316e960b1c8baf3f79c8adda5888cda92c3db868aaa687ed4b57
block (/block/hash)
shanghai:8080/block/13138742cfc8fe715a33bf5337ffb0a494a04dd8fb44d617717621c349cb721c
address (/address/hash)
shanghai:8080/address/BBejVGuNvKcZjwFPRji6gn1yu15e68hKZy
qrcode (/qr/hash)
shanghai:8080/qr/BBejVGuNvKcZjwFPRji6gn1yu15e68hKZy