A listing of public API endpoints for retrieving Digital Gold 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.explorer.digitalgold.com/api/getconnectioncount
- getblockcountReturns the current block index.explorer.digitalgold.com/api/getblockcount
- getblockhash [index]Returns the hash of the block at [index]; index 0 is the genesis block.explorer.digitalgold.com/api/getblockhash?index=144
- getblock [hash]Returns information about the block with the given hash.explorer.digitalgold.com/api/getblock?hash=0000000cf156cfe924cfdba9fd98a993b7ae85f86901b2c9d559055b2f1bfccf
- 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
- getaddress (/ext/getaddress/hash)Returns information for given addressexplorer.digitalgold.com/ext/getaddress/GczPk5jsrEhk1sPSFF6whpMKESNuRiMAob
- getaddresstxs (/ext/getaddresstxs/hash/start/length)Returns last [length] transactions for address [hash], starting from offset [start]explorer.digitalgold.com/ext/getaddresstxs/GczPk5jsrEhk1sPSFF6whpMKESNuRiMAob/0/50
- gettx (/ext/gettx/hash)Returns information for given tx hashexplorer.digitalgold.com/ext/gettx/b0992524493ecd1f91c5da687e9301d5dfb964a561d68a198e317878d9e7dcac
- getbalance (/ext/getbalance/hash)Returns current balance of given addressexplorer.digitalgold.com/ext/getbalance/GczPk5jsrEhk1sPSFF6whpMKESNuRiMAob
- 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 priceexplorer.digitalgold.com/ext/getcurrentprice
- getnetworkpeersReturns the list of network peers that have connected to the explorer node in the last 24 hoursexplorer.digitalgold.com/ext/getnetworkpeers
- getsummaryReturns a summary of coin data including: difficulty, hybrid difficulty, circulating supply, hash rate, BTC price, network connection count, block countexplorer.digitalgold.com/ext/getsummary
Linking (GET)
Linking to the block explorer
- transaction (/tx/txid)explorer.digitalgold.com/tx/b0992524493ecd1f91c5da687e9301d5dfb964a561d68a198e317878d9e7dcac
- block (/block/hash)explorer.digitalgold.com/block/0000000cf156cfe924cfdba9fd98a993b7ae85f86901b2c9d559055b2f1bfccf
- address (/address/hash)explorer.digitalgold.com/address/GczPk5jsrEhk1sPSFF6whpMKESNuRiMAob
- qrcode (/qr/hash)explorer.digitalgold.com/qr/GczPk5jsrEhk1sPSFF6whpMKESNuRiMAob