MecuaiCoin Public API
A listing of public API endpoints for retrieving MecuaiCoin coin data from the network without the need for a local wallet
API Documentation
API Calls
Return data from coind
- getdifficultyReturns the current difficulty.127.0.0.1:3127/api/getdifficulty
- getconnectioncountReturns the number of connections the block explorer has to other nodes.127.0.0.1:3127/api/getconnectioncount
- getblockcountReturns the current block index.127.0.0.1:3127/api/getblockcount
- getblockhash [index]Returns the hash of the block at [index]; index 0 is the genesis block.127.0.0.1:3127/api/getblockhash?index=112199
- getblock [hash]Returns information about the block with the given hash.127.0.0.1:3127/api/getblock?hash=70224b7df60f1a2637f5ea431f34c60630decf27dcbb770dfddd910bda56b547
- 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)127.0.0.1:3127/api/getnetworkhashps
- getvotelistReturns the current vote list.127.0.0.1:3127/api/getvotelist
- getmasternodecountReturns the total number of masternodes on the network.127.0.0.1:3127/api/getmasternodecount
Extended API
Return data from local indexes
- getmoneysupplyReturns current money supply127.0.0.1:3127/ext/getmoneysupply
- getdistributionReturns wealth distribution stats127.0.0.1:3127/ext/getdistribution
- getaddress (/ext/getaddress/hash)Returns information for given address127.0.0.1:3127/ext/getaddress/MPqyMrkxzu5u1Xn3cptBp7QX8gqPYPXoEc
- getaddresstxs (/ext/getaddresstxs/hash/start/length)Returns last [length] transactions for address [hash], starting from offset [start]127.0.0.1:3127/ext/getaddresstxs/MPqyMrkxzu5u1Xn3cptBp7QX8gqPYPXoEc/0/50
- gettx (/ext/gettx/hash)Returns information for given tx hash127.0.0.1:3127/ext/gettx/ac787d0dfd8cc88d09cdcba0f4bf9c23f8cedbf1601d68fd752f98c83f8895d3
- getbalance (/ext/getbalance/hash)Returns current balance of given address127.0.0.1:3127/ext/getbalance/MPqyMrkxzu5u1Xn3cptBp7QX8gqPYPXoEc
- 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 price127.0.0.1:3127/ext/getcurrentprice
- getnetworkpeersReturns the list of network peers that have connected to the explorer node in the last 24 hours127.0.0.1:3127/ext/getnetworkpeers
- getbasicstatsReturns basic statistics about the coin including: block count, circulating supply, USD price, USDT price, # of masternodes127.0.0.1:3127/ext/getbasicstats
- getsummaryReturns a summary of coin data including: difficulty, hybrid difficulty, circulating supply, hash rate, USDT price, USD price, network connection count, block count, count of online masternodes, count of offline masternodes127.0.0.1:3127/ext/getsummary
- getmasternodelistReturns the complete list of masternodes on the network.127.0.0.1:3127/ext/getmasternodelist
- getmasternoderewards (/ext/getmasternoderewards/hash/since)Returns a list of masternode reward transactions for address [hash] that arrived after block height [since]127.0.0.1:3127/ext/getmasternoderewards/MPqyMrkxzu5u1Xn3cptBp7QX8gqPYPXoEc/112199
- getmasternoderewardstotal (/ext/getmasternoderewardstotal/hash/since)Returns the total number of coins earned in masternode rewards for address [hash] that arrived after block height [since]127.0.0.1:3127/ext/getmasternoderewardstotal/MPqyMrkxzu5u1Xn3cptBp7QX8gqPYPXoEc/112199
Linking (GET)
Linking to the block explorer
- transaction (/tx/txid)127.0.0.1:3127/tx/ac787d0dfd8cc88d09cdcba0f4bf9c23f8cedbf1601d68fd752f98c83f8895d3
- block (/block/hash)127.0.0.1:3127/block/70224b7df60f1a2637f5ea431f34c60630decf27dcbb770dfddd910bda56b547
- address (/address/hash)127.0.0.1:3127/address/MPqyMrkxzu5u1Xn3cptBp7QX8gqPYPXoEc
- qrcode (/qr/hash)127.0.0.1:3127/qr/MPqyMrkxzu5u1Xn3cptBp7QX8gqPYPXoEc