WeightsVersionKeyRateLimit

Storage Plain v252 → current

Rate limit for weights version key changes.

Explore chain
Queried by: subnet ownersdevelopers

The Big Picture

Weights version keys control validator compatibility. Changes are rate-limited to prevent disruption.

Use Cases

  • Plan version key changes
  • Understand rate limits

From Chain Metadata

ITEM( weights_version_key_rate_limit ) --- Rate limit in tempos.

Purpose & Usage

Purpose

Control frequency of version key updates.

Common Query Patterns

  • Single value query

Stored Value

Value in RAO (÷10⁹ for TAO)

RAO -> TAO (/ 10^9)

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 WeightsVersionKeyRateLimit storage (no keys - plain value)
const result = await api.query
  [stringCamelCase("SubtensorModule")]
  [stringCamelCase("WeightsVersionKeyRateLimit")]();
console.log("WeightsVersionKeyRateLimit:", result.toHuman());

Runtime Info

View Source
Pallet
SubtensorModule
Storage Kind
Plain
First Version
v252
Current Version
v393