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.www.2x2block.space/api/getdifficulty
- getconnectioncountReturns the number of connections the block explorer has to other nodes.www.2x2block.space/api/getconnectioncount
- getblockcountReturns the current block index.www.2x2block.space/api/getblockcount
- getblockhash [index]Returns the hash of the block at [index]; index 0 is the genesis block.www.2x2block.space/api/getblockhash?index=66666
- getblock [hash]Returns information about the block with the given hash.www.2x2block.space/api/getblock?hash=ee463ef12b8b15a0f49b328c40ea47d0cf4cb92fe1f74cd3aae9c9405e6a09ca
- 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)www.2x2block.space/api/getnetworkhashps
Extended API
Return data from local indexes
- getmoneysupplyReturns current money supplywww.2x2block.space/ext/getmoneysupply
- getdistributionReturns wealth distribution statswww.2x2block.space/ext/getdistribution
- getaddress (/ext/getaddress/hash)Returns information for given addresswww.2x2block.space/ext/getaddress/CHXTRFgz6Ty8DS8t3A8KSeHeXrxshmjkga
- getaddresstxs (/ext/getaddresstxs/hash/start/length)Returns last [length] transactions for address [hash], starting from offset [start]www.2x2block.space/ext/getaddresstxs/CHXTRFgz6Ty8DS8t3A8KSeHeXrxshmjkga/0/50
- gettx (/ext/gettx/hash)Returns information for given tx hashwww.2x2block.space/ext/gettx/891a60db272bc998744b5b372ef98f8910ccf154937755f42108e3869e804957
- getbalance (/ext/getbalance/hash)Returns current balance of given addresswww.2x2block.space/ext/getbalance/CHXTRFgz6Ty8DS8t3A8KSeHeXrxshmjkga
- 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 pricewww.2x2block.space/ext/getcurrentprice
- getnetworkpeersReturns the list of network peers that have connected to the explorer node in the last 24 hourswww.2x2block.space/ext/getnetworkpeers
- getbasicstatsReturns basic statistics about the coin including: block count, circulating supply, USD price, USDT pricewww.2x2block.space/ext/getbasicstats
- getsummaryReturns a summary of coin data including: difficulty, hybrid difficulty, circulating supply, hash rate, USDT price, network connection count, block countwww.2x2block.space/ext/getsummary
Linking (GET)
Linking to the block explorer
- transaction (/tx/txid)www.2x2block.space/tx/891a60db272bc998744b5b372ef98f8910ccf154937755f42108e3869e804957
- block (/block/hash)www.2x2block.space/block/ee463ef12b8b15a0f49b328c40ea47d0cf4cb92fe1f74cd3aae9c9405e6a09ca
- address (/address/hash)www.2x2block.space/address/CHXTRFgz6Ty8DS8t3A8KSeHeXrxshmjkga
- qrcode (/qr/hash)www.2x2block.space/qr/CHXTRFgz6Ty8DS8t3A8KSeHeXrxshmjkga