Skip to main content
This page is the field-level reference for the weight models defined in schemas/weights.py. For the public read that returns the aggregated vector, see Weights API.

MasterWeightsResponse

The aggregated, chain-ready weight vector returned by GET /v1/weights/latest (schemas/weights.py:33-42).
FieldTypeDefaultSource
netuidintegerschemas/weights.py:34
chain_endpointstringschemas/weights.py:35
uidsarray of integerschemas/weights.py:36
weightsarray of numberschemas/weights.py:37
hotkey_weightsobject (string → number){}schemas/weights.py:38
computed_atdatetimeschemas/weights.py:39
expires_atdatetimeschemas/weights.py:40
source_challengesarray of ChallengeWeightsResultschemas/weights.py:41
metagraph_updated_atdatetimeschemas/weights.py:42
uids and weights are parallel arrays — the weight at index i applies to the UID at index i. expires_at is validated to be in the future when the model is constructed; a non-future value raises a validation error (schemas/weights.py:44-48).

ChallengeWeightsResult

A single challenge’s contribution inside source_challenges (schemas/weights.py:19-24).
FieldTypeDefaultSource
slugstringschemas/weights.py:20
emission_percentnumberschemas/weights.py:21
weightsobject (string → number){}schemas/weights.py:22
okbooleantrueschemas/weights.py:23
errorstring or nullnullschemas/weights.py:24
When a challenge collection fails, ok is false and error carries the failure detail while weights stays empty (challenge_client.py:54-59).

ChallengeWeightsResponse

The shape a challenge returns from its internal get_weights endpoint, which the master collects per challenge (schemas/weights.py:11-16, challenge_client.py:31, challenge_client.py:43).
FieldTypeDefaultSource
challenge_slugstringschemas/weights.py:12
epochinteger or nullnullschemas/weights.py:13
weightsobject (string → number){}schemas/weights.py:14
metadataobject{}schemas/weights.py:15
computed_atdatetimenow (UTC)schemas/weights.py:16

FinalWeights

The internal vector model pairing UIDs with weights and per-hotkey weights (schemas/weights.py:27-30).
FieldTypeDefaultSource
uidsarray of integerschemas/weights.py:28
weightsarray of numberschemas/weights.py:29
hotkey_weightsobject (string → number){}schemas/weights.py:30

Freshness constant

MASTER_WEIGHTS_FRESHNESS_SECONDS = 720 defines the freshness window for the master weights (schemas/weights.py:8).

Weights pipeline

How these models are produced each epoch.

Weights API

The public read that returns these models.