This call was removed in v161
This call is no longer available in the current runtime. Existed from v156 to v160. Shown here for historical reference.
Likely renamed to schedule_coldkey_swap (same index 72) in v161 — name matching breaks, index matching is unaffected.
unstake_all_and_transfer_to_new_coldkey
Call Removed v156 → v157, v158 → v160 (removed) #72Unstakes all tokens associated with a hotkey and transfers them to a new coldkey .
Call Workflow
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.
Migration Notes
removed field hotkey (was AccountId)
Update decoders: SCALE encoding is positional, so any signature change (added, removed, or type-changed fields, or storage shape changes) shifts byte offsets and existing decoders will misparse this item. Re-derive types from the new metadata.
Input Parameters
| # | Name | Type | Description |
|---|---|---|---|
| 0 | new_coldkey | AccountId | new_coldkey: Account address (32 bytes, SS58-encoded) (hex -> SS58) |
Permissions
Permission data inferred from metadata. May be incomplete.
Requirements
- Item exists and caller authorized to remove
- Sender has sufficient balance
- Sufficient balance for staking operation
Effects
Postconditions
- Item removed successfully
- Balance transferred successfully
- Stake updated successfully
Possible Errors
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 unstake_all_and_transfer_to_new_coldkey call (typed, named args)
const new_coldkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const tx = api.tx.SubtensorModule.unstake_all_and_transfer_to_new_coldkey({
new_coldkey,
});Version History
Runtime Info
View Source- Pallet Index
- 7
- Call Index
- 72
- First Version
- v156
- Removed In
- v161