VotingPowerEmaAlpha

Storage Map v385 → current

--- MAP ( netuid ) --> u64 | EMA alpha value for voting power calculation.

Explore chain

From Chain Metadata

MAP ( netuid ) --> u64 | EMA alpha value for voting power calculation. Higher alpha = faster response to stake changes. Stored as u64 with 18 decimal precision (1.0 = 10^18). Only settable by sudo/root.

Purpose & Usage

Purpose

Higher alpha = faster response to stake changes.

Common Query Patterns

  • Query by key
  • Iterate all entries

Query Keys

#NameTypeDescription
1
netuid
u16 netuid (u16, hashed key component)

Stored Value

u64 (u64)

RAO -> TAO (/ 10^9)

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 VotingPowerEmaAlpha storage
const netuid = 1;

const result = await api.query.SubtensorModule.VotingPowerEmaAlpha.getValue(netuid);
console.log("VotingPowerEmaAlpha:", result);

Runtime Info

View Source
Pallet
SubtensorModule
Storage Kind
Map
First Version
v385
Current Version
v411