This call was removed in v219

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

set_root_weights

Call Removed v151 → v219 (removed) #8

# Args:

Click items to navigate. Pan and zoom to explore.

Input Parameters

#NameTypeDescription
0
netuid
u16 Subnet/network identifier (0-65535)
1
hotkey
AccountId Hot wallet address (active operations) (hex -> SS58)
2
dests
Vec<u16> Vecdests (Vec<u16>)
3
weights
Vec<u16> Vecweights (Vec<u16>)
4
version_key
u64 version_key (u64)

Permissions

Origin
Signed
Required Role

Permission data inferred from metadata. May be incomplete.

Requirements

  • Caller authorized to make changes

Effects

Postconditions

  • Value successfully updated

Possible Errors

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_root_weights call
const netuid = 1;
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const dests = 0;
const weights = 0;
const version_key = 0;

const call = api.tx[stringCamelCase("SubtensorModule")][stringCamelCase("set_root_weights")](
  netuid,
  hotkey,
  dests,
  weights,
  version_key
);

Runtime Info

View Source
Pallet Index
7
Call Index
8
First Version
v151
Removed In
v219