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

API reference / Subnets

A subnet's gamma per UTC day

GET/api/v2/subnets/{netuid}/gamma/daily
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. One row per subnet life and UTC day: gamma minted by source, spent, TAO paid by TAO mints and alpha burned that day, and at the day's end the outstanding gamma and the open deposits. A life's rows run from the day of its first gamma event through today (day_status open, still moving) or the day it ended; a day without events carries the running figures. Every life in the window by default (each row names its generation); generation keeps one. A row whose subnet life is not known yet (a recent registration, for a few minutes) is served with generation null and is_life_known false, never as a life. 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. At most 734 rows (more lives in the window: a 400 RANGE_TOO_LARGE; name a generation). Cached as the head. Errors are application/problem+json: INVALID_NETUID, INVALID_GENERATION, RANGE_TOO_LARGE, 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).

Path parameters

netuidpath, required· integer · 0 to 65535

Subnet slot (0 = root).

Query parameters

generationquery· integer · at least 0

Only this subnet life (see GET /subnets/generations); default every life in the window. Not a non-negative integer: a 400 INVALID_GENERATION.

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 a list of objects 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.

One row per life and UTC day, by life (a re-registered slot has several; a row whose life is not known yet first) then day, oldest first. A life's rows run from its first gamma event's day through today (the open row) or through the day it ended; a day without events carries the running figures.

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
generationinteger · unit id · can be null

Opaque life id (the life's registration identifier), NOT a block height; use life_start_height for the first block. The subnet's life (its registration) the row belongs to (see GET /subnets/generations). Null while the life is not known yet (is_life_known false): a recent registration not yet recorded; the row then takes its life within minutes, with no other change.

life_start_heightinteger · unit block · can be null

The first block of the life generation names (GET /subnets/generations' start_height): use it, never generation, for heights, ages and dates. Null exactly when generation is null (root without a life, no subnet), or transiently when this API cannot read the lives. Root's generation 0 starts at 0.

is_current_lifeboolean · can be null

Whether generation is the slot's current life (true) or an ended one, re-registered since (false). Null exactly when generation is null, or transiently when this API cannot read the lives. Root's generation 0 is current.

is_life_knownboolean

Whether generation names the row's subnet life. False for a short time after a registration, until the life is recorded: the figures are real, only their life is not stated yet.

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.

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.