Subnets ranked by registration churn (deregistrations per day) over a window
https://api.bittensor.ai/api/v2/subnets/registrations/churn- Status
- Beta
- Auth
- API key or OAuth access token
- Scope
data:read- Rate limit
plan
Which subnets churn hardest: one row per subnet life with registrations in the window, ranked by deregistrations per day (rank 1 = the most; ties by netuid, then life start), each rated on the days it covers.
Full description
Which subnets churn hardest: one row per subnet life with registrations in the window, ranked by deregistrations per day (rank 1 = the most; ties by netuid, then life start), each rated on the days it covers. A life needs at least 5 registrations in the window to be ranked (rank_status unranked otherwise). Root (netuid 0), the pre-life era (registrations before a slot's first recorded life) and a life the lives registry does not hold yet are served beside the ranking with rank null, so the totals reconcile. Ranked rows come first in rank order, then the others by netuid and life. Per row: registrations by dispatching call, deregistrations, new UIDs, distinct UIDs replaced, and the TAO recycled. Per subnet life (generation): a re-registered netuid's lives are never blended. Current lives only by default; include_ended=true adds the ended lives (and an ended pre-life era) with their life_end_height. The window is from_day..to_day (UTC days, inclusive), clamped to the covered days; default the 30 days ending on meta.at's day (which is partial). A day before 1900-01-01 or after 2299-12-31 is a 400 INVALID_DAY. One row per subnet life: the answer is bounded by the subnet count, so any window is accepted. Read from the analytics store only: every figure is at its watermark block (meta.at, up to about 75 minutes behind the head; more than 6 hours behind is a 503 SOURCE_NOT_READY with Retry-After), meta.sources names the store. Where this deployment does not serve registration analytics the route is a 503 SOURCE_NOT_READY. Aggregates and distributions only: no hotkey or coldkey is listed or ranked. Percentiles are nearest rank (a value that occurred), each served only when at least 5 values are known; below that it is null and its *_reason says too_few (or none at 0). A pinned window of past days is cached as settled. Errors are application/problem+json: INVALID_BOOLEAN, INVALID_DAY, INVALID_RANGE, UNKNOWN_PARAMETER, NOT_READY (503: the registrations are not available yet), SOURCE_TIMEOUT (503), SOURCE_NOT_READY (503), SERVICE_UNAVAILABLE (503).
Beta: this route may change with one release's notice in the v2 changelog; additive changes need none (x-stability: beta).
Query parameters
- from_dayquery· string (date)
The first UTC day,
YYYY-MM-DD, inclusive. Not a date (or outside 1900..2299): a 400INVALID_DAY.- Format: date, YYYY-MM-DD
- to_dayquery· string (date)
The last UTC day,
YYYY-MM-DD, inclusive (default:meta.at's day). Beforefrom_day: a 400INVALID_RANGE.- Format: date, YYYY-MM-DD
- include_endedquery· enum · one of true, false · default false
true: also serve ended lives (and an ended pre-life era), each with itslife_end_height.false(the default): current lives only. Lower-case; anything else is a 400INVALID_BOOLEAN.
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 life with registrations in meta.from_day..meta.to_day: the ranked rows first in rank order, then the others by netuid and life; [] when none.
- netuidinteger · unit id
The subnet slot (0 = root).
- 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 (GET /subnets/generations). A netuid is a slot: a re-registered subnet is a new life, and every figure here is one life's, never a blend. Null for the pre-life era: registrations before the slot's first recorded life (one group per slot, bounded by that life's start).- 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 with
generation(the pre-life era).- life_end_heightinteger · unit block · can be null
The life's end (exclusive end block) when it ended at or below
meta.at; for the pre-life era, the slot's first life's start. Null for a current life. Ended lives are served only withinclude_ended=true.- registrationsinteger · unit count
Neuron registrations in the window (the sum of
by_method).- deregistrationsinteger · unit count
Registrations that replaced a UID's hotkey (a deregistration each).
- new_uidsinteger · unit count
Registrations that took a UID without replacing a hotkey (
registrations-deregistrations).- uids_replacedinteger · unit count
Distinct UIDs with at least one deregistration.
- recycled_rowsinteger · unit count
Registrations with a known recycled amount (the RAORecycledForRegistration increase of the registering extrinsic), proof of work's zeros included: the n of the cost figures. An unknown amount is never counted as 0.
- recycled_tao_raostring · unit rao (÷1e9) · can be null
The TAO those registrations recycled (the burn paid), rao. Null exactly when
recycled_rowsis 0. Over every call: divided byrecycled_rowsit is an average over every call, proof of work's zeros included (a call's own burn is on the cost routes).- Format: whole number, as a string · on chain: u64
- by_methodobject
Registrations per dispatching call (as on the activity rows); clients must accept new calls.
- daysinteger · unit days
The window's UTC days the life covers, edge days counted whole: a life covering part of the window is rated on its own days.
- deregistrations_per_daystring · unit count · 3 decimals
deregistrations/days, 3 decimals: the ranking key. On a freshly re-registered subnet the first days are high (the new life replaces the previous life's holders); readdaysbeside it.- Format: decimal number with 3 places, as a string
- rankinteger · unit count · can be null
1 = the most deregistrations per day (ties by netuid, then life start). Null unless
rank_statusisranked.- rank_statusstring
ranked: a subnet life with at least 5 registrations in the window. Beside the ranking, withranknull, so the totals reconcile:root(netuid 0: a seat replacement is not a subnet deregistration),pre_life(registrations before the slot's first recorded life),life_unknown(a life the lives registry does not hold yet) andunranked(fewer than 5 registrations). 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 · 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_BOOLEAN
- INVALID_DAY
- INVALID_RANGE
- NOT_READY
- PAYMENT_REQUIRED
- PLAN_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.165.0.