A listing of public API endpoints for retrieving USDG coin data from the network without the need for a local wallet
API Documentation
API Calls
Return data from coind
- getconnectioncountReturns the number of connections the block explorer has to other nodes.cftestingdns.com/api/getconnectioncount
- getblockcountReturns the current block index.cftestingdns.com/api/getblockcount
- getblockhash [index]Returns the hash of the block at [index]; index 0 is the genesis block.cftestingdns.com/api/getblockhash?index=12888
- getblock [hash]Returns information about the block with the given hash.cftestingdns.com/api/getblock?hash=ee61734ecb7c3a359b4eb332451f0a40657ca194e9a83f327e1509f456c2e59a
- getrawtransaction [txid] [decrypt]Returns raw transaction representation for given transaction id. decrypt can be set to 0(false) or 1(true).
Extended API
Return data from local indexes
- getmoneysupplyReturns current money supplycftestingdns.com/ext/getmoneysupply
- getaddress (/ext/getaddress/hash)Returns information for given addresscftestingdns.com/ext/getaddress/usdg1q33h6prpvytedpchkard8qeggw9zref778lzld5
- getaddresstxs (/ext/getaddresstxs/hash/start/length)Returns last [length] transactions for address [hash], starting from offset [start]cftestingdns.com/ext/getaddresstxs/usdg1q33h6prpvytedpchkard8qeggw9zref778lzld5/0/50
- gettx (/ext/gettx/hash)Returns information for given tx hashcftestingdns.com/ext/gettx/24df35cc0785858de7d237477115341ca0291be2f8fba2d45ce5333eb33007a6
- getbalance (/ext/getbalance/hash)Returns current balance of given addresscftestingdns.com/ext/getbalance/usdg1q33h6prpvytedpchkard8qeggw9zref778lzld5
- getlasttxs (/ext/getlasttxs/min/start/length)Returns last [length] transactions greater than [min] coins, starting from offset [start]Note: [length] is limited to returning 50 records per query
- getcurrentpriceReturns last known exchange pricecftestingdns.com/ext/getcurrentprice
- getnetworkpeersReturns the list of network peers that have connected to the explorer node in the last 24 hourscftestingdns.com/ext/getnetworkpeers
- getsummaryReturns a summary of coin data including: difficulty, hybrid difficulty, circulating supply, hash rate, BTC price, network connection count, block countcftestingdns.com/ext/getsummary
Linking (GET)
Linking to the block explorer
- transaction (/tx/txid)cftestingdns.com/tx/24df35cc0785858de7d237477115341ca0291be2f8fba2d45ce5333eb33007a6
- block (/block/hash)cftestingdns.com/block/ee61734ecb7c3a359b4eb332451f0a40657ca194e9a83f327e1509f456c2e59a
- address (/address/hash)cftestingdns.com/address/usdg1q33h6prpvytedpchkard8qeggw9zref778lzld5
- qrcode (/qr/hash)cftestingdns.com/qr/usdg1q33h6prpvytedpchkard8qeggw9zref778lzld5