ColdkeySwapAnnouncementDelay

Storage Plain v385 → current

The delay after an announcement before a coldkey swap can be performed.

Explore chain

From Chain Metadata

The delay after an announcement before a coldkey swap can be performed.

Purpose & Usage

Purpose

Stores chain state data.

Common Query Patterns

  • Query by key
  • Iterate all entries

Stored Value

value (u32)

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

Runtime Info

View Source
Pallet
SubtensorModule
Storage Kind
Plain
First Version
v385
Current Version
v411