API Calls

Return data from the blockchain

getdifficulty

Returns the current difficulty.

Junkcoin Explorer/api/getdifficulty

getblockcount

Returns the current block index.

Junkcoin Explorer/api/getblockcount

getblockhash [index]

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

Junkcoin Explorer/api/getblockhash?index=1

getblock [hash]

Returns information about the block with the given hash.

Junkcoin Explorer/api/getblock?hash=<blockhash>

getrawtransaction [txid] [decrypt]

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

Junkcoin Explorer/api/getrawtransaction?txid=<txid>&decrypt=0
Junkcoin Explorer/api/getrawtransaction?txid=<txid>&decrypt=1

getnetworkhashps

Returns the current network hashrate. (hash/s)

Junkcoin Explorer/api/getnetworkhashps

Extended API

Return data from local indexes

getmoneysupply

Returns current money supply

Junkcoin Explorer/ext/getmoneysupply

getaddress (/ext/getaddress/hash)

Returns information for given address

Junkcoin Explorer/ext/getaddress/<address>

getaddresstxs (/ext/getaddresstxs/hash/start/length)

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

Junkcoin Explorer/ext/getaddresstxs/<address>/0/50

gettx (/ext/gettx/hash)

Returns information for given tx hash

Junkcoin Explorer/ext/gettx/<txid>

getbalance (/ext/getbalance/hash)

Returns current balance of given address

Junkcoin Explorer/ext/getbalance/<address>

getlasttxs (/ext/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

Junkcoin Explorer/ext/getlasttxs/100/0/10

getbasicstats

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

Junkcoin Explorer/ext/getbasicstats

getsummary

Returns a summary of coin data including: difficulty, circulating supply, hash rate, block count

Junkcoin Explorer/ext/getsummary

Linking (GET)

Linking to the block explorer