The gamma events naming an account, newest first
https://api.bittensor.ai/api/v2/accounts/{address}/gamma/activity- 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. Every gamma event naming the account in any role, newest first, each with matched_roles: coldkey (the deposit's owner as the event states it), hotkey (the deposit's hotkey), spender, destination_hotkey (a move's destination). netuid keeps one subnet. The event: minted (GammaMinted), emission_minted (GammaEmissionMinted: another subnet's emission share bought and burned this subnet's alpha, credited to the deposit of this subnet's owner), spent (GammaSpent), spend_skipped (GammaSpendSkipped: a spend entry that spent nothing), moved (GammaMoved: between two deposits of one owner), deposit_closed (GammaDepositClosed), spender_set (GammaDepositSpenderSet), daily_spend_cap_set (GammaDepositDailySpendCapSet). Only minted, spent and spender_set have occurred on chain so far; the other five (emission_minted, spend_skipped, moved, deposit_closed, daily_spend_cap_set) are read from the runtime's event definitions and are untested on chain data. value_tao_rao: On minted / emission_minted: the burned alpha valued in TAO at the mint's mark (the lower of the subnet's gamma price and its spot price), the figure the gamma amount was priced from. A valuation, not TAO that moved: no account paid or received this TAO (what a minter paid is paid_tao_rao). Null on other events. Keyset-paged through meta.page.next_cursor. Cached as the head. Errors are application/problem+json: INVALID_ADDRESS, INVALID_NETUID (netuid), INVALID_LIMIT, INVALID_CURSOR, 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
- addresspath, required· string
The account: SS58, or 0x + 64 hex.
Query parameters
- netuidquery· integer · 0 to 65535
Only this subnet's events. Anything else is a 400
INVALID_NETUID.- limitquery· integer · default 50 · 1 to 100
Rows per page, 1..100 (default 50). Anything else is a 400
INVALID_LIMIT.- cursorquery· string · up to 400 characters
meta.page.next_cursorof the previous page, passed back unchanged with the same other parameters. It is opaque and bound to them: a cursor used with different parameters, or altered, is a 400INVALID_CURSOR.
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 page of events, newest first (block, then event index), each with its matched roles.
- heightinteger · unit block
The block.
- event_indexinteger · unit id
The event's index in the block (with
height, its key).- extrinsic_indexinteger · unit id · can be null
The extrinsic that emitted it; null for a block event (an emission mint, at an epoch).
- block_timestring (date-time) · can be null
The block's time, RFC 3339 UTC; null if the block is not indexed.
- Format: date and time, ISO 8601 in UTC
- kindstring
The event:
minted(GammaMinted),emission_minted(GammaEmissionMinted: another subnet's emission share bought and burned this subnet's alpha, credited to the deposit of this subnet's owner),spent(GammaSpent),spend_skipped(GammaSpendSkipped: a spend entry that spent nothing),moved(GammaMoved: between two deposits of one owner),deposit_closed(GammaDepositClosed),spender_set(GammaDepositSpenderSet),daily_spend_cap_set(GammaDepositDailySpendCapSet). Onlyminted,spentandspender_sethave occurred on chain so far; the other five (emission_minted,spend_skipped,moved,deposit_closed,daily_spend_cap_set) are read from the runtime's event definitions and are untested on chain data. New values may be added; show an unknown value as is (or generically).- mint_sourcestring · can be null
On
minted:stake(minted from the coldkey's stake; pays no TAO) ortao(minted with TAO). Null on other events. New values may be added; show an unknown value as is (or generically).- netuidinteger · unit id · can be null
The deposit's subnet (on
emission_minted: the subnet whose deposit is credited); null if the event does not name it.- generationinteger · unit id · can be null
Opaque life id (the life's registration identifier), NOT a block height; use
life_start_heightfor the first block. That subnet's life at the block; null while the life is not known yet.- life_start_heightinteger · unit block · can be null
The first block of the life
generationnames (GET /subnets/generations'start_height): use it, nevergeneration, for heights, ages and dates. Null exactly whengenerationis null (root without a life, no subnet), or transiently when this API cannot read the lives. Root'sgeneration0 starts at 0.- is_current_lifeboolean · can be null
Whether
generationis the slot's current life (true) or an ended one, re-registered since (false). Null exactly whengenerationis null, or transiently when this API cannot read the lives. Root'sgeneration0 is current.- hotkeyobject · can be null
The deposit's hotkey (on
moved: the origin deposit's).2 fields in hotkey
- ss58string
The account, SS58 (prefix 42).
- Format: SS58 address
- hexstring
The same 32-byte account id, 0x + 64 lower-case hex (the public key).
- Format: 32-byte hex: 0x and 64 hex digits
- coldkeyobject · can be null
The deposit's owner as the event states it (a later coldkey swap moves the deposit and leaves this as it was); null on
spend_skipped.2 fields in coldkey
- ss58string
The account, SS58 (prefix 42).
- Format: SS58 address
- hexstring
The same 32-byte account id, 0x + 64 lower-case hex (the public key).
- Format: 32-byte hex: 0x and 64 hex digits
- spenderobject · can be null
The spender as the event states it (on
spent/spend_skipped: the account that spent); null onmoved,deposit_closedanddaily_spend_cap_set.2 fields in spender
- ss58string
The account, SS58 (prefix 42).
- Format: SS58 address
- hexstring
The same 32-byte account id, 0x + 64 lower-case hex (the public key).
- Format: 32-byte hex: 0x and 64 hex digits
- gamma_raostring · unit gamma_rao (÷1e9) · can be null
Gamma minted, spent, moved, or asked by a skipped entry; null on
deposit_closed,spender_setanddaily_spend_cap_set. In gamma rao (10^9 per gamma).- Format: whole number, as a string
- paid_tao_raostring · unit rao (÷1e9) · can be null
On
minted: TAO taken from the coldkey's free balance, swap fee included (0 on a stake mint), in rao; null otherwise.- Format: whole number, as a string · on chain: u64
- burned_alpha_raostring · unit alpha_rao (÷1e9) · can be null
On
minted/emission_minted: alpha burned, in alpha rao (onemission_minted: the credited subnet's alpha); null otherwise.- Format: whole number, as a string · on chain: u64
- value_tao_raostring · unit rao (÷1e9) · can be null
On
minted/emission_minted: the burned alpha valued in TAO at the mint's mark (the lower of the subnet's gamma price and its spot price), the figure the gamma amount was priced from. A valuation, not TAO that moved: no account paid or received this TAO (what a minter paid ispaid_tao_rao). Null on other events. In rao.- Format: whole number, as a string · on chain: u64
- referencestring · can be null
On
spent/spend_skipped: the spend's 32-byte reference as the spender sent it, 0x + 64 hex; null otherwise.- Format: 32-byte hex: 0x and 64 hex digits
- destination_hotkeyobject · can be null
On
moved: the destination deposit's hotkey (the same owner's; opened by the move if it was not open). Null otherwise.2 fields in destination_hotkey
- ss58string
The account, SS58 (prefix 42).
- Format: SS58 address
- hexstring
The same 32-byte account id, 0x + 64 lower-case hex (the public key).
- Format: 32-byte hex: 0x and 64 hex digits
- daily_spend_cap_gamma_raostring · unit gamma_rao (÷1e9) · can be null
On
minted: the credited deposit's cap after the mint; ondaily_spend_cap_set: the new cap. Null = no cap, or another event. In gamma rao (10^9 per gamma).- Format: whole number, as a string
- skip_reasonstring · can be null
On
spend_skipped: why the entry spent nothing, the runtime error's name (known:GammaDepositDoesNotExist,NotGammaDepositSpender,AmountTooLow,InsufficientGammaBalance,GammaDepositDailySpendCapExceeded) or another error kind; null when the runtime does not name it, and on other events. New values may be added; show an unknown value as is (or generically).- paying_netuidinteger · unit id · can be null
On
emission_minted: the subnet whose emission share paid (its alpha sold for the TAO that bought the credited subnet's alpha); null otherwise.- matched_rolesarray of string
Where the event names the account:
coldkey(the owner),hotkey(the deposit's hotkey),spender,destination_hotkey(a move's destination). At least one. New values may be added; show an unknown value as is (or generically).
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), slowpublic, max-age=300, stale-while-revalidate=600(state that moves in minutes or days) or tippublic, 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). Neverimmutable.no-storeon 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-revalidateandstale-if-error;no-storewithX-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, withX-BTAI-Stale-As-Of,Age(its seconds since then) andWarning: 110 - "Response is Stale", andCache-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.
- ADDRESS_NOT_IN_PLAN_SCOPE
- AMBIGUOUS_CREDENTIALS
- BAD_GATEWAY
- BILLING_UNAVAILABLE
- BUDGET_EXCEEDED
- CONCURRENCY_LIMIT
- INSUFFICIENT_PERMISSIONS
- INTERNAL_ERROR
- INVALID_ADDRESS
- INVALID_CURSOR
- INVALID_LIMIT
- INVALID_NETUID
- PAYMENT_REQUIRED
- RATE_LIMITED
- REPEATED_PARAMETER
- SERVICE_UNAVAILABLE
- SOURCE_BUSY
- SOURCE_NOT_READY
- SOURCE_TIMEOUT
- UNAUTHORIZED
- UNKNOWN_PARAMETER
- VALIDATION_ERROR
From the API's published specification, version 1.175.0.