LastTxBlockDelegateTake

Storage Map v149 → current

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

Purpose & Usage

Purpose

Track delegate take modifications for rate limiting.

Common Query Patterns

  • Query by account address

Query Keys

#NameTypeDescription
1
key1
AccountId key1 (AccountId) (hex -> SS58)

Stored Value

Value in RAO (÷10⁹ for TAO)

RAO -> TAO (/ 10^9)

Relationships

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 LastTxBlockDelegateTake storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

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

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

Runtime Info

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