A subnet owner's revenue per day against what the subnet recycled
https://api.bittensor.ai/api/v2/subnets/{netuid}/revenue- Status
- Beta
- Auth
- API key or OAuth access token
- Scope
data:read- Rate limit
plan
Per UTC day, oldest first.
Full description
Per UTC day, oldest first: the owner's revenue (the owner_cut emission component, alpha and its TAO at the day's close price; the chain splits it as 18 % of the participant (alpha_out) emission, served as participant_emission_alpha_rao), the owner hotkey's validator dividends apart (validator take + nominator dividend credited to the subnet's CURRENT owner hotkey, meta.owner_hotkey; never added to the revenue, and a past day counts the current owner hotkey), and what the subnet recycled: TAO by neuron registrations (RAORecycledForRegistration's increases) and alpha (AlphaRecycled's). Recycled figures are null where the supply counters do not cover the day. Default: the 30 days ending at the last available day; at most 367 days per request; root (netuid 0) has no owner. 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. One life: a netuid is a slot and a re-registered subnet is a new life; the series covers the subnet's CURRENT life only, from its first whole UTC day (meta.generation, meta.life_start_height, meta.life_first_day; a life with no whole day yet answers no rows). While per-life series are not available yet, the series is not limited to one life and those members are null. A pinned, closed range whose recycled figures are all available is cached as settled. Errors are application/problem+json: INVALID_NETUID, INVALID_DAY, INVALID_RANGE, SUBNET_NOT_FOUND (404), 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, 1..65535 (root has no owner: 0 is a 400).
Query parameters
- from_dayquery· string (date)
First UTC day,
YYYY-MM-DD, inclusive. Default: 29 days beforeto_day.- Format: date, YYYY-MM-DD
- to_dayquery· string (date)
Last UTC day,
YYYY-MM-DD, inclusive. Default: the last available 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 available day in meta.from_day..meta.to_day, oldest first; [] when none.
- daystring (date)
The UTC day.
- Format: date, YYYY-MM-DD
- day_end_heightinteger · unit block
The day's last block the figures are summed through.
- owner_cut_alpha_raostring · unit alpha_rao (÷1e9)
The
owner_cutemission component credited that day: the owner's revenue, alpha rao.- Format: whole number, as a string · on chain: u64
- owner_cut_spot_tao_raostring · unit rao (÷1e9) · can be null
owner_cut_alpha_raoat the day's close price (close_price_tao), rao. Null without a price.- Format: whole number, as a string · on chain: u64
- owner_validator_dividends_alpha_raostring · unit alpha_rao (÷1e9)
validator_take+nominator_dividendcredited to the subnet's CURRENT owner hotkey (meta.owner_hotkey) that day, alpha rao: what the owner earns as a validator. Separate from revenue, never added to it; a past day counts the current owner hotkey, not the one that day.- Format: whole number, as a string · on chain: u64
- owner_validator_dividends_spot_tao_raostring · unit rao (÷1e9) · can be null
owner_validator_dividends_alpha_raoat the day's close price, rao. Null without a price.- Format: whole number, as a string · on chain: u64
- recycled_registration_tao_raostring · unit rao (÷1e9) · can be null
SubtensorModule.RAORecycledForRegistration's increases that day: TAO recycled by neuron registrations, rao. Null where the supply counters do not cover the day (never a partial sum).
- Format: whole number, as a string · on chain: u64
- recycled_alpha_raostring · unit alpha_rao (÷1e9) · can be null
SubtensorModule.AlphaRecycled's increases that day, alpha rao. Null as
recycled_registration_tao_rao.- Format: whole number, as a string · on chain: u64
- close_price_taostring · unit tao_per_alpha · can be null
The pool's price at the day's end block, TAO per alpha, 9 decimals. Null without a pool state.
- Format: decimal number, as a string
- participant_emission_alpha_raostring · unit alpha_rao (÷1e9) · can be null
The alpha the day's epochs drained (server + validator + root + the pending owner cut, withheld miner incentive included), alpha rao: the base the chain splits the owner cut from (owner_cut = SubnetOwnerCut, 11796 / 65535, of it per epoch). Excludes the alpha injected into the pool. Null when the day starts before the drain report (the first available day has no previous day end: unknown, never 0), and on a older data version's answer.
- Format: whole number, as a string · on chain: u64
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
- SUBNET_NOT_FOUND
- UNAUTHORIZED
- UNKNOWN_PARAMETER
- VALIDATION_ERROR
From the API's published specification, version 1.165.0.