For developers
DMD Mining API
Every pool mining DMD, the DebitMyData coin, as JSON files: each pool's hashrate, miners, fees, payout schemes and stratum addresses from its own API, the blocks it found from the chain, its luck, and charts over time. Free, with no key and no sign-up, readable from any website.
https://mining.debitmydata.io/api/Endpoints
GET /api/summary.jsonThe network (height, last block, difficulty, its hashrate over the last hour and 24 hours, block time, reward, next halving) and every pool: its
Every 20 seconds.slug, name, website, country, software,status(up: its API answers;down;behind: its node is more than 5 blocks behind;none: no public API), itshashrateandminersas its API says, its hashrate from its blocks, its payoutschemesand fees, its blocks over the last hour, 24 hours, 7 and 30 days, its last and first block, itsluck_24h, andspark: its hashrate each hour of the last 24 (its blocks, for a pool without an API). Thenothers: the miners not in the pool list, andtotals, with how many miners together found half of the blocks (nakamoto_24h).GET /api/pools/official.jsonOne pool, by its
Every 20 seconds.slug: everything insummary.json, and how to connect (modes: each way to mine there, with its scheme, fee, minimum payout,endpointswith their stratum address and difficulty, username and password), its payout addresses and the text it writes in its blocks, how often its API answered (uptime_24h,uptime_7d), its luck over 7 days and average effort over 30,found: its last 100 blocks (with their status and effort when its API gives them), its orphaned blocks, andchartsfor24h,7d,30dand1y: its hashrate from its API (reported) and from its blocks (from_blocks), and the blocks it found.GET /api/blocks.jsonThe last 100 blocks, newest first: height, hash, time (Unix seconds), the seconds since the block before, who found it (
Every 20 seconds.miner, andslugfor a listed pool), reward in DMD, transactions, size, difficulty, and its status from the pool's API when it gives one.GET /api/distribution.jsonWho found the blocks of the last 24 hours, 7 days, 30 days, year, ever (
Every 20 seconds.all), and of the last 1,000 blocks: each miner's name,slug(listed pools), blocks and share, with how many together found more than half (nakamoto).GET /api/chart-24h.jsonThe charts over time, for
Every 20 seconds (30d, 1y and all: every 10 minutes).24h,7d,30d,1yandall, aschart-<range>.json.hashrate:times(each step's start, Unix seconds), each pool's hashrate from its API (pools, null where it didn't answer or wasn't followed yet), each pool's hashrate from the blocks it found (from_blocks: every block since block 1, the biggest pools each and the other miners together asothers; together they make the network's), and thenetwork's from the blocks.blocks: the blocks each pool found per step (series, the miners not in the list together asothers).
Good to know
- No key, no limits to sign up for. The files are static: read them as often as you like; every 30 seconds is enough. Any website can read them (CORS:
Access-Control-Allow-Origin: *). - Times are Unix seconds (UTC). Hashrates are in hashes per second, amounts in DMD, fees in percent, shares, luck and effort as fractions (0.55 is 55%).
- Who found a block comes from the chain, through DMD Stats' API, and DebitMyData's pool list (the text a pool writes in its blocks, or the address it pays). Everything about a pool besides comes from its own API, read every minute, and from the list's
pools-info.json. - The pools' logos are at
/logos/<slug>.svg, from DebitMyData's pool logos. - Run a pool? Add it to the pool list (how), or write to [email protected].
fetch("https://mining.debitmydata.io/api/summary.json")
.then((r) => r.json())
.then((s) => {
for (const pool of s.pools) {
console.log(pool.name, pool.hashrate, "H/s,", pool.blocks["24h"], "blocks today");
}
});