Skip to content
TAO$188.27
BTC0.002928
MCap$2.22B
Vol$86.25M

API reference / Subnets

A subnet's neuron registrations per day

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

Per UTC day with at least one registration, oldest first.

Full description

Per UTC day with at least one registration, oldest first (a day without registrations is absent): the registrations, split by dispatching call (burned_register, register for proof of work, register_limit, root_register, ...), the TAO they recycled (the burn paid; the RAORecycledForRegistration increase of each registering extrinsic, 0 for proof of work), the cheapest and dearest paid registration, and the deregistrations (a registration that replaced a UID's hotkey). The first and last covered days are partial (complete false). Every row names its netuid; meta.netuids lists the subnets served. Per life: one row per (netuid, life, day), each naming its life (generation, life_start_height): a re-registration day has a row for each life, ordered by the life's first block. While per-life rows are not available yet, one row per (netuid, day) with those members null. An answer can instead be served at a watermark block (meta.at, up to about 75 minutes behind the head), with meta.sources set; such an answer refuses a day before 1900-01-01 or after 2299-12-31 is a 400 INVALID_DAY, and the window is not limited to 367 days: any range up to 20,000 subnet-days per request (subnets x days, e.g. one subnet's whole history since 2023-03-20), more is a 400 INVALID_RANGE (split the subnets or the days). Here one subnet: meta.netuid and meta.netuids name it (several subnets in one call: GET /subnets/registrations?netuids=). The range is clamped to the days available so far (meta.history_from_day on; earlier history is still being prepared): meta.from_day / meta.to_day say what was served. A range that ends before the first day available is a 400 INVALID_RANGE. A pinned range of past days, every one complete, is cached as settled. Errors are application/problem+json: INVALID_DAY, INVALID_RANGE, UNKNOWN_PARAMETER, SOURCE_TIMEOUT (503), SOURCE_NOT_READY (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

from_dayquery· string (date)

First UTC day, YYYY-MM-DD, inclusive.

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

Last UTC day, YYYY-MM-DD, inclusive. Default: the last covered day.

Format: date, YYYY-MM-DD

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 subnet and day in meta.from_day..meta.to_day with at least one registration, ordered by netuid, then oldest first (a day without registrations is absent); [] when none.

netuidinteger · unit id

The subnet slot this row is for (one of meta.netuids; several with GET /subnets/registrations?netuids=). Always given: on an older data version's answer it is the subnet asked for.

daystring (date)

The UTC day.

Format: date, YYYY-MM-DD
registrationsinteger · unit count

Neuron registrations that day (the sum of by_method).

by_methodobject

Registrations per dispatching call: burned_register, register (proof of work), register_limit, root_register, ... Clients must accept calls not documented yet.

recycled_tao_raostring · unit rao (÷1e9)

The TAO the day's registrations recycled (the burn paid; 0 for proof of work), rao.

Format: whole number, as a string · on chain: u64
min_cost_tao_raostring · unit rao (÷1e9) · can be null

The cheapest paid registration that day (proof of work excluded), rao. Null when every one was proof of work.

Format: whole number, as a string · on chain: u64
max_cost_tao_raostring · unit rao (÷1e9) · can be null

The dearest paid registration that day, rao. Null as min_cost_tao_rao.

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

Registrations that replaced an existing UID's hotkey (a deregistration each).

completeboolean

False for the first and last days of the covered heights (partial days: their counts are a lower bound).

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 life of this row's registrations (GET /subnets/generations). One row per (netuid, life, day): a re-registration day has a row for each life. Null for a netuid without a recorded life (root), and on an older data version's answer.

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.

life_start_heightinteger · unit block · can be null

That life's first block. Null exactly when generation is null.

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 · 502 · 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.165.0.