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
key
AccountId [u8; 32]key (AccountId, hashed key component) (hex -> SS58)

Stored Value

last_tx_block_childkey_take (u64)

RAO -> TAO (/ 10^9)

Default Value

0 0x0000000000000000

Absent keys read as this value — querying a key that has never been written returns this default, not an error or empty result.

Relationships

Modified By

Related Events

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

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

On-Chain Activity

Write Frequency
●●○○○○ Minimal <10K est. writes

Fewer than 10K writes

#239 most written storage item

Write Source Calls + Hooks

Modified by both user extrinsics and runtime hooks

As of block 9,385,000

Runtime Info

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