
2x2Coin Public API
A listing of public API endpoints for retrieving 2x2Coin coin data from the network without the need for a local wallet
API Documentation

API Calls
Return data from coind
- getdifficultyReturns the current difficulty.38.242.236.173:3819/api/getdifficulty
- getconnectioncountReturns the number of connections the block explorer has to other nodes.38.242.236.173:3819/api/getconnectioncount
- getblockcountReturns the current block index.38.242.236.173:3819/api/getblockcount
- getblockhash [index]Returns the hash of the block at [index]; index 0 is the genesis block.38.242.236.173:3819/api/getblockhash?index=4294
- getblock [hash]Returns information about the block with the given hash.38.242.236.173:3819/api/getblock?hash=bdab360eec11ed153a27b0cbc06c9121bc87f030c2bc8058c6078e6220c89fa4
- 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)38.242.236.173:3819/api/getnetworkhashps
Extended API
Return data from local indexes
- getmoneysupplyReturns current money supply38.242.236.173:3819/ext/getmoneysupply
- getdistributionReturns wealth distribution stats38.242.236.173:3819/ext/getdistribution
- getaddress (/ext/getaddress/hash)Returns information for given address38.242.236.173:3819/ext/getaddress/2Ku34TJVZA51BwGU9VjYUQF6hUtf3ZhMES
- getaddresstxs (/ext/getaddresstxs/hash/start/length)Returns last [length] transactions for address [hash], starting from offset [start]38.242.236.173:3819/ext/getaddresstxs/2Ku34TJVZA51BwGU9VjYUQF6hUtf3ZhMES/0/50
- gettx (/ext/gettx/hash)Returns information for given tx hash38.242.236.173:3819/ext/gettx/980e24f719f6cadb2372bc9f554a736a10b6123174b860014ad699d2652500a7
- getbalance (/ext/getbalance/hash)Returns current balance of given address38.242.236.173:3819/ext/getbalance/2Ku34TJVZA51BwGU9VjYUQF6hUtf3ZhMES
- 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 price38.242.236.173:3819/ext/getcurrentprice
- getnetworkpeersReturns the list of network peers that have connected to the explorer node in the last 24 hours38.242.236.173:3819/ext/getnetworkpeers
- getbasicstatsReturns basic statistics about the coin including: block count, circulating supply, USD price, USDT price38.242.236.173:3819/ext/getbasicstats
- getsummaryReturns a summary of coin data including: difficulty, hybrid difficulty, circulating supply, hash rate, USDT price, USD price, network connection count, block count38.242.236.173:3819/ext/getsummary
Linking (GET)
Linking to the block explorer
- transaction (/tx/txid)38.242.236.173:3819/tx/980e24f719f6cadb2372bc9f554a736a10b6123174b860014ad699d2652500a7
- block (/block/hash)38.242.236.173:3819/block/bdab360eec11ed153a27b0cbc06c9121bc87f030c2bc8058c6078e6220c89fa4
- address (/address/hash)38.242.236.173:3819/address/2Ku34TJVZA51BwGU9VjYUQF6hUtf3ZhMES
- qrcode (/qr/hash)38.242.236.173:3819/qr/2Ku34TJVZA51BwGU9VjYUQF6hUtf3ZhMES


