announce_coldkey_swap
Call v385 → current #125Announces a coldkey swap using BlakeTwo256 hash of the new coldkey .
View calls on chainCall Workflow
This diagram shows the call execution flow: starting with announce_coldkey_swap, passing through validation
(signature, nonce, mortality, fee payment), then pre-dispatch checks, followed by dispatch which emits events: ColdkeySwapAnnounced, and finally post-dispatch where ExtrinsicSuccess is emitted and fees are settled.
Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.
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
| # | Name | Type | Description |
|---|---|---|---|
| 0 | new_coldkey_hash | H256 T::Hash | new_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