Junkcoin Public API
Access blockchain data programmatically
API Calls
Return data from the blockchain
getblockhash [index]
Returns the hash of the block at [index]; index 0 is the genesis block.
Junkcoin Explorer/api/getblockhash?index=1getblock [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=0Junkcoin Explorer/api/getrawtransaction?txid=<txid>&decrypt=1
getnetworkhashps
Returns the current network hashrate. (hash/s)
Junkcoin Explorer/api/getnetworkhashpsExtended API
Return data from local indexes
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/50getbalance (/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
getbasicstats
Returns basic statistics about the coin including: block count, circulating supply
Junkcoin Explorer/ext/getbasicstatsgetsummary
Returns a summary of coin data including: difficulty, circulating supply, hash rate, block count
Junkcoin Explorer/ext/getsummaryLinking (GET)
Linking to the block explorer