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: Account address (32 bytes, SS58-encoded) (hex -> SS58)
1
work
Vec<u8> Vec work (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 { 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 schedule_coldkey_swap call (typed, named args)
const new_coldkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const work = Binary.fromOpaque(new Uint8Array(0));
const block_number = 0n;
const nonce = 0n;

const tx = api.tx.SubtensorModule.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