announce_coldkey_swap

Call v385 → current #125

Announces a coldkey swap using BlakeTwo256 hash of the new coldkey .

View calls on chain

Click items to navigate. Pan and zoom to explore.

From Chain Metadata

Announces a coldkey swap using BlakeTwo256 hash of the new coldkey. This is required before the coldkey swap can be performed after the delay period. It can be reannounced after a delay of `ColdkeySwapReannouncementDelay` following the first valid execution block of the original announcement. The dispatch origin of this call must be the original coldkey that made the announcement. `new_coldkey_hash`: The hash of the new coldkey using BlakeTwo256. The `ColdkeySwapAnnounced` event is emitted on successful announcement.

Input Parameters

#NameTypeDescription
0
new_coldkey_hash
H256 T::Hashnew_coldkey_hash: Cryptographic hash (32 bytes)

Permissions

Origin
Signed
Required Role

Permission data inferred from metadata. May be incomplete.

Effects

Events Emitted

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);

// Build announce_coldkey_swap call (typed, named args)
const new_coldkey_hash = "0x0000000000000000000000000000000000000000000000000000000000000000";

const tx = api.tx.SubtensorModule.announce_coldkey_swap({
  new_coldkey_hash,
});

Runtime Info

View Source
Pallet Index
7
Call Index
125
First Version
v385
Current Version
v411