contact@otocash.io

API Documentation

Search the documentation by keyword

API Documentation

API Based https://api.otocash.io/

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.
    api.otocash.io/api/getdifficulty
  • getconnectioncount
    Returns the number of connections the block explorer has to other nodes.
    api.otocash.io/api/getconnectioncount
  • getblockcount
    Returns the current block index.
    api.otocash.io/api/getblockcount
  • getblockhash [index]
    Returns the hash of the block at ; index 0 is the genesis block.
    api.otocash.io/api/getblockhash?index=XXXX
  • getblock [hash]
    Returns information about the block with the given hash.
    api.otocash.io/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).
    api.otocash.io/api/getrawtransaction?txid=yourrequestedtxid&decrypt=0
    api.otocash.io/api/getrawtransaction?txid=yourrequestedtxid&decrypt=1

Extended API

Return data from local indexes

  • getmoneysupply
    Returns current money supply
    api.otocash.io/ext/getmoneysupply
  • getdistribution
    Returns wealth distribution stats
    api.otocash.io/ext/getdistribution
  • getaddress (/ext/getaddress/hash)
    Returns information for given address
    api.otocash.io/ext/getaddress/yourrequestedaddress
  • getbalance (/ext/getbalance/hash)
    Returns current balance of given address
    api.otocash.io/ext/getbalance/yourrequestedaddress
  • getlasttxs (/ext/getlasttxs/count/min)
    Returns last [count] transactions greater than [min]
    Note: returned values are in satoshis
    api.otocash.io/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