Lunarium Public API
A listing of public API endpoints for retrieving Lunarium coin data from the network without the need for a local wallet
API Documentation
API Calls
Return data from coind
- getdifficultyReturns the current difficulty.82881.n2m8has25.asia/api/getdifficulty
- getconnectioncountReturns the number of connections the block explorer has to other nodes.82881.n2m8has25.asia/api/getconnectioncount
- getblockcountReturns the current block index.82881.n2m8has25.asia/api/getblockcount
- getblockhash [index]Returns the hash of the block at [index]; index 0 is the genesis block.82881.n2m8has25.asia/api/getblockhash?index=1
- getblock [hash]Returns information about the block with the given hash.82881.n2m8has25.asia/api/getblock?hash=00000acaa588516237d85fae84330a115bb3f2fec7505846c03e69139f33e2ab
- getrawtransaction [txid] [decrypt]Returns raw transaction representation for given transaction id. decrypt can be set to 0(false) or 1(true).
- getnetworkhashpsReturns the current network hashrate. (hash/s)82881.n2m8has25.asia/api/getnetworkhashps
- getvotelistReturns the current vote list.82881.n2m8has25.asia/api/getvotelist
- getmasternodecountReturns the total number of masternodes on the network.82881.n2m8has25.asia/api/getmasternodecount
Extended API
Return data from local indexes
- getmoneysupplyReturns current money supply82881.n2m8has25.asia/ext/getmoneysupply
- getdistributionReturns wealth distribution stats82881.n2m8has25.asia/ext/getdistribution
- getaddress (/ext/getaddress/hash)Returns information for given address82881.n2m8has25.asia/ext/getaddress/XV62KZh8CogP92o75VQeEwL4ZVZMs4qVry
- getaddresstxs (/ext/getaddresstxs/hash/start/length)Returns last [length] transactions for address [hash], starting from offset [start]82881.n2m8has25.asia/ext/getaddresstxs/XV62KZh8CogP92o75VQeEwL4ZVZMs4qVry/0/50
- gettx (/ext/gettx/hash)Returns information for given tx hash82881.n2m8has25.asia/ext/gettx/64a060985b0d093f175ceabbb9ba6b6072e6347dae845ed0206b3f53c7d6c522
- getbalance (/ext/getbalance/hash)Returns current balance of given address82881.n2m8has25.asia/ext/getbalance/XV62KZh8CogP92o75VQeEwL4ZVZMs4qVry
- 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
- getcurrentpriceReturns last known exchange price82881.n2m8has25.asia/ext/getcurrentprice
- getnetworkpeersReturns the list of network peers that have connected to the explorer node in the last 24 hours82881.n2m8has25.asia/ext/getnetworkpeers
- getbasicstatsReturns basic statistics about the coin including: block count, circulating supply, USD price, XLN price, # of masternodes82881.n2m8has25.asia/ext/getbasicstats
- getsummaryReturns a summary of coin data including: difficulty, hybrid difficulty, circulating supply, hash rate, XLN price, USD price, network connection count, block count, count of online masternodes, count of offline masternodes82881.n2m8has25.asia/ext/getsummary
- getmasternodelistReturns the complete list of masternodes on the network.82881.n2m8has25.asia/ext/getmasternodelist
- getmasternoderewards (/ext/getmasternoderewards/hash/since)Returns a list of masternode reward transactions for address [hash] that arrived after block height [since]82881.n2m8has25.asia/ext/getmasternoderewards/XV62KZh8CogP92o75VQeEwL4ZVZMs4qVry/1
- getmasternoderewardstotal (/ext/getmasternoderewardstotal/hash/since)Returns the total number of coins earned in masternode rewards for address [hash] that arrived after block height [since]82881.n2m8has25.asia/ext/getmasternoderewardstotal/XV62KZh8CogP92o75VQeEwL4ZVZMs4qVry/1
Linking (GET)
Linking to the block explorer
- transaction (/tx/txid)82881.n2m8has25.asia/tx/64a060985b0d093f175ceabbb9ba6b6072e6347dae845ed0206b3f53c7d6c522
- block (/block/hash)82881.n2m8has25.asia/block/00000acaa588516237d85fae84330a115bb3f2fec7505846c03e69139f33e2ab
- address (/address/hash)82881.n2m8has25.asia/address/XV62KZh8CogP92o75VQeEwL4ZVZMs4qVry
- qrcode (/qr/hash)82881.n2m8has25.asia/qr/XV62KZh8CogP92o75VQeEwL4ZVZMs4qVry