Garlicoin data API
The numbers behind this site are free to use in your own bots, dashboards and apps. Everything is plain JSON, updated automatically, with no key needed.
Endpoints
/status/status.jsonEvery minuteThe current state of the network as seen by our node.
height· block heightbest_hash, best_time· latest block hash and its Unix timeavg_block_seconds· average block time over the last avg_window blocksdifficulty, hashrate· current difficulty and estimated network hashrate in H/smempool_txs, mempool_bytes· unconfirmed transactions waitingconnections, version· our peer count and node versionpeers· public nodes you can use with addnode=health· whether our tip agrees with our peers and with grlc.eu: ok plus a list of checksgenerated· Unix time the file was written
/supply/supply.jsonEvery minuteCoin supply and the halving schedule, from the consensus rules.
issued, issued_pct, left_to_issue· coins created by block rewards so far, of max_supplyblock_reward, next_block_reward· GRLC per block now and after the next halvingnext_halving_height, blocks_to_next_halving, next_halving_estimated_time· when the reward halves next (time assumes 40-second blocks)coins_per_day, annual_inflation_pct· current issuance rateschedule· every halving: height, reward and the actual or estimated time
/status/history.jsonEvery 5 minutesThe last 24 hours in hourly buckets, as used by the status charts.
buckets[]· start, end, blocks, avg_block_seconds, hashrate, last_heighttarget_seconds· the 40-second block target
The last 7 days in 6-hour buckets and the last 30 days in daily buckets, aligned to UTC.
ranges.7d, ranges.30d· bucket_seconds and buckets[], same fields as history.json
/mining/mining.jsonHourlyWhich pools found blocks in the last 24 hours, from the tags in each block.
pools[]· name, url (when known), blocks, share_pct, last_heightblocks· blocks in the windowwindow_seconds· length of the window
/price/price.jsonEvery 10 minutesGRLC price from CoinGecko. GRLC trades rarely, so check source_updated before relying on it.
usd, btc· price of 1 GRLCusd_market_cap, usd_24h_volume, usd_24h_change_pct· market figures (null when unknown)source_updated· Unix time CoinGecko last updated the price
/status/peers.txtEvery minuteReady-to-paste addnode= lines for garlicoin.conf. Plain text.
/tipbot/stats.jsonEvery 10 minutesAll-time totals for the Reddit tipbot. No individual users or balances.
tips, tipped· number of tips and GRLC tippedtippers, recipients, accounts, withdrawals· counts
Using it
- All files are static and served from
https://garlicoin.org. No key or sign-up. - Cross-origin requests are allowed, so you can
fetch()them from any web page. - Each file says when it was written in
generated. Polling more often than the update interval just returns the same data. - Times are Unix seconds (UTC). Amounts are in GRLC.
Examples
curl -s https://garlicoin.org/status/status.json | jq .height
fetch('https://garlicoin.org/supply/supply.json')
.then(r => r.json())
.then(s => console.log(s.blocks_to_next_halving))
Need more?
For transactions, addresses and blocks, the grlc.eu explorer API has you covered. Ideas for data we should add? Ask in the Discord.