This call was removed in v161
This call is no longer available in the current runtime. Existed from v161 to v161. Shown here for historical reference.
schedule_coldkey_swap
Call Removed v161 → v161 (removed) #72Unstakes all tokens associated with a hotkey and transfers them to a new coldkey .
Call Workflow
This diagram shows the call execution flow: starting with schedule_coldkey_swap, passing through validation
(signature, nonce, mortality, fee payment), then pre-dispatch checks, followed by dispatch which emits events: ColdkeySwapScheduled, ColdkeySwapScheduleDurationSet, 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
Unstakes all tokens associated with a hotkey and transfers them to a new coldkey.
Input Parameters
Permissions
Origin
Signed
Required Role
Authorization Checks
- Signer is the current coldkey scheduling the swap
Effects
Events Emitted
Code Examples
import { ApiPromise, WsProvider } from "@polkadot/api";
import { stringCamelCase } from "@polkadot/util";
const provider = new WsProvider("wss://entrypoint-finney.opentensor.ai:443");
const api = await ApiPromise.create({ provider });
// Build schedule_coldkey_swap call
const new_coldkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const work = 0;
const block_number = 0;
const nonce = 0;
const call = api.tx[stringCamelCase("SubtensorModule")][stringCamelCase("schedule_coldkey_swap")](
new_coldkey,
work,
block_number,
nonce
);Runtime Info
View Source- Pallet Index
- 7
- Call Index
- 72
- First Version
- v161
- Removed In
- v161