Skip to content
TAO$194.61
BTC0.003107
MCap$2.28B
Vol$180.39M

API reference / Network

Gamma over every subnet: lifetime totals and a daily series

GET/api/v2/gamma
Status
Beta
Auth
API key or OAuth access token
Scope
data:read
Rate limit
plan

Beta. Gamma is a subnet's service credit.

Full description

Beta. Gamma is a subnet's service credit: minted by burning the subnet's alpha (bought with TAO, or taken from the minter's stake), valued in US dollars at the mint (one gamma = one US dollar at the mint's price; amounts are in gamma rao, 10^9 per gamma), held in a deposit (SubtensorModule.GammaDeposits, keyed by subnet and hotkey) and burned by the deposit's one spender. The network's lifetime totals (minted by source, spent, TAO paid by TAO mints, alpha burned, outstanding, open deposits, distinct minters and spenders) and one row per UTC day of the window with the same figures summed over every subnet (minters and spenders distinct across subnets), oldest first; today last (open). When a subnet is dissolved its deposits are cleared with no event: that gamma is cleared_gamma_rao on the day its life ended, so outstanding = minted - spent - cleared always holds. Window: from_day..to_day (inclusive UTC days) or the days ending at to_day (default 30); to_day defaults to today. At most 367 days. Cached as the head. Errors are application/problem+json: INVALID_DAY, INVALID_DAYS, INVALID_RANGE (from_day with days, from_day after to_day, to_day after today, over 367 days), UNKNOWN_PARAMETER; SOURCE_TIMEOUT (503), SOURCE_NOT_READY (503: this deployment's data source is not configured, or does not serve gamma yet), SERVICE_UNAVAILABLE (503).

Beta: this route may change with one release's notice in the v2 changelog; additive changes need none (x-stability: beta).

Query parameters

from_dayquery· string (date)

The first UTC day, YYYY-MM-DD, inclusive. Not with days (400 INVALID_RANGE); not a date a 400 INVALID_DAY.

Format: date, YYYY-MM-DD
to_dayquery· string (date)

The last UTC day, YYYY-MM-DD, inclusive (default: today, the open day). After today a 400 INVALID_RANGE.

Format: date, YYYY-MM-DD
daysquery· integer · 1 to 367

The days ending at to_day, 1..367 (default 30). Not with from_day.

Response

data is an object with these fields. Amounts are integer strings in their base unit, and null means unknown, never zero (see Units and formats). meta.at names the block the answer was read at.

The totals and the daily series.

totalsobject · can be null

Lifetime totals over every subnet; null when no block is indexed yet.

18 fields in totals
minted_gamma_raostring · unit gamma_rao (÷1e9)

Gamma credited by every source. In gamma rao (10^9 per gamma).

Format: whole number, as a string
minted_from_tao_gamma_raostring · unit gamma_rao (÷1e9)

Of minted_gamma_rao: minted with TAO (TAO in, the subnet's alpha bought and burned). In gamma rao (10^9 per gamma).

Format: whole number, as a string
minted_from_stake_gamma_raostring · unit gamma_rao (÷1e9)

Of minted_gamma_rao: minted from stake (the minter's staked alpha burned). In gamma rao (10^9 per gamma).

Format: whole number, as a string
minted_from_emission_gamma_raostring · unit gamma_rao (÷1e9)

Of minted_gamma_rao: credited from another subnet's emission share (GammaEmissionMinted; none on chain yet, untested). In gamma rao (10^9 per gamma).

Format: whole number, as a string
spent_gamma_raostring · unit gamma_rao (÷1e9)

Gamma spent (burned by a deposit's spender): dollars at the prices of the mints that funded it, not a market value. In gamma rao (10^9 per gamma).

Format: whole number, as a string
paid_tao_raostring · unit rao (÷1e9)

TAO taken from the minters' free balance by TAO mints, swap fee included (a stake or emission mint pays none), in rao.

Format: whole number, as a string · on chain: u64
burned_alpha_raostring · unit alpha_rao (÷1e9)

The subnet's alpha burned by gamma mints, in alpha rao (not every alpha burn of the subnet: only the mints').

Format: whole number, as a string · on chain: u64
mint_countinteger · unit count

Mints (GammaMinted and GammaEmissionMinted events).

spend_countinteger · unit count

Spends (GammaSpent events).

skipped_spend_countinteger · unit count

Spend entries that spent nothing (GammaSpendSkipped; none on chain yet, untested).

outstanding_gamma_raostring · unit gamma_rao (÷1e9)

What the deposits hold at the period's end: minted - spent - cleared, from the life's first gamma event (moves between deposits net to 0). In gamma rao (10^9 per gamma).

Format: whole number, as a string
open_deposit_countinteger · unit count

Deposits open at the period's end: openings (a credit to a hotkey whose deposit was closed, or never opened) minus closes.

minter_countinteger · unit count

Distinct coldkeys that minted (as the mint events name them; an emission mint has no minter).

spender_countinteger · unit count

Distinct spenders that spent.

cleared_gamma_raostring · unit gamma_rao (÷1e9)

Gamma removed with no event when a subnet life ended (the subnet was dissolved, its deposits cleared): what the deposits held then. 0 when no life in the period ended. Always outstanding = minted - spent - cleared. In gamma rao (10^9 per gamma).

Format: whole number, as a string
first_event_heightinteger · unit block · can be null

The first gamma event's block; null when none.

last_event_heightinteger · unit block · can be null

The last gamma event's block; null when none.

subnet_life_countinteger · unit count

Subnet lives with a gamma event.

dailyarray of objects

One row per UTC day of the window with gamma activity or outstanding gamma, oldest first; today, when in the window, last (day_status open). Days before the first gamma event have no row.

20 fields in daily (each item)
minted_gamma_raostring · unit gamma_rao (÷1e9)

Gamma credited by every source. In gamma rao (10^9 per gamma).

Format: whole number, as a string
minted_from_tao_gamma_raostring · unit gamma_rao (÷1e9)

Of minted_gamma_rao: minted with TAO (TAO in, the subnet's alpha bought and burned). In gamma rao (10^9 per gamma).

Format: whole number, as a string
minted_from_stake_gamma_raostring · unit gamma_rao (÷1e9)

Of minted_gamma_rao: minted from stake (the minter's staked alpha burned). In gamma rao (10^9 per gamma).

Format: whole number, as a string
minted_from_emission_gamma_raostring · unit gamma_rao (÷1e9)

Of minted_gamma_rao: credited from another subnet's emission share (GammaEmissionMinted; none on chain yet, untested). In gamma rao (10^9 per gamma).

Format: whole number, as a string
spent_gamma_raostring · unit gamma_rao (÷1e9)

Gamma spent (burned by a deposit's spender): dollars at the prices of the mints that funded it, not a market value. In gamma rao (10^9 per gamma).

Format: whole number, as a string
paid_tao_raostring · unit rao (÷1e9)

TAO taken from the minters' free balance by TAO mints, swap fee included (a stake or emission mint pays none), in rao.

Format: whole number, as a string · on chain: u64
burned_alpha_raostring · unit alpha_rao (÷1e9)

The subnet's alpha burned by gamma mints, in alpha rao (not every alpha burn of the subnet: only the mints').

Format: whole number, as a string · on chain: u64
mint_countinteger · unit count

Mints (GammaMinted and GammaEmissionMinted events).

spend_countinteger · unit count

Spends (GammaSpent events).

skipped_spend_countinteger · unit count

Spend entries that spent nothing (GammaSpendSkipped; none on chain yet, untested).

outstanding_gamma_raostring · unit gamma_rao (÷1e9)

What the deposits hold at the period's end: minted - spent - cleared, from the life's first gamma event (moves between deposits net to 0). In gamma rao (10^9 per gamma).

Format: whole number, as a string
open_deposit_countinteger · unit count

Deposits open at the period's end: openings (a credit to a hotkey whose deposit was closed, or never opened) minus closes.

minter_countinteger · unit count

Distinct coldkeys that minted (as the mint events name them; an emission mint has no minter).

spender_countinteger · unit count

Distinct spenders that spent.

cleared_gamma_raostring · unit gamma_rao (÷1e9)

Gamma removed with no event when a subnet life ended (the subnet was dissolved, its deposits cleared): what the deposits held then. 0 when no life in the period ended. Always outstanding = minted - spent - cleared. In gamma rao (10^9 per gamma).

Format: whole number, as a string
daystring (date)

The UTC day.

Format: date, YYYY-MM-DD
day_statusstring

closed, or open: today (UTC), still moving until the day closes. New values may be added; show an unknown value as is (or generically).

day_end_heightinteger · unit block · can be null

The day's last block; null on the open day.

as_of_heightinteger · unit block

The block the row is current to: day_end_height, or on the open day the answer's block.

subnet_countinteger · unit count

Subnet lives with gamma that day (a dissolved subnet's rows stop at the day its life ended).

Response headers

10 headers: ETag, Cache-Control, CDN-Cache-Control, X-BTAI-Stale, X-BTAI-Stale-As-Of, RateLimit-Policy, RateLimit, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
ETag

Strong validator of this answer. Send it back as If-None-Match: an unchanged answer is a 304 Not Modified without a body. A settled answer's validator leaves the chain head out, so it stays valid as the head moves.

Cache-Control

One of three classes: settled public, max-age=3600, stale-while-revalidate=86400 (pinned to a block that cannot move), slow public, max-age=300, stale-while-revalidate=600 (state that moves in minutes or days) or tip public, max-age=6, stale-while-revalidate=12 (follows the chain head); the label routes are cached until the next nightly copy (public, max-age=<seconds>, stale-while-revalidate=60). Never immutable. no-store on an earlier answer served because the data source failed (X-BTAI-Stale).

CDN-Cache-Control

The same class for shared caches (RFC 9213; browsers ignore it): settled 24 h, slow 300 s, tip 6 s, each with stale-while-revalidate and stale-if-error; no-store with X-BTAI-Stale.

X-BTAI-Stale

Present only when the data source failed to answer (it timed out or was unavailable) and an earlier answer to the same request is served instead of a 503 (stale if error, RFC 5861). Then if-error, with X-BTAI-Stale-As-Of, Age (its seconds since then) and Warning: 110 - "Response is Stale", and Cache-Control: no-store: the answer is never kept as fresh, and a later request reads again. Prices and quotes are never served this way.

X-BTAI-Stale-As-Of

With X-BTAI-Stale: when the earlier answer served was produced, an RFC 3339 UTC time (2026-10-21T12:00:00Z).

RateLimit-Policy

The tier's request quota of the current window (IETF draft), e.g. "tier";q=600.

RateLimit

Requests left in the current window and the seconds until it resets (IETF draft), e.g. "tier";r=597;t=42.

X-RateLimit-Limit

The tier's request quota of the current window.

X-RateLimit-Remaining

Requests left in the current window.

X-RateLimit-Reset

When the current window resets, Unix seconds.

Status codes

200 · 304 · 400 · 401 · 402 · 403 · 404 · 429 · 500 · 503

304 Not Modified: the If-None-Match validator still matches; no body.

Error codes

The codes this endpoint can return. Each links to what it means and what to do.

From the API's published specification, version 1.175.0.