LastTxBlockDelegateTake

Storage Map v149 → v411

Block of last delegate take change for an account.

Explore chain
Queried by: validatorsdevelopers

The Big Picture

Delegate take changes are rate-limited to protect stakers. This tracks when take was last changed, enabling cooldown enforcement.

Use Cases

  • Check delegate take cooldowns
  • Plan take adjustments
  • Debug rate limit errors

From Chain Metadata

MAP ( key ) --> last_tx_block_delegate_take

Purpose & Usage

Purpose

Track delegate take modifications for rate limiting.

Common Query Patterns

  • Query by account address

Query Keys

#NameTypeDescription
1
key
[u8; 32] [32] key ([u8; 32], hashed key component)

Stored Value

last_tx_block_delegate_take (u64)

RAO -> TAO (/ 10^9)

Relationships

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 LastTxBlockDelegateTake storage
const key = "0x0000000000000000000000000000000000000000000000000000000000000000";

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

Version History

v149 block 3,014,339 Added
v166–v194 · runtime versions skipped on chain (never deployed)
v195 block 3,791,350 Internal re-bind Current

Runtime Info

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