Several subnets' neuron registrations per day
https://api.bittensor.ai/api/v2/subnets/registrations- Status
- Beta
- Auth
- API key or OAuth access token
- Scope
data:read- Rate limit
plan
The registration history of several subnets in one call (netuids, required, as many as needed), as GET /subnets/{netuid}/registrations serves one: rows ordered by netuid, then day.
Full description
The registration history of several subnets in one call (netuids, required, as many as needed), as GET /subnets/{netuid}/registrations serves one: rows ordered by netuid, then day. 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). meta.netuid is null here (several subnets asked); a subnet without a registration in the window is in meta.netuids and has no row. 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. While this route is not available yet, a 503 SOURCE_NOT_READY. Errors are application/problem+json: INVALID_NETUID (netuids missing or not a comma list of 0..65535), 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).
Query parameters
- netuidsquery· string
Required: a comma list (or the parameter repeated) of subnets, each 0..65535 (0 = root), as many as needed; duplicates are ignored. Missing or anything else is a 400
INVALID_NETUID. For one subnet,GET /subnets/{netuid}/registrations.- 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 withGET /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_heightfor 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
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.- life_start_heightinteger · unit block · can be null
That life's first block. Null exactly when
generationis 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), 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 · 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.
- AMBIGUOUS_CREDENTIALS
- BAD_GATEWAY
- BILLING_UNAVAILABLE
- BUDGET_EXCEEDED
- CONCURRENCY_LIMIT
- INSUFFICIENT_PERMISSIONS
- INTERNAL_ERROR
- INVALID_DAY
- INVALID_NETUID
- INVALID_RANGE
- PAYMENT_REQUIRED
- PLAN_REQUIRED
- RATE_LIMITED
- SERVICE_UNAVAILABLE
- SOURCE_BUSY
- SOURCE_NOT_READY
- SOURCE_TIMEOUT
- UNAUTHORIZED
- UNKNOWN_PARAMETER
- VALIDATION_ERROR
From the API's published specification, version 1.165.0.