For developers
DMD Stats API
The DebitMyData network's figures as JSON and CSV files: the hashrate, difficulty, volume, market cap, mining cost and reference price of DMD, with chart points and candles, the miners and the large transfers. Free, with no key and no sign-up, readable from any website.
https://stats.debitmydata.io/api/Endpoints
GET /api/summary.jsonThe latest figures, with their changes over 24 hours: height, last block, difficulty, hashrate (last hour, 24 hours, all-time high), blocks and block time, the pool's share, mining cost, reference price, market cap, on-chain volume and transactions, the exchanges' trading volume and market price (null until DMD trades on an exchange), block reward, next halving, DMD mined, and the chain's status.
Every minute.GET /api/chart-24h.jsonA chart's points and candles. Ranges:
Every minute (30d, 1y and all: every 10 minutes).15m,1h,4h,24h,7d,30d,1yandall(since block 1), aschart-<range>.json. Their step: 30 seconds, 1 minute, 5 minutes, 10 minutes, 1 hour, 4 hours, a day and a day.GET /api/miners.jsonWho found the blocks of the last 24 hours, 7 days and 30 days: each miner's name (a pool of DebitMyData's pool list, else the text it writes in its blocks, or the address it pays), its blocks and its share; a listed pool's
Every minute.slugnames its logo,/pools/<slug>.svg.GET /api/blocks.jsonThe last 1,000 blocks, newest first:
Every new block, and every minute.height,time(Unix seconds),hash,difficulty, who found it (miner, named as inminers.json, with a listed pool'sslug, andpool: the DebitMyData pool), the text its miner wrote (coinbase_text), itstransactions,sizein bytes, andreward_dmd(the new coins and the fees). DMD Mining follows the pools with it.GET /api/transfers.jsonThe large transfers of the last 7 days: each transaction's id, block, time, the DMD it sent to other addresses and its fee.
Every minute.GET /api/richlist.jsonThe rich list: the 100 addresses with the most DMD, with their balance and their share of the DMD mined, from the monitor's own count of every block (the coinbases' payouts and every transaction).
Every minute.readyis false while it is still counting the blocks.GET /api/coin.jsonThe coin's facts and figures in one file, for exchanges and listing sites: ticker, algorithm, decimals, block time, height, difficulty, hashrate (24 hours), block reward, next halving, the supply (circulating and total are the same: no pre-mine, nothing locked;
Every minute.max_dmdis null because the reward starts a new cycle of 20,999,999.964 DMD after 32 halvings), the market or reference price, the market cap and which price it uses (market_cap_from), and links.GET /api/circulating-supply.txtThe DMD in circulation as a plain number, nothing else (for example
Every minute.5335155), the way CoinGecko and CoinMarketCap read a supply./api/total-supply.txtgives the total supply, the same number.GET /api/dmd-daily.csvDownloadOne line per day since block 1: first and last block, blocks, average block time, difficulty, hashrate, mining cost, reference price, the pool's blocks, on-chain volume, transactions and market cap. For spreadsheets.
Every minute.GET /api/dmd-blocks.csvDownloadOne line per block since block 1: height, time, hash, difficulty, transactions, size, pool, the miner's text, mining cost, miner, volume and fees.
Every hour.
The chart files
Each chart-<range>.json has points: one array per step, in the order of fields, the last one at the time the file was written. A point's value is its value at its time (the price, the difficulty, the hashrate over the window before it); its counts are over the step before it (blocks, volume, transactions).
| Field | What it is | Unit |
|---|---|---|
time | The point's time | Unix seconds, UTC |
price | DebitMyData's reference price (not a market price) | USD per DMD |
mining_cost | The electricity it takes to mine 1 DMD | USD per DMD |
difficulty | The chain's difficulty at its last block | |
hashrate | The work of the blocks over the window before the point (hashrate_window), divided by its length | hashes per second |
block_seconds | The average time between blocks over the same window | seconds |
blocks | Blocks found during the step | |
volume | DMD sent to other addresses during the step (change and mining rewards left out); null while the monitor is still counting it | DMD |
market_cap | The reference price × the DMD mined so far | USD |
transactions | Transactions during the step, besides the mining rewards | |
trading_volume_24h | What the exchanges traded over the 24 hours before the point, from CoinGecko; null until DMD trades on an exchange | USD |
market_price | The exchanges' price, from CoinGecko; null until DMD trades on an exchange | USD per DMD |
candles has the candles of price, hashrate, difficulty and market_cap: one per step, [time, open, high, low, close], the time being the step's start.
fetch("https://stats.debitmydata.io/api/chart-7d.json")
.then((r) => r.json())
.then((chart) => {
const at = Object.fromEntries(chart.fields.map((f, i) => [f, i]));
const last = chart.points[chart.points.length - 1];
console.log("hashrate", last[at.hashrate], "H/s");
console.log("last hashrate candle", chart.candles.hashrate.at(-1));
});
Good to know
- No key, no limits to sign up for. The files are static and cached for a minute: read them as often as you like, once a minute is enough. Any website can read them (CORS:
Access-Control-Allow-Origin: *). - Times are Unix seconds (UTC) in the chart files, and ISO 8601 in the others. Amounts of DMD are in DMD (8 decimals); prices and market cap in US dollars; hashrate in hashes per second.
- The reference price is not a market price. DMD is not on an exchange yet: the reference price is the rate the DebitMyData Gateway uses for DMD payments, the higher of DebitMyData's minimum rate and the mining cost (the gateway's own price API). The market cap uses it.
- Trading volume and market price come from CoinGecko once DMD trades on an exchange; until then they are null, and
summary.jsonsays"listed": false. - Hashrate is worked out from the blocks (the work they took divided by the time they took), so short windows move with luck; difficulty is exact.
- Fields may be added; existing ones keep their name and meaning. Please name DMD Stats as the source when you show the figures.
More DebitMyData APIs
- Mempool explorer API: blocks, transactions, addresses and the mempool.
- Explorer API: the rich list, supply and the chain's figures.
- DebitMyData Gateway API: payments in DMD and DID-LLMs for agents, and the reference price.