API

From FLO Wiki
Jump to navigation Jump to search

RETURN DATA FROM COIND[edit]

Return data from local indexes


getdifficulty

 * Returns the current difficulty.
   http://flo.cash//api/getdifficulty

getconnectioncount

 * Returns the number of connections the block explorer has to other nodes.
   http://flo.cash//api/getconnectioncount

getblockcount

 * Returns the current block index.
   http://flo.cash//api/getblockcount

getblockhash [index]

 * Returns the hash of the block at ; index 0 is the genesis block.
   http://flo.cash//api/getblockhash?index=2141052

getblock [hash]

 * Returns information about the block with the given hash.
   http://flo.cash//api/getblock?hash=8ad47bf484a9cb473904584b8403dda6aed9342a54df0e7afad619337088e679

getrawtransaction [txid] [decrypt]

 * Returns raw transaction representation for given transaction id. decrypt can be set to 0(false) or 1(true).
   http://flo.cash//api/getrawtransaction?txid=40118193c8342d381d3cf4547dbe7fa0c20c93becfe529602dfe2d3fd10d6362&decrypt=0
   http://flo.cash//api/getrawtransaction?txid=40118193c8342d381d3cf4547dbe7fa0c20c93becfe529602dfe2d3fd10d6362&decrypt=1

getnetworkhashps

 * Returns the current network hashrate. (hash/s)
   http://flo.cash//api/getnetworkhashps

EXTENDED API[edit]

Return data from local indexes


getmoneysupply

 * Returns current money supply
   http://flo.cash//ext/getmoneysupply

getdistribution

 * Returns wealth distribution stats
   http://flo.cash//ext/getdistribution

getaddress (/ext/getaddress/hash)

 * Returns information for given address
   http://flo.cash//ext/getaddress/FH96569yCZ4wqK5npC4TT2RVtkB14DHs4V

getbalance (/ext/getbalance/hash)

 * Returns current balance of given address
   http://flo.cash//ext/getbalance/FH96569yCZ4wqK5npC4TT2RVtkB14DHs4V

getlasttxs (/ext/getlasttxs/count/min)

 * Returns last [count] transactions greater than [min]
   Note: returned values are in satoshis
   http://flo.cash//ext/getlasttxs/10/100

LINKING (GET)[edit]

Linking to the block explorer


 * transaction (/tx/txid)
   http://flo.cash//tx/40118193c8342d381d3cf4547dbe7fa0c20c93becfe529602dfe2d3fd10d6362
 * block (/block/hash)
   http://flo.cash//block/8ad47bf484a9cb473904584b8403dda6aed9342a54df0e7afad619337088e679
 * address (/address/hash)
   http://flo.cash//address/FH96569yCZ4wqK5npC4TT2RVtkB14DHs4V
 * qrcode (/qr/hash)
   http://flo.cash//qr/FH96569yCZ4wqK5npC4TT2RVtkB14DHs4V