API Documentation
The block explorer provides an API allowing users and/or applications to retrieve information from the network without the need for a local wallet.
API Calls
Return data from kredsd
- getdifficulty
Returns the current difficulty.
kredsexplorer.com/api/getdifficulty - getconnectioncount
Returns the number of connections the block explorer has to other nodes.
kredsexplorer.com/api/getconnectioncount - getmasternodecount
Returns the total number of master nodes on the network.
kredsexplorer.com/api/getmasternodecount - getblockcount
Returns the current block index.
kredsexplorer.com/api/getblockcount - getblockhash [index]
Returns the hash of the block at ; index 0 is the genesis block.
kredsexplorer.com/api/getblockhash?index=1337 - getblock [hash]
Returns information about the block with the given hash.
kredsexplorer.com/api/getblock?hash=000000000004f52672a14aa6cbbe6163a8dc196b2c753c03c4b616d9e5a037ec - getrawtransaction [txid] [decrypt]
Returns raw transaction representation for given transaction id. decrypt can be set to 0(false) or 1(true).
kredsexplorer.com/api/getrawtransaction?txid=953e6c9c05e2af44c84dee3b01a9ea17389bd31547a4769d7d7b3b9e32aafca4&decrypt=0
kredsexplorer.com/api/getrawtransaction?txid=953e6c9c05e2af44c84dee3b01a9ea17389bd31547a4769d7d7b3b9e32aafca4&decrypt=1
- getnetworkhashps
Returns the current network hashrate. (hash/s)
kredsexplorer.com/api/getnetworkhashps
Extended API
Return data from local indexes
- getmoneysupply
Returns current money supply
kredsexplorer.com/ext/getmoneysupply - getdistribution
Returns wealth distribution stats
kredsexplorer.com/ext/getdistribution - getaddress (/ext/getaddress/hash)
Returns information for given address
kredsexplorer.com/ext/getaddress/KVAJdvUYGDfHXdcURH3u9MRLDku3VjQrpN - getbalance (/ext/getbalance/hash)
Returns current balance of given address
kredsexplorer.com/ext/getbalance/KVAJdvUYGDfHXdcURH3u9MRLDku3VjQrpN - getlasttxs (/ext/getlasttxs/count/min)
Returns last [count] transactions greater than [min]
Note: returned values are in satoshis
kredsexplorer.com/ext/getlasttxs/10/100
Linking (GET)
Linking to the block explorer
- transaction (/tx/txid)
kredsexplorer.com/tx/953e6c9c05e2af44c84dee3b01a9ea17389bd31547a4769d7d7b3b9e32aafca4 - block (/block/hash)
kredsexplorer.com/block/000000000004f52672a14aa6cbbe6163a8dc196b2c753c03c4b616d9e5a037ec - address (/address/hash)
kredsexplorer.com/address/KVAJdvUYGDfHXdcURH3u9MRLDku3VjQrpN - qrcode (/qr/hash)
kredsexplorer.com/qr/KVAJdvUYGDfHXdcURH3u9MRLDku3VjQrpN