Developers

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

Returns the current difficulty.

Returns the number of connections the block explorer has to other nodes.

Returns the current block index.

Returns the hash of the block at [index]; index 0 is the genesis block.

Returns information about the block with the given hash.

Returns raw transaction representation for given transaction id. decrypt can be set to 0(false) or 1(true).

Returns the current network hashrate. (hash/s)

Extended API

Return data from local indexes

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.

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%.

Returns information for given address

Returns last [length] transactions for address [hash], starting from offset [start]

Returns information for given tx hash

Returns current balance of given address

Returns last [length] transactions greater than [min] coins, starting from offset [start]

Note: [length] is limited to returning 100 records per query

Returns last known exchange price

Asset metadata, holder count, top holders, issuance/reissuance history and latest movements (JSON, amounts as decimal strings).

Returns basic statistics about the coin including: block count, circulating supply, USD price

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