Public API
GET /api/status
The chain tip and what its difficulty implies, in one call.
curl https://varve.mine.bz/api/status
| height, bestblockhash | the chain tip as this node sees it |
|---|---|
| time | tip block time (Unix seconds, as the miner stamped it) |
| bits, difficulty | the tip's compact target and the node's difficulty number for it |
| work_per_block | expected hashes per block at the tip difficulty, 2256 / (target+1). Served as an integer; parse it as a big integer if exactness matters to you |
| mean_interval_s | measured mean seconds between the last 500 blocks, from this explorer's index; null until enough blocks are indexed |
| implied_network_hs | work_per_block / mean_interval_s — the hashrate the whole network must have been spending to hold the measured pace; null while mean_interval_s is |
Cached 10 seconds.
GET /api/blocks · GET /api/blocks.csv
Recent blocks, newest first, from this explorer's index: height, hash, time, nBits and the interval since the previous block.
curl "https://varve.mine.bz/api/blocks?count=100" curl -o blocks.csv "https://varve.mine.bz/api/blocks.csv?start=20000&count=100"
| start | highest height to include (default: the tip) |
|---|---|
| count | how many blocks, 1–100 (default 100). To walk the whole chain, repeat with start set to one below the lowest height the previous call returned |
| interval_s | this block's time minus the previous block's. Timestamps are miner-stamped, so an occasional negative value is a clock artifact, not an error; null (empty in CSV) when the previous block is not in the index |
| bits | the block's compact difficulty target; null (empty in CSV) if the node could not be asked just then |
Cached 30 seconds. CSV columns: height,hash,time,bits,interval_s.
GET /api/supply
The figures behind the supply page: measured supply, the schedule's ceiling so far, the maximum ever, and the next halving. Amounts with _sat in the name are integer satoshis (1 VARV = 100,000,000 sat).
curl https://varve.mine.bz/api/supply
Cached 60 seconds.
GET /api/stats
The small endpoint this site's own pages use: height, formatted supply, mempool size. Kept for compatibility; prefer /api/status for anything new.
Fair use & guarantees
This runs on the same small server as the explorer. Respect the cache headers — none of these numbers move faster than the block interval, so a poll every 30–60 seconds is plenty. No uptime promise is made, and the index this serves is one node's view of the chain. For anything you cannot afford to have wrong, run your own node and ask it directly: every figure here can be recomputed from getblockheader and gettxoutsetinfo.