WeightsSetRateLimit
Storage Map v101 → currentRate limit for weight setting per subnet .
Explore chainQueried 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
Query Keys
| # | Name | Type | Description |
|---|---|---|---|
| 1 | key1 | u16 | key1 (u16) |
Stored Value
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