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 hotkey: Account address (32 bytes, SS58-encoded) (hex -> SS58)
2
dests
Vec<u16> Vec dests (Vec<u16>)
3
weights
Vec<u16> Vec weights (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 { 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 set_root_weights call (typed, named args)
const netuid = 1;
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const dests = [] as [];
const weights = [] as [];
const version_key = 0n;

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