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) #72

Unstakes all tokens associated with a hotkey and transfers them to a new coldkey .

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

#NameTypeDescription
0
new_coldkey
AccountId new_coldkey (AccountId) (hex -> SS58)
1
work
Vec<u8> Vecwork (Vec<u8>)
2
block_number
u64 block_number (u64) (RAO -> TAO (/ 10^9))
3
nonce
u64 nonce (u64)

Permissions

Origin
Signed
Required Role
Authorization Checks
  • Signer is the current coldkey scheduling the swap

Effects

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