Skip to content
TAO$188.21
BTC0.002927
MCap$2.22B
Vol$86.25M

API reference / Subnets

A subnet's weight submissions in a height window, newest first

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

Every weights call on the subnet in from_height..to_height.

Full description

Every weights call on the subnet in from_height..to_height (inclusive; at most 648,000 blocks, about 90 days; default the most recent 648,000 blocks ending at the index's head; wider is a 400 RANGE_TOO_LARGE), optionally one hotkey's, newest first, keyset-paged by (height, extrinsic, item) through meta.page.next_cursor. meta.window.covered says whether the whole window is within the index's coverage. One row per weights call per (hotkey, subnet): family names the kind of call (set, commit, reveal, crv3_commit, timelocked_commit, root_set; an open vocabulary: render an unknown family generically), call the exact call; a batch call's items are one row each; failed calls are included (success false). uid_count is the weight vector's length for sets and reveals; commit_hash / reveal_round describe commits. Coverage: the index starts at block 8,632,000 (about 90 days before 2026-10-14) and older history is still being prepared: meta.coverage_from_height is its current floor, and submissions below it are missing, not absent. family and success are applied over the index's pages (at most 500 rows read per request), so a filtered page can hold fewer than limit rows and still carry a next_cursor: follow it until it is null. Cached as the head. Errors: INVALID_NETUID, INVALID_ADDRESS (hotkey), INVALID_HEIGHT, INVALID_RANGE, RANGE_TOO_LARGE, INVALID_FAMILY, INVALID_BOOLEAN (success), INVALID_LIMIT, INVALID_CURSOR. Errors are application/problem+json: UNKNOWN_PARAMETER, SOURCE_TIMEOUT (503), SOURCE_NOT_READY (503: this deployment's data source is not configured or does not have weight submissions yet), SERVICE_UNAVAILABLE (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_heightquery· integer · 0 to 2147483647

The lowest block (inclusive). Default: to_height - 648,000 (not below 0).

to_heightquery· integer · 0 to 2147483647

The highest block (inclusive). Default: the index's head, or from_height + 648,000 when that is lower. Below from_height is a 400 INVALID_RANGE.

hotkeyquery· string

Only this hotkey's submissions: SS58, or 0x + 64 hex.

familyquery· string · up to 200 characters

Only these families: 1..8 comma-separated lower-case names (set, commit, reveal, crv3_commit, timelocked_commit, root_set, or any newer one; an unknown name lists nothing). Anything else is a 400 INVALID_FAMILY.

successquery· boolean

true: only successful calls; false: only failed ones. Omitted: both.

limitquery· integer · default 50 · 1 to 100

Rows per page, 1..100 (default 50). Anything else is a 400 INVALID_LIMIT.

cursorquery· string · up to 400 characters

meta.page.next_cursor of the previous page, sent back with the same other parameters (a cursor is bound to them; altered or foreign: 400 INVALID_CURSOR).

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 submissions, newest first (height, extrinsic, item).

heightinteger · unit block

The block the call is in.

block_timestring (date-time) · can be null

The block's time, RFC 3339 UTC; null if the block is not indexed.

Format: date and time, ISO 8601 in UTC
extrinsic_idstring · unit id

The extrinsic, {height}-{extrinsic_index} (/api/v2/extrinsics/{extrinsic_id}).

Format: block and index, such as 4200000-3
extrinsic_indexinteger · unit id

The extrinsic's index in the block.

item_indexinteger · unit id

The row's place in its extrinsic: calls in call-tree order (proxy / utility / multisig nesting), then a batch call's item. With height and extrinsic_index it identifies the row.

familystring

The weights call's family: set (set_weights, set_mechanism_weights, batch_set_weights, set_tao_weights), commit (commit_weights and its mechanism / batch forms), reveal (reveal_weights and its mechanism / batch forms), crv3_commit (commit_crv3_weights), timelocked_commit (commit_timelocked_weights) and root_set (set_root_weights). The vocabulary is open: a new weights call becomes a new value without notice, so render an unknown family generically (its call, block and subnet).

callstring

The SubtensorModule call: set_weights, set_mechanism_weights, batch_set_weights, commit_weights, reveal_weights, commit_crv3_weights, commit_timelocked_weights, their mechanism / batch forms, set_root_weights, set_tao_weights. An open vocabulary, as family.

netuidinteger · unit id

The subnet (a batch call's item: its own netuid; set_root_weights: 0).

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's life at height (see GET /subnets/generations); null if not known.

life_start_heightinteger · unit block · can be null

The first block of the life generation names (GET /subnets/generations' start_height): use it, never generation, for heights, ages and dates. Null exactly when generation is null (root without a life, no subnet), or transiently when this API cannot read the lives. Root's generation 0 starts at 0.

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.

mechidinteger · unit id

The subnet mechanism the weights are for; 0 when the call names none.

hotkeyobject

The submitting hotkey: the call's hotkey argument where it has one, else its signed origin (a proxied call's real account), else the extrinsic's signer.

2 fields in hotkey
ss58string

The account, SS58 (prefix 42).

Format: SS58 address
hexstring

The same 32-byte account id, 0x + 64 lower-case hex (the public key).

Format: 32-byte hex: 0x and 64 hex digits
uid_countinteger · unit count · can be null

UIDs weighted (set and reveal: the weight vector's length); null for commits.

commit_hashstring · can be null

commit: the committed hash; crv3_commit / timelocked_commit: the event's commit hash (the ciphertext is not kept); reveal: the revealed commit's hash. 0x hex; null for sets and for a failed call (no event).

Format: hex: 0x and hex digits
reveal_roundinteger · unit id · can be null

crv3_commit / timelocked_commit: the drand round the weights reveal at; null otherwise.

successboolean

The call succeeded. Failed calls are listed too; a batch item has its own outcome (the runtime skips a failed item and goes on).

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.