AlphaValues

Storage Map v156 → current

Alpha low and high bounds per subnet .

Explore chain
Queried 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

Purpose & Usage

Purpose

Define the range for liquid alpha calculations.

Common Query Patterns

  • Query by netuid
Part of: Liquid Alpha

Query Keys

#NameTypeDescription
1
key1
u16 key1 (u16)

Stored Value

value ((u16, u16))

Code Examples

import { ApiPromise, WsProvider } from "@polkadot/api";
import { stringCamelCase } from "@polkadot/util";

const provider = new WsProvider("wss://entrypoint-finney.opentensor.ai:443");
const api = await ApiPromise.create({ provider });

// Query AlphaValues storage
const key1 = 0;

const result = await api.query
  [stringCamelCase("SubtensorModule")]
  [stringCamelCase("AlphaValues")](
  key1
);

console.log("AlphaValues:", result.toHuman());

Runtime Info

View Source
Pallet
SubtensorModule
Storage Kind
Map
First Version
v156
Current Version
v393