PendingChildKeyCooldown

Storage Plain v277 → current

Cooldown period for pending childkey operations.

Explore chain
Queried by: validatorsdevelopers

The Big Picture

Childkey changes have a cooldown before activation. This prevents rapid childkey manipulation and gives stakeholders time to react.

Use Cases

  • Plan childkey operations
  • Understand childkey timing
  • Build childkey management tools

From Chain Metadata

Storage value for pending childkey cooldown, settable by root.

Purpose & Usage

Purpose

Delay before childkey changes take effect.

Common Query Patterns

  • Single value query

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 PendingChildKeyCooldown storage (no keys - plain value)
const result = await api.query
  [stringCamelCase("SubtensorModule")]
  [stringCamelCase("PendingChildKeyCooldown")]();
console.log("PendingChildKeyCooldown:", result.toHuman());

Runtime Info

View Source
Pallet
SubtensorModule
Storage Kind
Plain
First Version
v277
Current Version
v393