StakingOperationRateLimiter

Storage Map v290 → v411

Rate limiting markers for staking operations.

Explore chain
Queried by: developers

The Big Picture

Staking operations between specific accounts are rate-limited. This marker indicates recent operations for rate limit enforcement.

Use Cases

  • Debug rate limit issues
  • Monitor staking operation frequency

From Chain Metadata

DMAP ( hot, cold, netuid ) --> rate limits for staking operations Value contains just a marker: we use this map as a set.

Purpose & Usage

Purpose

Track staking operations for rate limiting enforcement.

Common Query Patterns

  • Query by (hotkey, coldkey, netuid)

Query Keys

#NameTypeDescription
1
hotkey hotkey
raw: key1
AccountId key1 (AccountId) (hex -> SS58)
2
coldkey coldkey
raw: key2
AccountId key2 (AccountId) (hex -> SS58)
3
netuid netuid
raw: key3
u16 key3 (u16)

Stored Value

value (bool)

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 StakingOperationRateLimiter storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const key2 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const key3 = 0;

const result = await api.query.SubtensorModule.StakingOperationRateLimiter.getValue(key1, key2, key3);
console.log("StakingOperationRateLimiter:", result);

Version History

v290 block 5,947,548 Added
v307–v314 · runtime versions skipped on chain (never deployed)
v315 block 6,414,634 Internal re-bind
v316–v319 · runtime versions skipped on chain (never deployed)
v320 block 6,523,566 Internal re-bind
v327–v333 · runtime versions skipped on chain (never deployed)
v334 block 6,811,690 Internal re-bind
v353–v360 · runtime versions skipped on chain (never deployed)
v361 block 7,063,679 Internal re-bind
v363–v364 · runtime versions skipped on chain (never deployed)
v365 block 7,135,419 Internal re-bind
v386–v390 · runtime versions skipped on chain (never deployed)
v391 block 7,782,857 Internal re-bind Current

Runtime Info

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