Cosanta Public API
A listing of public API endpoints for retrieving Cosanta coin data from the network without the need for a local wallet
API Documentation
API Calls
Return data from coind
- getdifficultyReturns the current difficulty.explorer.cosanta.net/api/getdifficulty
- getconnectioncountReturns the number of connections the block explorer has to other nodes.explorer.cosanta.net/api/getconnectioncount
- getblockcountReturns the current block index.explorer.cosanta.net/api/getblockcount
- getblockhash [index]Returns the hash of the block at [index]; index 0 is the genesis block.explorer.cosanta.net/api/getblockhash?index=587520
- getblock [hash]Returns information about the block with the given hash.explorer.cosanta.net/api/getblock?hash=0000486ae19a520f3fe99fc374ecc0d3ab45d63ab677aa697925802bd255c24d
- getrawtransaction [txid] [decrypt]Returns raw transaction representation for given transaction id. decrypt can be set to 0(false) or 1(true).
- getnetworkhashpsReturns the current network hashrate. (hash/s)explorer.cosanta.net/api/getnetworkhashps
- getvotelistReturns the current vote list.explorer.cosanta.net/api/getvotelist
- getmasternodecountReturns the total number of masternodes on the network.explorer.cosanta.net/api/getmasternodecount
Extended API
Return data from local indexes
- getmoneysupplyReturns current money supplyexplorer.cosanta.net/ext/getmoneysupply
- getdistributionReturns wealth distribution statsexplorer.cosanta.net/ext/getdistribution
- getaddress (/ext/getaddress/hash)Returns information for given addressexplorer.cosanta.net/ext/getaddress/CesiX5TUqEYENMNgxpNvQkjFoYhAaxfyoQ
- getaddresstxs (/ext/getaddresstxs/hash/start/length)Returns last [length] transactions for address [hash], starting from offset [start]explorer.cosanta.net/ext/getaddresstxs/CesiX5TUqEYENMNgxpNvQkjFoYhAaxfyoQ/0/50
- gettx (/ext/gettx/hash)Returns information for given tx hashexplorer.cosanta.net/ext/gettx/4d2c593b6b754b84a11763205332627c1a590981ec91e856166f815d5b9b84a8
- getbalance (/ext/getbalance/hash)Returns current balance of given addressexplorer.cosanta.net/ext/getbalance/CesiX5TUqEYENMNgxpNvQkjFoYhAaxfyoQ
- getlasttxs (/ext/getlasttxs/min/start/length)Returns last [length] transactions greater than [min] coins, starting from offset [start]Note: [length] is limited to returning 100 records per query
- getnetworkpeersReturns the list of network peers that have connected to the explorer node in the last 24 hoursexplorer.cosanta.net/ext/getnetworkpeers
- getmasternodelistReturns the complete list of masternodes on the network.explorer.cosanta.net/ext/getmasternodelist
Linking (GET)
Linking to the block explorer
- transaction (/tx/txid)explorer.cosanta.net/tx/4d2c593b6b754b84a11763205332627c1a590981ec91e856166f815d5b9b84a8
- block (/block/hash)explorer.cosanta.net/block/0000486ae19a520f3fe99fc374ecc0d3ab45d63ab677aa697925802bd255c24d
- address (/address/hash)explorer.cosanta.net/address/CesiX5TUqEYENMNgxpNvQkjFoYhAaxfyoQ
- qrcode (/qr/hash)explorer.cosanta.net/qr/CesiX5TUqEYENMNgxpNvQkjFoYhAaxfyoQ