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.127.0.0.1:3819/api/getdifficulty
- getconnectioncountReturns the number of connections the block explorer has to other nodes.127.0.0.1:3819/api/getconnectioncount
- getblockcountReturns the current block index.127.0.0.1:3819/api/getblockcount
- getblockhash [index]Returns the hash of the block at [index]; index 0 is the genesis block.127.0.0.1:3819/api/getblockhash?index=2000
- getblock [hash]Returns information about the block with the given hash.127.0.0.1:3819/api/getblock?hash=0dc5a01f32426dc51110d35643ef116aa6ed38378c2601addead98c2f14bc381
- 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:3819/api/getnetworkhashps
Extended API
Return data from local indexes
- getmoneysupplyReturns current money supply127.0.0.1:3819/ext/getmoneysupply
- getdistributionReturns wealth distribution stats127.0.0.1:3819/ext/getdistribution
- getaddress (/ext/getaddress/hash)Returns information for given address127.0.0.1:3819/ext/getaddress/CGWEyacJZ3AgyGDsV8Mq4TG7jYtT2zxmMR
- getaddresstxs (/ext/getaddresstxs/hash/start/length)Returns last [length] transactions for address [hash], starting from offset [start]127.0.0.1:3819/ext/getaddresstxs/CGWEyacJZ3AgyGDsV8Mq4TG7jYtT2zxmMR/0/50
- gettx (/ext/gettx/hash)Returns information for given tx hash127.0.0.1:3819/ext/gettx/def4dfd1d09600f7fdca843fe7ee361f376c7793e81063ede8052e0087578fd9
- getbalance (/ext/getbalance/hash)Returns current balance of given address127.0.0.1:3819/ext/getbalance/CGWEyacJZ3AgyGDsV8Mq4TG7jYtT2zxmMR
- 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:3819/ext/getcurrentprice
- getnetworkpeersReturns the list of network peers that have connected to the explorer node in the last 24 hours127.0.0.1:3819/ext/getnetworkpeers
- getbasicstatsReturns basic statistics about the coin including: block count, circulating supply, USD price, USDT price127.0.0.1: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 count127.0.0.1:3819/ext/getsummary
Linking (GET)
Linking to the block explorer
- transaction (/tx/txid)127.0.0.1:3819/tx/def4dfd1d09600f7fdca843fe7ee361f376c7793e81063ede8052e0087578fd9
- block (/block/hash)127.0.0.1:3819/block/0dc5a01f32426dc51110d35643ef116aa6ed38378c2601addead98c2f14bc381
- address (/address/hash)127.0.0.1:3819/address/CGWEyacJZ3AgyGDsV8Mq4TG7jYtT2zxmMR
- qrcode (/qr/hash)127.0.0.1:3819/qr/CGWEyacJZ3AgyGDsV8Mq4TG7jYtT2zxmMR