This call was removed in v326

This call is no longer available in the current runtime. Existed from v123 to v326. Shown here for historical reference.

change_key

Call Removed v123 → v326 (removed) #4

Changes a Senate member's account key.

Click items to navigate. Pan and zoom to explore.

Used by: validators

The Big Picture

Security without losing membership.

Use Cases

  • Key rotation

From Chain Metadata

Swap out the sending member for some other key `new`. May only be called from `Signed` origin of a current member. Prime membership is passed from the origin account to `new`, if extant.

Input Parameters

#NameTypeDescription
0
new
MultiAddress new (MultiAddress)

Permissions

Origin
Unknown
Required Role

Permission data inferred from metadata. May be incomplete.

Requirements

  • Origin is member

Effects

Events Emitted

Postconditions

  • Key transferred

Side Effects

  • Emits KeyChanged

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 change_key call
const new = 0 as any /* MultiAddress */;

const call = api.tx[stringCamelCase("SenateMembers")][stringCamelCase("change_key")](
  new
);

Runtime Info

Pallet Index
10
Call Index
4
First Version
v123
Removed In
v326