API Documentation
Amounts
All XNA and asset amounts are returned as decimal strings with 8 decimals (for example "21000000000.12345678"), in transaction JSON (vout[].value, vin[].value,scriptPubKey.asset.amount) as well as in totalOutput, fee, balances and supply. Unlike JSON numbers, strings keep satoshi precision above 2^53 in JavaScript. Raw transaction hex is unaffected. Node fields the explorer does not model (e.g. valueSat) are passed through as the node emits them.
API Calls
Return data from coind
getconnectioncount
Returns the number of connections the block explorer has to other nodes.
getblockhash [index]
Returns the hash of the block at [index]; index 0 is the genesis block.
getblock [hash]
Returns information about the block with the given hash.
getrawtransaction [txid] [decrypt]
Returns raw transaction representation for given transaction id. decrypt can be set to 0(false) or 1(true).
Extended API
Return data from local indexes
getmoneysupply
Returns the circulating supply as a decimal string.
Source: the node's UTXO set (gettxoutsetinfo.total_amount), refreshed by the syncer every 10 minutes; it may trail the chain tip by that much and differs slightly from the sum of indexed address balances (outputs without an address). While the node value is not available yet, the sum of indexed balances is returned instead. getsummary exposes the source and timestamp as supply_source / supply_updated_at.
getdistribution
Wealth distribution by richlist rank: addresses ranked 1-25, 26-50, 51-75, 76-100 and 101+, each with total (decimal string), count and percent of the supply.
Totals and counts come from the indexed addresses; percent uses the getmoneysupply value, so the five tiers may not add up to exactly 100%.
getaddress (/api/getaddress?address=hash)
Returns information for given address
getaddresstxs (/api/getaddresstxs/hash/start/length)
Returns last [length] transactions for address [hash], starting from offset [start]
gettx (/api/gettx/hash)
Returns information for given tx hash
getbalance (/api/getbalance/hash)
Returns current balance of given address
getlasttxs (/api/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
asset (/api/asset/name)
Asset metadata, holder count, top holders, issuance/reissuance history and latest movements (JSON, amounts as decimal strings).
getbasicstats
Returns basic statistics about the coin including: block count, circulating supply, USD price
getsummary
Returns a summary of coin data including: difficulty, hybrid difficulty, circulating supply, hash rate, USD price, network connection count, block count
Linking (GET)
Linking to the block explorer
