LastTxBlockChildKeyTake

Storage Map v195 → current

Block of last childkey take change for an account.

Explore chain
Queried by: validatorsdevelopers

The Big Picture

Childkey take changes are rate-limited to prevent gaming. This tracks when take was last changed, enabling cooldown enforcement.

Use Cases

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

From Chain Metadata

MAP ( key ) --> last_tx_block_childkey_take

Purpose & Usage

Purpose

Track childkey 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

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

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

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

Runtime Info

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