WeightsSetRateLimit

Storage Map v101 → current

Rate limit for weight setting per subnet .

Explore chain
Queried by: validatorssubnet ownersdevelopers

The Big Picture

Weight setting is rate-limited to prevent spam and ensure stable consensus. This per-subnet limit defines minimum blocks between weight updates.

Use Cases

  • Plan weight update frequency
  • Understand subnet policies
  • Build validation tools

Purpose & Usage

Purpose

Control how often validators can update weights.

Common Query Patterns

  • Query by netuid
Part of: Weight Management

Query Keys

#NameTypeDescription
1
key1
u16 key1 (u16)

Stored Value

Value in RAO (÷10⁹ for TAO)

RAO -> TAO (/ 10^9)

Relationships

Modified By

Related Events

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 WeightsSetRateLimit storage
const key1 = 0;

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

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

Runtime Info

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