Alpha an account bought on subnets it owned
https://api.bittensor.ai/api/v2/accounts/{address}/owner-buybacks- Status
- Beta
- Auth
- API key or OAuth access token
- Scope
data:read- Rate limit
plan
The account's pool buys on a subnet it owned at that block (SubnetOwner in force then, from the storage history): a subnet owner buying back its own alpha. Newest first, keyset-paged by meta.page.next_cursor (null on the last page). meta.owned_netuids lists the subnets the account owned at any point (the candidates). Exact inside meta.coverage (the trade history's): older buys are not served yet. from_height / to_height bound the heights (inclusive). Errors are application/problem+json: INVALID_ADDRESS, INVALID_HEIGHT, INVALID_RANGE, INVALID_LIMIT, INVALID_CURSOR, INVALID_INCLUDE, 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
- addresspath, required· string
The account (coldkey): SS58, or 0x + 64 hex.
Query parameters
- from_heightquery· integer · 0 to 2147483647
Only buys at or above this height.
- to_heightquery· integer · 0 to 2147483647
Only buys at or below this height.
- limitquery· integer · default 50 · 1 to 200
Page size, 1..200 (default 50; this route's cap, above it is a 400
INVALID_LIMIT).- cursorquery· string · up to 200 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.- includequery· string
namesadds the top-levelincluded.names: every distinct account on the page (accounts indataat any depth, event args included) keyed by its SS58 address, each{identity: {name} | null, label: {text, source, confidence, verified, inferred, as_of} | null}; the on-chain identity and the off-chain label are kept apart, and a label is never a chain fact. A missing key means 'not looked up', null means 'none'. At most 500 accounts (included.names_truncated). Still one call (the data source sideloads them in the same statement); an answer with names is cached as a head answer (names follow the head). Anything else is a 400INVALID_INCLUDE.
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.
The buys, newest first (height, event index).
- idstring · unit id
The trade event,
{height}-{event_index}.- Format: block and index, such as 4200000-3
- heightinteger · unit block
The block of the buy.
- timestring (date-time) · can be null
The block's time, RFC 3339 UTC. Null when not recorded.
- Format: date and time, ISO 8601 in UTC
- extrinsic_idstring · can be null
The extrinsic,
{height}-{index}; null for a buy without one.- netuidinteger · unit id
The subnet bought (one the account owned at that block).
- hotkeystring · can be null
The hotkey staked to, SS58 (prefix 42). Null when not recorded.
- Format: SS58 address
- tao_raostring · unit rao (÷1e9) · can be null
The TAO spent, rao (gross of the fee).
- Format: whole number, as a string · on chain: u64
- alpha_raostring · unit alpha_rao (÷1e9) · can be null
The alpha received, alpha rao of
netuid.- Format: whole number, as a string · on chain: u64
- execution_price_taostring · unit tao_per_alpha · can be null
TAO per alpha the buy executed at (
tao_rao/alpha_rao). Null with either.- Format: decimal number, as a string
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.
- ADDRESS_NOT_IN_PLAN_SCOPE
- AMBIGUOUS_CREDENTIALS
- BAD_GATEWAY
- BILLING_UNAVAILABLE
- BUDGET_EXCEEDED
- CONCURRENCY_LIMIT
- INSUFFICIENT_PERMISSIONS
- INTERNAL_ERROR
- INVALID_ADDRESS
- INVALID_CURSOR
- INVALID_HEIGHT
- INVALID_INCLUDE
- INVALID_LIMIT
- INVALID_RANGE
- 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.165.0.