This call was removed in v127

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

set_members

Call Removed v123 → v127 (removed) #0

Sets the Senate membership to a specific list.

Click items to navigate. Pan and zoom to explore.

Used by: validators

The Big Picture

Sets governance participants.

Use Cases

  • Initialize Senate

From Chain Metadata

Set the collective's membership. `new_members`: The new member list. Be nice to the chain and provide it sorted. `prime`: The prime member whose vote sets the default. `old_count`: The upper bound for the previous number of members in storage. Used for weight estimation. The dispatch of this call must be `SetMembersOrigin`. NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but the weight estimations rely on it to estimate dispatchable weight.

Input Parameters

#NameTypeDescription
0
new_members
Vec<AccountId> Vecnew_members (Vec<AccountId>)
1
prime
Option prime (Option)
2
old_count
u32 old_count (u32)

Permissions

Origin
Unknown
Required Role

Permission data inferred from metadata. May be incomplete.

Requirements

  • Origin has authority

Effects

Postconditions

  • Membership replaced

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 set_members call
const new_members = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const prime = 0 as any /* Option */;
const old_count = 0;

const call = api.tx[stringCamelCase("Senate")][stringCamelCase("set_members")](
  new_members,
  prime,
  old_count
);

Runtime Info

Pallet Index
10
Call Index
0
First Version
v123
Removed In
v127