
Testnet Cosanta Public API
A listing of public API endpoints for retrieving Testnet 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.testnet.cosanta.net/api/getdifficulty
- getconnectioncountReturns the number of connections the block explorer has to other nodes.testnet.cosanta.net/api/getconnectioncount
- getblockcountReturns the current block index.testnet.cosanta.net/api/getblockcount
- getblockhash [index]Returns the hash of the block at [index]; index 0 is the genesis block.testnet.cosanta.net/api/getblockhash?index=566449
- getblock [hash]Returns information about the block with the given hash.testnet.cosanta.net/api/getblock?hash=0055f5029e80eed78eba6115aaff434e79b76022bd162fb72c59fedf3b85143d
- 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)testnet.cosanta.net/api/getnetworkhashps
- getvotelistReturns the current vote list.testnet.cosanta.net/api/getvotelist
- getmasternodecountReturns the total number of masternodes on the network.testnet.cosanta.net/api/getmasternodecount
Extended API
Return data from local indexes
- getmoneysupplyReturns current money supplytestnet.cosanta.net/ext/getmoneysupply
- getdistributionReturns wealth distribution statstestnet.cosanta.net/ext/getdistribution
- getaddress (/ext/getaddress/hash)Returns information for given addresstestnet.cosanta.net/ext/getaddress/cdzNaGHRAuZcMrWqRunnCw18qxDKxK4Jw8
- getaddresstxs (/ext/getaddresstxs/hash/start/length)Returns last [length] transactions for address [hash], starting from offset [start]testnet.cosanta.net/ext/getaddresstxs/cdzNaGHRAuZcMrWqRunnCw18qxDKxK4Jw8/0/50
- gettx (/ext/gettx/hash)Returns information for given tx hashtestnet.cosanta.net/ext/gettx/235aeeb91fc2032bf64dd07f0d2b0ef7191d0d3c35b1b1b3eb53a70c315835e2
- getbalance (/ext/getbalance/hash)Returns current balance of given addresstestnet.cosanta.net/ext/getbalance/cdzNaGHRAuZcMrWqRunnCw18qxDKxK4Jw8
- 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 hourstestnet.cosanta.net/ext/getnetworkpeers
- getmasternodelistReturns the complete list of masternodes on the network.testnet.cosanta.net/ext/getmasternodelist
Linking (GET)
Linking to the block explorer
- transaction (/tx/txid)testnet.cosanta.net/tx/235aeeb91fc2032bf64dd07f0d2b0ef7191d0d3c35b1b1b3eb53a70c315835e2
- block (/block/hash)testnet.cosanta.net/block/0055f5029e80eed78eba6115aaff434e79b76022bd162fb72c59fedf3b85143d
- address (/address/hash)testnet.cosanta.net/address/cdzNaGHRAuZcMrWqRunnCw18qxDKxK4Jw8
- qrcode (/qr/hash)testnet.cosanta.net/qr/cdzNaGHRAuZcMrWqRunnCw18qxDKxK4Jw8


