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

API reference / Subnets

A subnet's gamma: lifetime, current life and every life

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

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 slot's gamma: lifetime (every life of the slot summed), current_life (the life that has not ended) and lives (each life's lifetime figures with is_ended_life: a dissolved life's deposits were cleared, so its outstanding is 0 and its cleared_gamma_rao holds what they held). 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. A slot without gamma answers lives []. Cached as the head. Errors are application/problem+json: INVALID_NETUID, INVALID_INCLUDE, 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

includequery· string

Reserved for opt-in sections. This route defines none yet; the parameter is declared so that adding one later is additive for generated clients. Any value is a 400 INVALID_INCLUDE.

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 slot's gamma.

netuidinteger · unit id

The subnet slot.

lifetimeobject

Every life of the slot summed (distinct minter and spender counts are per life only).

15 fields in lifetime
minted_gamma_raostring · unit gamma_rao (÷1e9)

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

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

Of it: minted with TAO. In gamma rao (10^9 per gamma).

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

Of it: minted from stake. In gamma rao (10^9 per gamma).

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

Of it: credited from another subnet's emission share (untested). In gamma rao (10^9 per gamma).

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

Gamma spent, every life. In gamma rao (10^9 per gamma).

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

TAO paid by TAO mints, swap fee included, in rao, every life.

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

Alpha burned by gamma mints, in alpha rao, every life.

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

Mints, every life.

spend_countinteger · unit count

Spends, every life.

skipped_spend_countinteger · unit count

Spend entries that spent nothing, every life (untested).

outstanding_gamma_raostring · unit gamma_rao (÷1e9)

What the slot's deposits hold now (an ended life counts 0). In gamma rao (10^9 per gamma).

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

Deposits open now (an ended life counts 0).

cleared_gamma_raostring · unit gamma_rao (÷1e9)

Gamma cleared with the deposits of the lives that ended. 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 slot's first gamma event; null when none.

last_event_heightinteger · unit block · can be null

Its last gamma event; null when none.

current_lifeobject · can be null

The slot's current life with gamma: the newest life whose generation is known and that has not ended. Null when the slot has none (no gamma, or its newest life with gamma ended).

22 fields in current_life
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.

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.

is_ended_lifeboolean

The life ended (the subnet was dissolved): its deposits were cleared with no event, so outstanding_gamma_rao and open_deposit_count are 0 and cleared_gamma_rao holds what they held.

livesarray of objects

Every life of the slot with a gamma event, oldest first; a row whose life is not known yet (is_life_known false) last. [] when the slot has no gamma.

22 fields in lives (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
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.

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.

is_ended_lifeboolean

The life ended (the subnet was dissolved): its deposits were cleared with no event, so outstanding_gamma_rao and open_deposit_count are 0 and cleared_gamma_rao holds what they held.

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.