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