AlphaValues
Storage Map v156 → v472 · 1 shape changeAlpha low and high bounds per subnet .
Explore chainQueried by: validatorssubnet ownersdevelopers
The Big Picture
When Liquid Alpha is enabled, alpha values are bounded by these low/high parameters. Returns (alpha_low, alpha_high) tuple. These bounds constrain how alpha adjusts during consensus calculations.
Use Cases
- Check alpha bounds for a subnet
- Understand liquid alpha dynamics
- Build alpha visualization tools
From Chain Metadata
MAP ( netuid ) --> (alpha_low, alpha_high)
Purpose & Usage
Purpose
Define the range for liquid alpha calculations.
Common Query Patterns
- Query by netuid
Migration Notes
v424 v432 Breaking
key type changed from u16 to NetUid
Update decoders: SCALE encoding is positional, so any signature change (added, removed, or type-changed fields, or storage shape changes) shifts byte offsets and existing decoders will misparse this item. Re-derive types from the new metadata.
Query Keys
| # | Name | Type | Description |
|---|---|---|---|
| 1 | netuid netuid | NetUid u16 | Subnet ID |
Stored Value
- .0 alpha_low — Lower bound of the alpha consensus parameter (u16, 0..65535).
- .1 alpha_high — Upper bound of the alpha consensus parameter (u16, 0..65535).
Default Value
0x33b366e6 (raw SCALE bytes)
Absent keys read as this value — querying a key that has never been written returns this default, not an error or empty result.
Code Examples
import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add sub -w wss://entrypoint-finney.opentensor.ai:443
const client = createClient(getWsProvider("wss://entrypoint-finney.opentensor.ai:443"));
const api = client.getTypedApi(sub);
// Query AlphaValues storage
const netuid = 1;
const result = await api.query.SubtensorModule.AlphaValues.getValue(netuid);
console.log("AlphaValues:", result);Version History
v156 block 3,321,841 Added
v425–v431 · runtime versions skipped on chain (never deployed)
v432 block 8,636,190 Shape changed Current
- key :
u16→NetUid
Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Map
- First Version
- v156
- Current Version
- v472