API Documentation
API Based https://otocash.info/
The document 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 coind
getdifficulty
Returns the current difficulty.
otocash.info/api/getdifficulty- getconnectioncount
Returns the number of connections the block explorer has to other nodes.
otocash.info/api/getconnectioncount - getblockcount
Returns the current block index.
otocash.info/api/getblockcount - getblockhash [index]
Returns the hash of the block at ; index 0 is the genesis block.
otocash.info/api/getblockhash?index=XXXX - getblock [hash]
Returns information about the block with the given hash.
otocash.info/api/getblock?hash=yourrequestedblockhash - getrawtransaction [txid] [decrypt]
Returns raw transaction representation for given transaction id. decrypt can be set to 0(false) or 1(true).
otocash.info/api/getrawtransaction?txid=yourrequestedtxid&decrypt=0
otocash.info/api/getrawtransaction?txid=yourrequestedtxid&decrypt=1
Extended API
Return data from local indexes
getmoneysupply
Returns current money supply
otocash.info/ext/getmoneysupply- getdistribution
Returns wealth distribution stats
otocash.info/ext/getdistribution - getaddress (/ext/getaddress/hash)
Returns information for given address
otocash.info/ext/getaddress/yourrequestedaddress - getbalance (/ext/getbalance/hash)
Returns current balance of given address
otocash.info/ext/getbalance/yourrequestedaddress - getlasttxs (/ext/getlasttxs/count/min)
Returns last [count] transactions greater than [min]
Note: returned values are in satoshis
otocash.info/ext/getlasttxs/10/100
Linking (GET)
Linking to the block explorer – https://www.otocashexplorer.info/
- transaction (/tx/txid)
otocashexplorer.info/tx/yourrequestedtxid - block (/block/hash)
otocashexplorer.info/block/yourrequestedblockhash - address (/address/hash)
otocashexplorer.info/address/yourrequestedaddress - qrcode (/qr/hash)
otocashexplorer.info/qr/yourrequestedaddress