announce_coldkey_swap
Call v385 → current #125Announces a coldkey swap using BlakeTwo256 hash of the new coldkey .
View calls on chainCall Workflow
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
Permission data inferred from metadata. May be incomplete.
Effects
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,
});On-Chain Activity
Very rare or deprecated
#111 most used call
50–80% of submissions succeed
As of block 9,385,000
Runtime Info
View Source- Pallet Index
- 7
- Call Index
- 125
- First Version
- v385
- Current Version
- v490