
Black Gold Coin Public API
A listing of public API endpoints for retrieving Black Gold Coin coin data from the network without the need for a local wallet
API Documentation

API Calls
Return data from coind
- getdifficultyReturns the current difficulty.localhost:3001/api/getdifficulty
- getconnectioncountReturns the number of connections the block explorer has to other nodes.localhost:3001/api/getconnectioncount
- getblockcountReturns the current block index.localhost:3001/api/getblockcount
- getblockhash [index]Returns the hash of the block at [index]; index 0 is the genesis block.localhost:3001/api/getblockhash?index=10000
- getblock [hash]Returns information about the block with the given hash.localhost:3001/api/getblock?hash=00000000000001591f354a6e2e6782bb6842d87d76a820cb7da4a5227495b567
- 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)localhost:3001/api/getnetworkhashps
Extended API
Return data from local indexes
- getmoneysupplyReturns current money supplylocalhost:3001/ext/getmoneysupply
- getdistributionReturns wealth distribution statslocalhost:3001/ext/getdistribution
- getaddress (/ext/getaddress/hash)Returns information for given addresslocalhost:3001/ext/getaddress/TCs4Ygjbhf3NpCaKNkSXYF45qAgDaK1ECE
- getaddresstxs (/ext/getaddresstxs/hash/start/length)Returns last [length] transactions for address [hash], starting from offset [start]localhost:3001/ext/getaddresstxs/TCs4Ygjbhf3NpCaKNkSXYF45qAgDaK1ECE/0/50
- gettx (/ext/gettx/hash)Returns information for given tx hashlocalhost:3001/ext/gettx/e8bb3813888bb09a21be726d23347030a31f7f82d802bf6482a5aa6a31b9a9fe
- getbalance (/ext/getbalance/hash)Returns current balance of given addresslocalhost:3001/ext/getbalance/TCs4Ygjbhf3NpCaKNkSXYF45qAgDaK1ECE
- 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
- getnetworkpeersReturns the list of network peers that have connected to the explorer node in the last 24 hourslocalhost:3001/ext/getnetworkpeers
- getbasicstatsReturns basic statistics about the coin including: block count, circulating supply, USD price, BTC pricelocalhost:3001/ext/getbasicstats
- getsummaryReturns a summary of coin data including: difficulty, hybrid difficulty, circulating supply, hash rate, BTC price, USD price, network connection count, block countlocalhost:3001/ext/getsummary
Linking (GET)
Linking to the block explorer
- transaction (/tx/txid)localhost:3001/tx/e8bb3813888bb09a21be726d23347030a31f7f82d802bf6482a5aa6a31b9a9fe
- block (/block/hash)localhost:3001/block/00000000000001591f354a6e2e6782bb6842d87d76a820cb7da4a5227495b567
- address (/address/hash)localhost:3001/address/TCs4Ygjbhf3NpCaKNkSXYF45qAgDaK1ECE
- qrcode (/qr/hash)localhost:3001/qr/TCs4Ygjbhf3NpCaKNkSXYF45qAgDaK1ECE