VotingPowerDisableAtBlock

Storage Map v385 → current

--- MAP ( netuid ) --> block_number | Block at which voting power tracking will be disabled.

Explore chain

From Chain Metadata

MAP ( netuid ) --> block_number | Block at which voting power tracking will be disabled. When set (non-zero), tracking continues until this block, then automatically disables and clears VotingPower entries for the subnet. Provides a 14-day grace period.

Purpose & Usage

Purpose

When set (non-zero), tracking continues until this block, then automatically disables

Common Query Patterns

  • Query by key
  • Iterate all entries

Query Keys

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

Stored Value

block_number (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 VotingPowerDisableAtBlock storage
const netuid = 1;

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

Runtime Info

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