API documentation

The block explorer provides an API allowing users and/or applications to retrieve information from the network without the need for a local wallet.


API calls

Returns data from NZL

  • getdifficulty
    Returns the current difficulty.
    127.0.0.1:80/api/getdifficulty

  • getconnectioncount
    Returns the number of connections the block explorer has to other nodes.
    127.0.0.1:80/api/getconnectioncount

  • getmasternodecount
    Returns the total number of master nodes on the network.
    127.0.0.1:80/api/getmasternodecount

  • getblockcount
    Returns the current block index.
    127.0.0.1:80/api/getblockcount

  • getblockhash [index]
    Returns the hash of the block at [index]; index 0 is the genesis block.
    127.0.0.1:80/api/getblockhash?index=295639

  • getblock [hash]
    Returns information about the block with the given hash.
    127.0.0.1:80/api/getblock?hash=b644ee35977cf777bbb2ae5932829613db4538c45bd7317dfafdc873ae942b84

  • getrawtransaction [txid] [decrypt]
    Returns raw transaction data for given transaction id. decrypt can be set to 0 (false) or 1 (true).
    127.0.0.1:80/api/getrawtransaction?txid=c400de687fb30a125397be41a4059241332f25b01be69d9bdacacae5ed817c00&decrypt=0
    127.0.0.1:80/api/getrawtransaction?txid=c400de687fb30a125397be41a4059241332f25b01be69d9bdacacae5ed817c00&decrypt=1

  • getnetworkhashps
    Returns the current network hashrate. (hash/s)
    127.0.0.1:80/api/getnetworkhashps


Extended API

Return data from local indexes.

  • getmoneysupply
    Returns current money supply.
    127.0.0.1:80/ext/getmoneysupply

  • getdistribution
    Returns wealth distribution stats.
    127.0.0.1:80/ext/getdistribution

  • getaddress
    Returns information for given address.
    127.0.0.1:80/ext/getaddress/ZVn2BcPgNJ6KZcYK12LTUDnAYGgf8MgjTF

  • getbalance (/ext/getbalance/hash)
    Returns current balance of given address.
    127.0.0.1:80/ext/getbalance/ZVn2BcPgNJ6KZcYK12LTUDnAYGgf8MgjTF

  • getlasttxs (/ext/getlasttxs/count/min)
    Returns last [count] transactions greater than [min]
    Note: returned values are in satoshis!
    127.0.0.1:80/ext/getlasttxs/10/100

  • getmasternodelist
    Returns the number of master nodes on the network that are currently online.
    127.0.0.1:80/ext/getmasternodes


Linking (GET)

Linking to the block explorer.

  • Transaction (/tx/txid)
    Direct link to the Transaction Page.
    127.0.0.1:80/tx/c400de687fb30a125397be41a4059241332f25b01be69d9bdacacae5ed817c00

  • Block (/block/hash)
    Direct link to the Block Page.
    127.0.0.1:80/block/b644ee35977cf777bbb2ae5932829613db4538c45bd7317dfafdc873ae942b84

  • Address (/address/hash)
    Direct link to the Address Page.
    127.0.0.1:80/address/ZVn2BcPgNJ6KZcYK12LTUDnAYGgf8MgjTF

  • Qrcode (/qr/hash)
    Direct link to the QR Code.
    127.0.0.1:80/qr/ZVn2BcPgNJ6KZcYK12LTUDnAYGgf8MgjTF