ColdkeySwapDisputes
Storage Map v385 → currentPer-coldkey record of a dispute against a pending coldkey swap .
Explore chainQueried by: walletsanalyticsdevelopers
The Big Picture
Counterpart to ColdkeySwapAnnouncements. If a dispute is registered before the swap schedule fires, the swap is cancelled. Useful for wallet UIs that need to surface pending dispute state.
From Chain Metadata
A map of the coldkey swap disputes from a coldkey to the block number the coldkey swap was disputed.
Purpose & Usage
Purpose
Records the block at which a coldkey swap was disputed; cancels the pending swap.
Common Query Patterns
- Query by coldkey to see if a swap is under dispute
Query Keys
| # | Name | Type | Description |
|---|---|---|---|
| 1 | coldkey coldkey raw: key1 | [u8; 32] [32] | key1 ([u8; 32]) |
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 ColdkeySwapDisputes storage
const key1 = "0x0000000000000000000000000000000000000000000000000000000000000000";
const result = await api.query.SubtensorModule.ColdkeySwapDisputes.getValue(key1);
console.log("ColdkeySwapDisputes:", result);Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Map
- First Version
- v385
- Current Version
- v411