Difference between revisions of "API"

From FLO Wiki
Jump to navigation Jump to search
Line 27: Line 27:
  
 
'''getrawtransaction [txid] [decrypt]'''
 
'''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
+
  * 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=1
+
    http://flo.cash//api/getrawtransaction?txid=40118193c8342d381d3cf4547dbe7fa0c20c93becfe529602dfe2d3fd10d6362&decrypt=0
 +
    http://flo.cash//api/getrawtransaction?txid=40118193c8342d381d3cf4547dbe7fa0c20c93becfe529602dfe2d3fd10d6362&decrypt=1
  
 
'''getnetworkhashps'''
 
'''getnetworkhashps'''
Returns the current network hashrate. (hash/s)
+
  * Returns the current network hashrate. (hash/s)
http://flo.cash//api/getnetworkhashps
+
  http://flo.cash//api/getnetworkhashps
Extended API
+
 
 +
EXTENDED API
 +
 
 
Return data from local indexes
 
Return data from local indexes
  
Line 42: Line 45:
  
 
'''getdistribution'''
 
'''getdistribution'''
Returns wealth distribution stats
+
 
http://flo.cash//ext/getdistribution
+
  * Returns wealth distribution stats
 +
    http://flo.cash//ext/getdistribution
  
 
'''getaddress (/ext/getaddress/hash)'''
 
'''getaddress (/ext/getaddress/hash)'''
Returns information for given address
+
 
http://flo.cash//ext/getaddress/FH96569yCZ4wqK5npC4TT2RVtkB14DHs4V
+
  * Returns information for given address
 +
    http://flo.cash//ext/getaddress/FH96569yCZ4wqK5npC4TT2RVtkB14DHs4V
  
 
'''getbalance (/ext/getbalance/hash)'''
 
'''getbalance (/ext/getbalance/hash)'''
Returns current balance of given address
+
 
http://flo.cash//ext/getbalance/FH96569yCZ4wqK5npC4TT2RVtkB14DHs4V
+
  * Returns current balance of given address
 +
    http://flo.cash//ext/getbalance/FH96569yCZ4wqK5npC4TT2RVtkB14DHs4V
  
 
'''getlasttxs (/ext/getlasttxs/count/min)'''
 
'''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)'''
+
  * Returns last [count] transactions greater than [min]
 +
    Note: returned values are in satoshis
 +
    http://flo.cash//ext/getlasttxs/10/100
 +
 
 +
'''LINKING (GET)'''
 +
 
 
'''Linking to the block explorer'''
 
'''Linking to the block explorer'''
  
 
   * transaction (/tx/txid)
 
   * transaction (/tx/txid)
  http://flo.cash//tx/40118193c8342d381d3cf4547dbe7fa0c20c93becfe529602dfe2d3fd10d6362
+
    http://flo.cash//tx/40118193c8342d381d3cf4547dbe7fa0c20c93becfe529602dfe2d3fd10d6362
  
 
   * block (/block/hash)
 
   * block (/block/hash)
  http://flo.cash//block/8ad47bf484a9cb473904584b8403dda6aed9342a54df0e7afad619337088e679
+
    http://flo.cash//block/8ad47bf484a9cb473904584b8403dda6aed9342a54df0e7afad619337088e679
  
 
   * address (/address/hash)
 
   * address (/address/hash)
  http://flo.cash//address/FH96569yCZ4wqK5npC4TT2RVtkB14DHs4V
+
    http://flo.cash//address/FH96569yCZ4wqK5npC4TT2RVtkB14DHs4V
  
 
   * qrcode (/qr/hash)
 
   * qrcode (/qr/hash)
  http://flo.cash//qr/FH96569yCZ4wqK5npC4TT2RVtkB14DHs4V
+
    http://flo.cash//qr/FH96569yCZ4wqK5npC4TT2RVtkB14DHs4V

Revision as of 18:19, 10 October 2019

RETURN DATA FROM COIND

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

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)

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