A hotkey's weight submissions (sets, commits, reveals), newest first
https://api.bittensor.ai/api/v2/hotkeys/{hotkey}/weights- Status
- Beta
- Auth
- API key or OAuth access token
- Scope
data:read- Rate limit
plan
The hotkey's weights calls on every subnet, or on one with netuid, newest first, keyset-paged by (height, extrinsic, item) through meta.page.next_cursor.
Full description
The hotkey's weights calls on every subnet, or on one with netuid, newest first, keyset-paged by (height, extrinsic, item) through meta.page.next_cursor. 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 (submissions only append). Errors: INVALID_ADDRESS (hotkey), INVALID_NETUID, 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
- hotkeypath, required· string
The hotkey: SS58, or 0x + 64 hex.
Query parameters
- netuidquery· integer · 0 to 65535
Only this subnet (0 = root).
- 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 400INVALID_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_cursorof the previous page, sent back with the same other parameters (a cursor is bound to them; altered or foreign: 400INVALID_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
heightandextrinsic_indexit 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) androot_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_heightfor the first block. The subnet's life atheight(seeGET /subnets/generations); null if not known.- life_start_heightinteger · unit block · can be null
The first block of the life
generationnames (GET /subnets/generations'start_height): use it, nevergeneration, for heights, ages and dates. Null exactly whengenerationis null (root without a life, no subnet), or transiently when this API cannot read the lives. Root'sgeneration0 starts at 0.- 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.- 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), 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_ADDRESS
- INVALID_BOOLEAN
- INVALID_CURSOR
- INVALID_FAMILY
- INVALID_LIMIT
- INVALID_NETUID
- 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.