All pallets

AdminUtils docs

Look up any call, event, or storage item with code examples. Runtime v490 · Block #9,478,217

Developer documentation for the AdminUtils pallet of the Subtensor blockchain, part of the Bittensor decentralized AI network. This page is designed for developers integrating with the chain: look up any call, event, or storage item, copy code examples in TypeScript, Python, or Rust, and filter by your role. For in-depth explanations, version history, and relationships between items, see the Reference section.

AdminUtils

The extrinsic sets the new authorities for Aura consensus.

Index: 19 145 items

Calls 105

swap_authorities

call details

Replaces Aura consensus authorities with new validator set.

Parameters

NameTypeFormatDescription
new_authoritiesBoundedVec—new_authorities (BoundedVec)
// ----------------------------------------------------------------------
// HEADS UP: 1 arg below has a complex type with no usable default.
// Look for `undefined as any` and replace it with real value
// before running — the snippet compiles, but will fail at runtime as-is.
// ----------------------------------------------------------------------
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 swap_authorities call (typed, named args)
const new_authorities = undefined as any /* BoundedVec — replace with real value */;

const tx = api.tx.AdminUtils.swap_authorities({
  new_authorities,
});

sudo_set_default_take

call details

Sets the default delegate take percentage for new validators.

Parameters

NameTypeFormatDescription
default_takePerU16—default_take (PerU16)
// ----------------------------------------------------------------------
// HEADS UP: 1 arg below has a complex type with no usable default.
// Look for `undefined as any` and replace it with real value
// before running — the snippet compiles, but will fail at runtime as-is.
// ----------------------------------------------------------------------
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 sudo_set_default_take call (typed, named args)
const default_take = undefined as any /* PerU16 — replace with real value */;

const tx = api.tx.AdminUtils.sudo_set_default_take({
  default_take,
});

sudo_set_tx_rate_limit

call details

Sets the transaction rate limit for the network.

Parameters

NameTypeFormatDescription
tx_rate_limitu64Integertx_rate_limit (u64)
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 sudo_set_tx_rate_limit call (typed, named args)
const tx_rate_limit = 0n;

const tx = api.tx.AdminUtils.sudo_set_tx_rate_limit({
  tx_rate_limit,
});

sudo_set_serving_rate_limit

call details

Sets the serving rate limit for a subnet.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
serving_rate_limitu64Integerserving_rate_limit (u64)
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 sudo_set_serving_rate_limit call (typed, named args)
const netuid = 1;
const serving_rate_limit = 0n;

const tx = api.tx.AdminUtils.sudo_set_serving_rate_limit({
  netuid,
  serving_rate_limit,
});

sudo_set_min_difficulty

call details

Sets the minimum POW difficulty for a subnet.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
min_difficultyu64Integermin_difficulty (u64)
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 sudo_set_min_difficulty call (typed, named args)
const netuid = 1;
const min_difficulty = 0n;

const tx = api.tx.AdminUtils.sudo_set_min_difficulty({
  netuid,
  min_difficulty,
});

sudo_set_max_difficulty

call details

Sets the maximum POW difficulty for a subnet.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
max_difficultyu64Integermax_difficulty (u64)
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 sudo_set_max_difficulty call (typed, named args)
const netuid = 1;
const max_difficulty = 0n;

const tx = api.tx.AdminUtils.sudo_set_max_difficulty({
  netuid,
  max_difficulty,
});

sudo_set_weights_version_key

call details

Sets the weights version key for a subnet.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
weights_version_keyu64Integerweights_version_key (u64)
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 sudo_set_weights_version_key call (typed, named args)
const netuid = 1;
const weights_version_key = 0n;

const tx = api.tx.AdminUtils.sudo_set_weights_version_key({
  netuid,
  weights_version_key,
});

sudo_set_weights_set_rate_limit

call details

Sets how often neurons can update weights on a subnet.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
weights_set_rate_limitu64Integerweights_set_rate_limit (u64)
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 sudo_set_weights_set_rate_limit call (typed, named args)
const netuid = 1;
const weights_set_rate_limit = 0n;

const tx = api.tx.AdminUtils.sudo_set_weights_set_rate_limit({
  netuid,
  weights_set_rate_limit,
});

sudo_set_adjustment_interval

call details

Sets the difficulty adjustment interval for a subnet.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
adjustment_intervalu16Integer (0-65535)adjustment_interval (u16)
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 sudo_set_adjustment_interval call (typed, named args)
const netuid = 1;
const adjustment_interval = 0;

const tx = api.tx.AdminUtils.sudo_set_adjustment_interval({
  netuid,
  adjustment_interval,
});

sudo_set_adjustment_alpha

call details

Sets the difficulty adjustment smoothing factor for a subnet.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
adjustment_alphau64Integeradjustment_alpha (u64)
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 sudo_set_adjustment_alpha call (typed, named args)
const netuid = 1;
const adjustment_alpha = 0n;

const tx = api.tx.AdminUtils.sudo_set_adjustment_alpha({
  netuid,
  adjustment_alpha,
});

sudo_set_immunity_period

call details

Sets the immunity period for newly registered neurons on a subnet.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
immunity_periodu16Integer (0-65535)immunity_period (u16)
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 sudo_set_immunity_period call (typed, named args)
const netuid = 1;
const immunity_period = 0;

const tx = api.tx.AdminUtils.sudo_set_immunity_period({
  netuid,
  immunity_period,
});

sudo_set_min_allowed_weights

call details

Sets the minimum number of weights a neuron must set on a subnet.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
min_allowed_weightsu16Integer (0-65535)min_allowed_weights (u16)
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 sudo_set_min_allowed_weights call (typed, named args)
const netuid = 1;
const min_allowed_weights = 0;

const tx = api.tx.AdminUtils.sudo_set_min_allowed_weights({
  netuid,
  min_allowed_weights,
});

sudo_set_max_allowed_uids

call details

Sets the maximum number of UIDs (neurons) allowed on a subnet.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
max_allowed_uidsu16Integer (0-65535)max_allowed_uids (u16)
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 sudo_set_max_allowed_uids call (typed, named args)
const netuid = 1;
const max_allowed_uids = 0;

const tx = api.tx.AdminUtils.sudo_set_max_allowed_uids({
  netuid,
  max_allowed_uids,
});

sudo_set_kappa

call details

Sets the kappa parameter for consensus on a subnet.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
kappau16Integer (0-65535)kappa (u16)
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 sudo_set_kappa call (typed, named args)
const netuid = 1;
const kappa = 0;

const tx = api.tx.AdminUtils.sudo_set_kappa({
  netuid,
  kappa,
});

sudo_set_rho

call details

Sets the rho parameter for consensus on a subnet.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
rhou16Integer (0-65535)rho (u16)
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 sudo_set_rho call (typed, named args)
const netuid = 1;
const rho = 0;

const tx = api.tx.AdminUtils.sudo_set_rho({
  netuid,
  rho,
});

sudo_set_activity_cutoff

call details

Sets the activity cutoff for a subnet.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
activity_cutoffu16Integer (0-65535)activity_cutoff (u16)
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 sudo_set_activity_cutoff call (typed, named args)
const netuid = 1;
const activity_cutoff = 0;

const tx = api.tx.AdminUtils.sudo_set_activity_cutoff({
  netuid,
  activity_cutoff,
});

sudo_set_network_registration_allowed

call details

Enables or disables new neuron registration on a subnet.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
registration_allowedboolBoolean (true/false)registration_allowed (bool)
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 sudo_set_network_registration_allowed call (typed, named args)
const netuid = 1;
const registration_allowed = true;

const tx = api.tx.AdminUtils.sudo_set_network_registration_allowed({
  netuid,
  registration_allowed,
});

sudo_set_network_pow_registration_allowed

call details

Enables or disables POW-based registration on a subnet.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
registration_allowedboolBoolean (true/false)registration_allowed (bool)
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 sudo_set_network_pow_registration_allowed call (typed, named args)
const netuid = 1;
const registration_allowed = true;

const tx = api.tx.AdminUtils.sudo_set_network_pow_registration_allowed({
  netuid,
  registration_allowed,
});

sudo_set_target_registrations_per_interval

call details

Sets the target registration rate for difficulty adjustment.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
target_registrations_per_intervalu16Integer (0-65535)target_registrations_per_interval (u16)
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 sudo_set_target_registrations_per_interval call (typed, named args)
const netuid = 1;
const target_registrations_per_interval = 0;

const tx = api.tx.AdminUtils.sudo_set_target_registrations_per_interval({
  netuid,
  target_registrations_per_interval,
});

sudo_set_min_burn

call details

Sets the minimum burn amount for registration on a subnet.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
min_burnTaoBalance—min_burn: TAO amount in RAO (÷10⁹ for TAO)
// ----------------------------------------------------------------------
// HEADS UP: 1 arg below has a complex type with no usable default.
// Look for `undefined as any` and replace it with real value
// before running — the snippet compiles, but will fail at runtime as-is.
// ----------------------------------------------------------------------
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 sudo_set_min_burn call (typed, named args)
const netuid = 1;
const min_burn = undefined as any /* TaoBalance — replace with real value */;

const tx = api.tx.AdminUtils.sudo_set_min_burn({
  netuid,
  min_burn,
});

sudo_set_max_burn

call details

Sets the maximum burn amount for registration on a subnet.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
max_burnTaoBalance—max_burn: TAO amount in RAO (÷10⁹ for TAO)
// ----------------------------------------------------------------------
// HEADS UP: 1 arg below has a complex type with no usable default.
// Look for `undefined as any` and replace it with real value
// before running — the snippet compiles, but will fail at runtime as-is.
// ----------------------------------------------------------------------
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 sudo_set_max_burn call (typed, named args)
const netuid = 1;
const max_burn = undefined as any /* TaoBalance — replace with real value */;

const tx = api.tx.AdminUtils.sudo_set_max_burn({
  netuid,
  max_burn,
});

sudo_set_difficulty

call details

Directly sets the POW difficulty for a subnet.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
difficultyu64Integerdifficulty (u64)
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 sudo_set_difficulty call (typed, named args)
const netuid = 1;
const difficulty = 0n;

const tx = api.tx.AdminUtils.sudo_set_difficulty({
  netuid,
  difficulty,
});

sudo_set_max_allowed_validators

call details

Sets the maximum number of validators allowed on a subnet.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
max_allowed_validatorsu16Integer (0-65535)max_allowed_validators (u16)
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 sudo_set_max_allowed_validators call (typed, named args)
const netuid = 1;
const max_allowed_validators = 0;

const tx = api.tx.AdminUtils.sudo_set_max_allowed_validators({
  netuid,
  max_allowed_validators,
});

sudo_set_bonds_moving_average

call details

Sets the bonds moving average parameter for a subnet.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
bonds_moving_averageu64Integerbonds_moving_average (u64)
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 sudo_set_bonds_moving_average call (typed, named args)
const netuid = 1;
const bonds_moving_average = 0n;

const tx = api.tx.AdminUtils.sudo_set_bonds_moving_average({
  netuid,
  bonds_moving_average,
});

sudo_set_max_registrations_per_block

call details

Sets the maximum registrations allowed per block on a subnet.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
max_registrations_per_blocku16Integer (0-65535)max_registrations_per_block (u16)
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 sudo_set_max_registrations_per_block call (typed, named args)
const netuid = 1;
const max_registrations_per_block = 0;

const tx = api.tx.AdminUtils.sudo_set_max_registrations_per_block({
  netuid,
  max_registrations_per_block,
});

sudo_set_subnet_owner_cut

call details

Set the network-wide subnet owner cut through v479. Deprecated from v481, where it returns AdminUtils.Deprecated without writing.

Parameters

NameTypeFormatDescription
subnet_owner_cutu16Integer (0-65535)subnet_owner_cut (u16)
Errors: Deprecated
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 sudo_set_subnet_owner_cut call (typed, named args)
const subnet_owner_cut = 0;

const tx = api.tx.AdminUtils.sudo_set_subnet_owner_cut({
  subnet_owner_cut,
});

sudo_set_network_rate_limit

call details

Sets the network-wide rate limit for subnet creation.

Parameters

NameTypeFormatDescription
rate_limitu64Integerrate_limit (u64)
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 sudo_set_network_rate_limit call (typed, named args)
const rate_limit = 0n;

const tx = api.tx.AdminUtils.sudo_set_network_rate_limit({
  rate_limit,
});

sudo_set_tempo

call details

Sets the tempo (epoch length) for a subnet.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
tempou16Integer (0-65535)tempo (u16)
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 sudo_set_tempo call (typed, named args)
const netuid = 1;
const tempo = 0;

const tx = api.tx.AdminUtils.sudo_set_tempo({
  netuid,
  tempo,
});

sudo_set_total_issuance

call details

Sets the total TAO issuance (root only, dangerous).

Parameters

NameTypeFormatDescription
total_issuanceTaoBalance—total_issuance: TAO amount in RAO (÷10⁹ for TAO)
// ----------------------------------------------------------------------
// HEADS UP: 1 arg below has a complex type with no usable default.
// Look for `undefined as any` and replace it with real value
// before running — the snippet compiles, but will fail at runtime as-is.
// ----------------------------------------------------------------------
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 sudo_set_total_issuance call (typed, named args)
const total_issuance = undefined as any /* TaoBalance — replace with real value */;

const tx = api.tx.AdminUtils.sudo_set_total_issuance({
  total_issuance,
});

sudo_set_network_immunity_period

call details

Sets the network-wide immunity period for new subnets.

Parameters

NameTypeFormatDescription
immunity_periodu64Integerimmunity_period (u64)
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 sudo_set_network_immunity_period call (typed, named args)
const immunity_period = 0n;

const tx = api.tx.AdminUtils.sudo_set_network_immunity_period({
  immunity_period,
});

sudo_set_network_min_lock_cost

call details

Sets the minimum TAO lock cost for creating a subnet.

Parameters

NameTypeFormatDescription
lock_costTaoBalance—lock_cost: TAO amount in RAO (÷10⁹ for TAO)
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 sudo_set_network_min_lock_cost call (typed, named args)
const lock_cost = 1_000_000_000n;

const tx = api.tx.AdminUtils.sudo_set_network_min_lock_cost({
  lock_cost,
});

sudo_set_subnet_limit

call details

Sets the maximum number of subnets allowed on the network.

Parameters

NameTypeFormatDescription
max_subnetsu16Integer (0-65535)max_subnets (u16)
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 sudo_set_subnet_limit call (typed, named args)
const max_subnets = 0;

const tx = api.tx.AdminUtils.sudo_set_subnet_limit({
  max_subnets,
});

sudo_set_lock_reduction_interval

call details

Sets how often subnet lock requirements decrease.

Parameters

NameTypeFormatDescription
intervalu64Integerinterval (u64)
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 sudo_set_lock_reduction_interval call (typed, named args)
const interval = 0n;

const tx = api.tx.AdminUtils.sudo_set_lock_reduction_interval({
  interval,
});

sudo_set_rao_recycled

call details

Sets the RAO recycled amount for a subnet.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
rao_recycledTaoBalance—rao_recycled: TAO amount in RAO (÷10⁹ for TAO)
// ----------------------------------------------------------------------
// HEADS UP: 1 arg below has a complex type with no usable default.
// Look for `undefined as any` and replace it with real value
// before running — the snippet compiles, but will fail at runtime as-is.
// ----------------------------------------------------------------------
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 sudo_set_rao_recycled call (typed, named args)
const netuid = 1;
const rao_recycled = undefined as any /* TaoBalance — replace with real value */;

const tx = api.tx.AdminUtils.sudo_set_rao_recycled({
  netuid,
  rao_recycled,
});

sudo_set_stake_threshold

call details

Sets the minimum stake threshold for network participation.

Parameters

NameTypeFormatDescription
min_stakeu64Integermin_stake (u64)
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 sudo_set_stake_threshold call (typed, named args)
const min_stake = 1_000_000_000n;

const tx = api.tx.AdminUtils.sudo_set_stake_threshold({
  min_stake,
});

sudo_set_nominator_min_required_stake

call details

Sets the minimum stake required to be a nominator/delegator.

Parameters

NameTypeFormatDescription
min_stakeu64Integermin_stake (u64)
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 sudo_set_nominator_min_required_stake call (typed, named args)
const min_stake = 1_000_000_000n;

const tx = api.tx.AdminUtils.sudo_set_nominator_min_required_stake({
  min_stake,
});

sudo_set_tx_delegate_take_rate_limit

call details

Sets how often delegates can change their take rate.

Parameters

NameTypeFormatDescription
tx_rate_limitu64Integertx_rate_limit (u64)
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 sudo_set_tx_delegate_take_rate_limit call (typed, named args)
const tx_rate_limit = 0n;

const tx = api.tx.AdminUtils.sudo_set_tx_delegate_take_rate_limit({
  tx_rate_limit,
});

sudo_set_min_delegate_take

call details

Sets the minimum delegate take percentage.

Parameters

NameTypeFormatDescription
takePerU16—take (PerU16)
// ----------------------------------------------------------------------
// HEADS UP: 1 arg below has a complex type with no usable default.
// Look for `undefined as any` and replace it with real value
// before running — the snippet compiles, but will fail at runtime as-is.
// ----------------------------------------------------------------------
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 sudo_set_min_delegate_take call (typed, named args)
const take = undefined as any /* PerU16 — replace with real value */;

const tx = api.tx.AdminUtils.sudo_set_min_delegate_take({
  take,
});

sudo_set_commit_reveal_weights_enabled

call details

Enables or disables commit-reveal weight setting on a subnet.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
enabledboolBoolean (true/false)enabled (bool)
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 sudo_set_commit_reveal_weights_enabled call (typed, named args)
const netuid = 1;
const enabled = true;

const tx = api.tx.AdminUtils.sudo_set_commit_reveal_weights_enabled({
  netuid,
  enabled,
});

sudo_set_liquid_alpha_enabled

call details

Enables or disables liquid alpha on a subnet.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
enabledboolBoolean (true/false)enabled (bool)
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 sudo_set_liquid_alpha_enabled call (typed, named args)
const netuid = 1;
const enabled = true;

const tx = api.tx.AdminUtils.sudo_set_liquid_alpha_enabled({
  netuid,
  enabled,
});

sudo_set_alpha_values

call details

Sets the alpha low and high values for a subnet.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
alpha_lowu16Integer (0-65535)alpha_low (u16)
alpha_highu16Integer (0-65535)alpha_high (u16)
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 sudo_set_alpha_values call (typed, named args)
const netuid = 1;
const alpha_low = 0;
const alpha_high = 0;

const tx = api.tx.AdminUtils.sudo_set_alpha_values({
  netuid,
  alpha_low,
  alpha_high,
});

sudo_set_dissolve_network_schedule_duration

call details

Sets how long subnet dissolution takes.

Parameters

NameTypeFormatDescription
durationu32Integerduration: Block number
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 sudo_set_dissolve_network_schedule_duration call (typed, named args)
const duration = 0;

const tx = api.tx.AdminUtils.sudo_set_dissolve_network_schedule_duration({
  duration,
});

sudo_set_commit_reveal_weights_interval

call details

Sets the commit-reveal interval for a subnet.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
intervalu64Integerinterval (u64)
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 sudo_set_commit_reveal_weights_interval call (typed, named args)
const netuid = 1;
const interval = 0n;

const tx = api.tx.AdminUtils.sudo_set_commit_reveal_weights_interval({
  netuid,
  interval,
});

sudo_set_evm_chain_id

call details

Sets the EVM chain ID for the network.

Parameters

NameTypeFormatDescription
chain_idu64Integerchain_id (u64)
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 sudo_set_evm_chain_id call (typed, named args)
const chain_id = 0n;

const tx = api.tx.AdminUtils.sudo_set_evm_chain_id({
  chain_id,
});

schedule_grandpa_change

call details

Schedules a GRANDPA authority change to take effect after specified blocks.

Parameters

NameTypeFormatDescription
next_authoritiesVec<(Public, u64)>Array of (Public, u64)next_authorities (Vec<(Public, u64)>)
in_blocksu32Integerin_blocks: Block number
forcedOption—forced: optional Block number
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_grandpa_change call (typed, named args)
const next_authorities = [] as [];
const in_blocks = 0;
const forced = undefined;

const tx = api.tx.AdminUtils.schedule_grandpa_change({
  next_authorities,
  in_blocks,
  forced,
});

sudo_set_bonds_penalty

call details

Sets the bonds penalty parameter for a subnet.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
bonds_penaltyu16Integer (0-65535)bonds_penalty (u16)
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 sudo_set_bonds_penalty call (typed, named args)
const netuid = 1;
const bonds_penalty = 0;

const tx = api.tx.AdminUtils.sudo_set_bonds_penalty({
  netuid,
  bonds_penalty,
});

sudo_set_toggle_transfer

call details

Toggles transfer restrictions for a subnet's alpha token.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
toggleboolBoolean (true/false)toggle (bool)
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 sudo_set_toggle_transfer call (typed, named args)
const netuid = 1;
const toggle = true;

const tx = api.tx.AdminUtils.sudo_set_toggle_transfer({
  netuid,
  toggle,
});

sudo_toggle_evm_precompile

call details

Enables or disables an EVM precompile contract.

Parameters

NameTypeFormatDescription
precompile_idPrecompileEnum—precompile_id (PrecompileEnum)
enabledboolBoolean (true/false)enabled (bool)
// ----------------------------------------------------------------------
// HEADS UP: 1 arg below has a complex type with no usable default.
// Look for `undefined as any` and replace it with real value
// before running — the snippet compiles, but will fail at runtime as-is.
// ----------------------------------------------------------------------
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 sudo_toggle_evm_precompile call (typed, named args)
const precompile_id = undefined as any /* PrecompileEnum — replace with real value */;
const enabled = true;

const tx = api.tx.AdminUtils.sudo_toggle_evm_precompile({
  precompile_id,
  enabled,
});

sudo_set_subnet_moving_alpha

call details

Sets the moving alpha parameter for subnet emission calculations.

Parameters

NameTypeFormatDescription
alphaFixedI128—alpha: Signed substrate-fixed i96.32 via .bits codec (inner i128). Real value = bits / 2^32. Two's complement: JS BigInt(hex) does NOT sign-extend — adjust manually for negatives.
// ----------------------------------------------------------------------
// HEADS UP: 1 arg below has a complex type with no usable default.
// Look for `undefined as any` and replace it with real value
// before running — the snippet compiles, but will fail at runtime as-is.
// ----------------------------------------------------------------------
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 sudo_set_subnet_moving_alpha call (typed, named args)
const alpha = undefined as any /* FixedI128 — replace with real value */;

const tx = api.tx.AdminUtils.sudo_set_subnet_moving_alpha({
  alpha,
});

sudo_set_ema_price_halving_period

call details

Sets the EMA price halving period for a subnet.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
ema_halvingu64Integerema_halving (u64)
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 sudo_set_ema_price_halving_period call (typed, named args)
const netuid = 1;
const ema_halving = 0n;

const tx = api.tx.AdminUtils.sudo_set_ema_price_halving_period({
  netuid,
  ema_halving,
});

sudo_set_subtoken_enabled

call details

Enables or disables subtoken (Alpha) on a subnet.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
subtoken_enabledboolBoolean (true/false)subtoken_enabled (bool)
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 sudo_set_subtoken_enabled call (typed, named args)
const netuid = 1;
const subtoken_enabled = true;

const tx = api.tx.AdminUtils.sudo_set_subtoken_enabled({
  netuid,
  subtoken_enabled,
});

sudo_set_sn_owner_hotkey

call details

Sets the subnet owner's hotkey (alias for sudo_set_subnet_owner_hotkey).

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
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 sudo_set_sn_owner_hotkey call (typed, named args)
const netuid = 1;
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const tx = api.tx.AdminUtils.sudo_set_sn_owner_hotkey({
  netuid,
  hotkey,
});

sudo_set_alpha_sigmoid_steepness

call details

Sets the sigmoid steepness for alpha calculations.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
steepnessi16Signed Integersteepness (i16)
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 sudo_set_alpha_sigmoid_steepness call (typed, named args)
const netuid = 1;
const steepness = 0;

const tx = api.tx.AdminUtils.sudo_set_alpha_sigmoid_steepness({
  netuid,
  steepness,
});

sudo_set_yuma3_enabled

call details

Enables or disables Yuma3 consensus on a subnet.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
enabledboolBoolean (true/false)enabled (bool)
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 sudo_set_yuma3_enabled call (typed, named args)
const netuid = 1;
const enabled = true;

const tx = api.tx.AdminUtils.sudo_set_yuma3_enabled({
  netuid,
  enabled,
});

sudo_set_bonds_reset_enabled

call details

Enables or disables bonds reset capability on a subnet.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
enabledboolBoolean (true/false)enabled (bool)
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 sudo_set_bonds_reset_enabled call (typed, named args)
const netuid = 1;
const enabled = true;

const tx = api.tx.AdminUtils.sudo_set_bonds_reset_enabled({
  netuid,
  enabled,
});

sudo_set_commit_reveal_version

call details

Sets the commit-reveal version for weight submission.

Parameters

NameTypeFormatDescription
versionu16Integer (0-65535)version (u16)
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 sudo_set_commit_reveal_version call (typed, named args)
const version = 0;

const tx = api.tx.AdminUtils.sudo_set_commit_reveal_version({
  version,
});

sudo_set_owner_immune_neuron_limit

call details

Sets how many neurons subnet owners can make immune.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
immune_neuronsu16Integer (0-65535)immune_neurons (u16)
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 sudo_set_owner_immune_neuron_limit call (typed, named args)
const netuid = 1;
const immune_neurons = 0;

const tx = api.tx.AdminUtils.sudo_set_owner_immune_neuron_limit({
  netuid,
  immune_neurons,
});

sudo_set_ck_burn

call details

Sets the coldkey swap burn amount.

Parameters

NameTypeFormatDescription
burnu64Integerburn (u64)
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 sudo_set_ck_burn call (typed, named args)
const burn = 0n;

const tx = api.tx.AdminUtils.sudo_set_ck_burn({
  burn,
});

sudo_set_admin_freeze_window

call details

Sets the admin freeze window duration.

Parameters

NameTypeFormatDescription
windowu16Integer (0-65535)window (u16)
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 sudo_set_admin_freeze_window call (typed, named args)
const window = 0;

const tx = api.tx.AdminUtils.sudo_set_admin_freeze_window({
  window,
});

sudo_set_owner_hparam_rate_limit

call details

Sets how often subnet owners can change hyperparameters.

Parameters

NameTypeFormatDescription
epochsu16Integer (0-65535)epochs (u16)
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 sudo_set_owner_hparam_rate_limit call (typed, named args)
const epochs = 0;

const tx = api.tx.AdminUtils.sudo_set_owner_hparam_rate_limit({
  epochs,
});

sudo_set_mechanism_count

call details

Sets the number of mechanisms for a subnet.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
mechanism_countMechId—mechanism_count: Mechanism identifier
// ----------------------------------------------------------------------
// HEADS UP: 1 arg below has a complex type with no usable default.
// Look for `undefined as any` and replace it with real value
// before running — the snippet compiles, but will fail at runtime as-is.
// ----------------------------------------------------------------------
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 sudo_set_mechanism_count call (typed, named args)
const netuid = 1;
const mechanism_count = undefined as any /* MechId — replace with real value */;

const tx = api.tx.AdminUtils.sudo_set_mechanism_count({
  netuid,
  mechanism_count,
});

sudo_set_mechanism_emission_split

call details

Sets how emissions are split between mechanisms on a subnet.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
maybe_splitOption—maybe_split (Option)
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 sudo_set_mechanism_emission_split call (typed, named args)
const netuid = 1;
const maybe_split = undefined;

const tx = api.tx.AdminUtils.sudo_set_mechanism_emission_split({
  netuid,
  maybe_split,
});

sudo_trim_to_max_allowed_uids

call details

Trims a subnet's neurons to a new maximum UID limit.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
max_nu16Integer (0-65535)max_n (u16)
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 sudo_trim_to_max_allowed_uids call (typed, named args)
const netuid = 1;
const max_n = 0;

const tx = api.tx.AdminUtils.sudo_trim_to_max_allowed_uids({
  netuid,
  max_n,
});

sudo_set_min_allowed_uids

call details

Sets the minimum number of UIDs required on a subnet.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
min_allowed_uidsu16Integer (0-65535)min_allowed_uids (u16)
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 sudo_set_min_allowed_uids call (typed, named args)
const netuid = 1;
const min_allowed_uids = 0;

const tx = api.tx.AdminUtils.sudo_set_min_allowed_uids({
  netuid,
  min_allowed_uids,
});

sudo_set_recycle_or_burn

call details

Sets whether registration fees are recycled or burned.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
recycle_or_burnRecycleOrBurnEnum—recycle_or_burn (RecycleOrBurnEnum)
// ----------------------------------------------------------------------
// HEADS UP: 1 arg below has a complex type with no usable default.
// Look for `undefined as any` and replace it with real value
// before running — the snippet compiles, but will fail at runtime as-is.
// ----------------------------------------------------------------------
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 sudo_set_recycle_or_burn call (typed, named args)
const netuid = 1;
const recycle_or_burn = undefined as any /* RecycleOrBurnEnum — replace with real value */;

const tx = api.tx.AdminUtils.sudo_set_recycle_or_burn({
  netuid,
  recycle_or_burn,
});

sudo_set_tao_flow_cutoff

call details

Sets the TAO flow cutoff parameter.

Parameters

NameTypeFormatDescription
flow_cutoffFixedI128—flow_cutoff: Signed substrate-fixed i64.64 via .bits codec (inner i128). Real value = bits / 2^64. Two's complement: JS BigInt(hex) does NOT sign-extend — adjust manually for negatives.
// ----------------------------------------------------------------------
// HEADS UP: 1 arg below has a complex type with no usable default.
// Look for `undefined as any` and replace it with real value
// before running — the snippet compiles, but will fail at runtime as-is.
// ----------------------------------------------------------------------
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 sudo_set_tao_flow_cutoff call (typed, named args)
const flow_cutoff = undefined as any /* FixedI128 — replace with real value */;

const tx = api.tx.AdminUtils.sudo_set_tao_flow_cutoff({
  flow_cutoff,
});

sudo_set_tao_flow_normalization_exponent

call details

Sets the TAO flow normalization exponent.

Parameters

NameTypeFormatDescription
exponentFixedU128—exponent: Unsigned substrate-fixed u64.64 via .bits codec (inner u128). Real value = bits / 2^64. Do NOT truncate to u64.
// ----------------------------------------------------------------------
// HEADS UP: 1 arg below has a complex type with no usable default.
// Look for `undefined as any` and replace it with real value
// before running — the snippet compiles, but will fail at runtime as-is.
// ----------------------------------------------------------------------
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 sudo_set_tao_flow_normalization_exponent call (typed, named args)
const exponent = undefined as any /* FixedU128 — replace with real value */;

const tx = api.tx.AdminUtils.sudo_set_tao_flow_normalization_exponent({
  exponent,
});

sudo_set_tao_flow_smoothing_factor

call details

Sets the TAO flow smoothing factor.

Parameters

NameTypeFormatDescription
smoothing_factoru64Integersmoothing_factor (u64)
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 sudo_set_tao_flow_smoothing_factor call (typed, named args)
const smoothing_factor = 0n;

const tx = api.tx.AdminUtils.sudo_set_tao_flow_smoothing_factor({
  smoothing_factor,
});

sudo_set_min_non_immune_uids

call details

Sets the minimum number of non-immune UIDs required on a subnet.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
minu16Integer (0-65535)min (u16)
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 sudo_set_min_non_immune_uids call (typed, named args)
const netuid = 1;
const min = 0;

const tx = api.tx.AdminUtils.sudo_set_min_non_immune_uids({
  netuid,
  min,
});

sudo_set_start_call_delay

call details

Sets the delay before certain operations can start.

Parameters

NameTypeFormatDescription
delayu64Integerdelay (u64)
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 sudo_set_start_call_delay call (typed, named args)
const delay = 0n;

const tx = api.tx.AdminUtils.sudo_set_start_call_delay({
  delay,
});

sudo_set_coldkey_swap_announcement_delay

call details

Sets the announcement delay for coldkey swap.

Parameters

NameTypeFormatDescription
durationu32Integerduration: Block number
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 sudo_set_coldkey_swap_announcement_delay call (typed, named args)
const duration = 0;

const tx = api.tx.AdminUtils.sudo_set_coldkey_swap_announcement_delay({
  duration,
});

sudo_set_coldkey_swap_reannouncement_delay

call details

Sets the coldkey swap reannouncement delay.

Parameters

NameTypeFormatDescription
durationu32Integerduration: Block number
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 sudo_set_coldkey_swap_reannouncement_delay call (typed, named args)
const duration = 0;

const tx = api.tx.AdminUtils.sudo_set_coldkey_swap_reannouncement_delay({
  duration,
});

sudo_set_max_mechanism_count

call details

Sets the global maximum number of mechanisms in a subnet

Parameters

NameTypeFormatDescription
max_mechanism_countMechId—max_mechanism_count: Mechanism identifier
// ----------------------------------------------------------------------
// HEADS UP: 1 arg below has a complex type with no usable default.
// Look for `undefined as any` and replace it with real value
// before running — the snippet compiles, but will fail at runtime as-is.
// ----------------------------------------------------------------------
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 sudo_set_max_mechanism_count call (typed, named args)
const max_mechanism_count = undefined as any /* MechId — replace with real value */;

const tx = api.tx.AdminUtils.sudo_set_max_mechanism_count({
  max_mechanism_count,
});

sudo_set_burn_half_life

call details

Set BurnHalfLife for a subnet.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
burn_half_lifeu16Integer (0-65535)burn_half_life (u16)
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 sudo_set_burn_half_life call (typed, named args)
const netuid = 1;
const burn_half_life = 0;

const tx = api.tx.AdminUtils.sudo_set_burn_half_life({
  netuid,
  burn_half_life,
});

sudo_set_burn_increase_mult

call details

Set BurnIncreaseMult for a subnet.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
burn_increase_multFixedU128—burn_increase_mult: Unsigned substrate-fixed u64.64 via .bits codec (inner u128). Real value = bits / 2^64. Do NOT truncate to u64.
// ----------------------------------------------------------------------
// HEADS UP: 1 arg below has a complex type with no usable default.
// Look for `undefined as any` and replace it with real value
// before running — the snippet compiles, but will fail at runtime as-is.
// ----------------------------------------------------------------------
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 sudo_set_burn_increase_mult call (typed, named args)
const netuid = 1;
const burn_increase_mult = undefined as any /* FixedU128 — replace with real value */;

const tx = api.tx.AdminUtils.sudo_set_burn_increase_mult({
  netuid,
  burn_increase_mult,
});

sudo_set_net_tao_flow_enabled

call details

Sets the NetTaoFlowEnabled toggle. Its only reader is dead code since v421, so the call has no effect on emission at v452.

Parameters

NameTypeFormatDescription
enabledboolBoolean (true/false)enabled (bool)
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 sudo_set_net_tao_flow_enabled call (typed, named args)
const enabled = true;

const tx = api.tx.AdminUtils.sudo_set_net_tao_flow_enabled({
  enabled,
});

sudo_set_owner_cut_enabled

call details

Enabled or disabled owner cut on a subnet through v479. Deprecated from v481, where it returns AdminUtils.Deprecated without writing.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
enabledboolBoolean (true/false)enabled (bool)
Errors: Deprecated
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 sudo_set_owner_cut_enabled call (typed, named args)
const netuid = 1;
const enabled = true;

const tx = api.tx.AdminUtils.sudo_set_owner_cut_enabled({
  netuid,
  enabled,
});

sudo_set_min_childkey_take_per_subnet

call details

Sets a subnet-specific minimum child-key take, overriding the global floor with a stricter one.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
takePerU16—take (PerU16)
// ----------------------------------------------------------------------
// HEADS UP: 1 arg below has a complex type with no usable default.
// Look for `undefined as any` and replace it with real value
// before running — the snippet compiles, but will fail at runtime as-is.
// ----------------------------------------------------------------------
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 sudo_set_min_childkey_take_per_subnet call (typed, named args)
const netuid = 1;
const take = undefined as any /* PerU16 — replace with real value */;

const tx = api.tx.AdminUtils.sudo_set_min_childkey_take_per_subnet({
  netuid,
  take,
});

sudo_set_subnet_emission_enabled

call details

Enables or disables pool-side emission for a subnet (alpha_in, tao_in, excess_tao chain-buy paths).

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
enabledboolBoolean (true/false)enabled (bool)
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 sudo_set_subnet_emission_enabled call (typed, named args)
const netuid = 1;
const enabled = true;

const tx = api.tx.AdminUtils.sudo_set_subnet_emission_enabled({
  netuid,
  enabled,
});

sudo_set_owner_cut_auto_lock_enabled

call details

Configures whether owner cut on a subnet is automatically locked (building owner conviction) or paid out liquid.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
enabledboolBoolean (true/false)enabled (bool)
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 sudo_set_owner_cut_auto_lock_enabled call (typed, named args)
const netuid = 1;
const enabled = true;

const tx = api.tx.AdminUtils.sudo_set_owner_cut_auto_lock_enabled({
  netuid,
  enabled,
});

sudo_set_max_epochs_per_block

call details

Sets the per-block cap on subnet epochs (dynamic tempo throttle).

Parameters

NameTypeFormatDescription
max_epochs_per_blocku8Integer (0-255)max_epochs_per_block (u8)
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 sudo_set_max_epochs_per_block call (typed, named args)
const max_epochs_per_block = 0;

const tx = api.tx.AdminUtils.sudo_set_max_epochs_per_block({
  max_epochs_per_block,
});

sudo_set_activity_cutoff_factor

call details

The extrinsic sets the activity-cutoff factor for a subnet, in per-mille

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
factor_milliu32Integerfactor_milli (u32)
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 sudo_set_activity_cutoff_factor call (typed, named args)
const netuid = 1;
const factor_milli = 0;

const tx = api.tx.AdminUtils.sudo_set_activity_cutoff_factor({
  netuid,
  factor_milli,
});

sudo_set_collateral_lock_share

call details

Sets the miner collateral lock share (p) for a subnet: the share of

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
lock_shareu16Integer (0-65535)lock_share (u16)
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 sudo_set_collateral_lock_share call (typed, named args)
const netuid = 1;
const lock_share = 0;

const tx = api.tx.AdminUtils.sudo_set_collateral_lock_share({
  netuid,
  lock_share,
});

sudo_set_collateral_drain_ratio

call details

Sets the miner collateral drain ratio (k) for a subnet: how much

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
drain_ratioFixedU128—drain_ratio: Unsigned substrate-fixed u64.64 via .bits codec (inner u128). Real value = bits / 2^64. Do NOT truncate to u64.
// ----------------------------------------------------------------------
// HEADS UP: 1 arg below has a complex type with no usable default.
// Look for `undefined as any` and replace it with real value
// before running — the snippet compiles, but will fail at runtime as-is.
// ----------------------------------------------------------------------
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 sudo_set_collateral_drain_ratio call (typed, named args)
const netuid = 1;
const drain_ratio = undefined as any /* FixedU128 — replace with real value */;

const tx = api.tx.AdminUtils.sudo_set_collateral_drain_ratio({
  netuid,
  drain_ratio,
});

sudo_set_emission_bar_quantile

call details

Sets the emission bar quantile (q): the fraction of demand carried by

Parameters

NameTypeFormatDescription
quantileFixedU128—quantile: Unsigned substrate-fixed u64.64 via .bits codec (inner u128). Real value = bits / 2^64. Do NOT truncate to u64.
// ----------------------------------------------------------------------
// HEADS UP: 1 arg below has a complex type with no usable default.
// Look for `undefined as any` and replace it with real value
// before running — the snippet compiles, but will fail at runtime as-is.
// ----------------------------------------------------------------------
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 sudo_set_emission_bar_quantile call (typed, named args)
const quantile = undefined as any /* FixedU128 — replace with real value */;

const tx = api.tx.AdminUtils.sudo_set_emission_bar_quantile({
  quantile,
});

sudo_set_emission_gate_exponent

call details

Sets the emission gate Hill exponent (h): cliff sharpness at the bar.

Parameters

NameTypeFormatDescription
exponentFixedU128—exponent: Unsigned substrate-fixed u64.64 via .bits codec (inner u128). Real value = bits / 2^64. Do NOT truncate to u64.
// ----------------------------------------------------------------------
// HEADS UP: 1 arg below has a complex type with no usable default.
// Look for `undefined as any` and replace it with real value
// before running — the snippet compiles, but will fail at runtime as-is.
// ----------------------------------------------------------------------
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 sudo_set_emission_gate_exponent call (typed, named args)
const exponent = undefined as any /* FixedU128 — replace with real value */;

const tx = api.tx.AdminUtils.sudo_set_emission_gate_exponent({
  exponent,
});

sudo_set_emission_bar_rank

call details

Sets the emission bar rank N, pinning the eligibility threshold to the Nth-largest demand share.

Parameters

NameTypeFormatDescription
ranku16Integer (0-65535)rank (u16)
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 sudo_set_emission_bar_rank call (typed, named args)
const rank = 0;

const tx = api.tx.AdminUtils.sudo_set_emission_bar_rank({
  rank,
});

sudo_set_liquid_alpha_consensus_mode

call details

Sets which consensus values liquid alpha uses for a subnet.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
modeConsensusMode—mode (ConsensusMode)
// ----------------------------------------------------------------------
// HEADS UP: 1 arg below has a complex type with no usable default.
// Look for `undefined as any` and replace it with real value
// before running — the snippet compiles, but will fail at runtime as-is.
// ----------------------------------------------------------------------
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 sudo_set_liquid_alpha_consensus_mode call (typed, named args)
const netuid = 1;
const mode = undefined as any /* ConsensusMode — replace with real value */;

const tx = api.tx.AdminUtils.sudo_set_liquid_alpha_consensus_mode({
  netuid,
  mode,
});

sudo_set_basket_concentration_cap

call details

Sets BasketConcentrationCap: the largest u16-normalized share of fund NAV one holding may reach through a swap_basket buy.

Parameters

NameTypeFormatDescription
capu16Integer (0-65535)cap (u16)
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 sudo_set_basket_concentration_cap call (typed, named args)
const cap = 0;

const tx = api.tx.AdminUtils.sudo_set_basket_concentration_cap({
  cap,
});

sudo_set_basket_trading_enabled

call details

Turns validator basket trading (swap_basket) on or off network-wide.

Parameters

NameTypeFormatDescription
enabledboolBoolean (true/false)enabled (bool)
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 sudo_set_basket_trading_enabled call (typed, named args)
const enabled = true;

const tx = api.tx.AdminUtils.sudo_set_basket_trading_enabled({
  enabled,
});

sudo_set_basket_trading_frozen

call details

Freezes or unfreezes swap_basket for one validator hotkey.

Parameters

NameTypeFormatDescription
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
frozenboolBoolean (true/false)frozen (bool)
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 sudo_set_basket_trading_frozen call (typed, named args)
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const frozen = true;

const tx = api.tx.AdminUtils.sudo_set_basket_trading_frozen({
  hotkey,
  frozen,
});

sudo_set_basket_daily_turnover_cap

call details

Sets BasketDailyTurnoverCap: the capacity of each fund swap_basket turnover bucket as a u16-normalized share of NAV.

Parameters

NameTypeFormatDescription
capu16Integer (0-65535)cap (u16)
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 sudo_set_basket_daily_turnover_cap call (typed, named args)
const cap = 0;

const tx = api.tx.AdminUtils.sudo_set_basket_daily_turnover_cap({
  cap,
});

sudo_set_basket_liquidity_cap

call details

Sets BasketLiquidityCap: the largest u16-normalized share of a subnet alpha reserve a fund may hold there after a swap_basket buy.

Parameters

NameTypeFormatDescription
capu16Integer (0-65535)cap (u16)
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 sudo_set_basket_liquidity_cap call (typed, named args)
const cap = 0;

const tx = api.tx.AdminUtils.sudo_set_basket_liquidity_cap({
  cap,
});

sudo_set_basket_claim_dust

call details

Sets all four root-claim dust knobs in one call.

Parameters

NameTypeFormatDescription
row_cap_raou64Integerrow_cap_rao (u64)
row_bpsu16Integer (0-65535)row_bps (u16)
slice_raou64Integerslice_rao (u64)
forfeit_cap_raou64Integerforfeit_cap_rao (u64)
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 sudo_set_basket_claim_dust call (typed, named args)
const row_cap_rao = 0n;
const row_bps = 0;
const slice_rao = 0n;
const forfeit_cap_rao = 0n;

const tx = api.tx.AdminUtils.sudo_set_basket_claim_dust({
  row_cap_rao,
  row_bps,
  slice_rao,
  forfeit_cap_rao,
});

sudo_set_epoch_consensus

call details

Switches a subnet's epoch reward algorithm between Yuma and Null.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
modeEpochConsensus—mode (EpochConsensus)
// ----------------------------------------------------------------------
// HEADS UP: 1 arg below has a complex type with no usable default.
// Look for `undefined as any` and replace it with real value
// before running — the snippet compiles, but will fail at runtime as-is.
// ----------------------------------------------------------------------
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 sudo_set_epoch_consensus call (typed, named args)
const netuid = 1;
const mode = undefined as any /* EpochConsensus — replace with real value */;

const tx = api.tx.AdminUtils.sudo_set_epoch_consensus({
  netuid,
  mode,
});

sudo_trim_null_uids_batch

call details

Removes at most 64 UIDs from a Null-consensus subnet toward a final target, one bounded batch per call.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
targetu16Integer (0-65535)target (u16)
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 sudo_trim_null_uids_batch call (typed, named args)
const netuid = 1;
const target = 0;

const tx = api.tx.AdminUtils.sudo_trim_null_uids_batch({
  netuid,
  target,
});

sudo_set_basket_min_trade_tao

call details

Sets BasketMinTradeTao, the minimum TAO value in rao that each swap_basket leg must carry through its middle.

Parameters

NameTypeFormatDescription
min_trade_raou64Integermin_trade_rao (u64)
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 sudo_set_basket_min_trade_tao call (typed, named args)
const min_trade_rao = 0n;

const tx = api.tx.AdminUtils.sudo_set_basket_min_trade_tao({
  min_trade_rao,
});

sudo_set_subnet_emission_weights

call details

Sets entries of a subnet's emission weight vector [burn, recycle, owner, validator, miner], each a u64 share of u64::MAX.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
uidsVec<u16>Array of Integer (0-65535)uids (Vec<u16>)
valuesVec<u64>Array of Integervalues (Vec<u64>)
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 sudo_set_subnet_emission_weights call (typed, named args)
const netuid = 1;
const uids = [] as [];
const values = [] as [];

const tx = api.tx.AdminUtils.sudo_set_subnet_emission_weights({
  netuid,
  uids,
  values,
});

sudo_set_hashed_accounts_enabled

call details

Root switch for hashed accounts: turns registration and transaction authorization on or off for every classical hashed, ML-DSA, Falcon and protected derived account.

Parameters

NameTypeFormatDescription
enabledboolBoolean (true/false)enabled (bool)
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 sudo_set_hashed_accounts_enabled call (typed, named args)
const enabled = true;

const tx = api.tx.AdminUtils.sudo_set_hashed_accounts_enabled({
  enabled,
});

sudo_set_tao_usd_price_oracle

call details

Root sets or removes the account allowed to feed the TAO/USD price, and clears the stored price.

Parameters

NameTypeFormatDescription
oracleOption—oracle: optional Account address (32 bytes, SS58-encoded)
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 sudo_set_tao_usd_price_oracle call (typed, named args)
const oracle = undefined;

const tx = api.tx.AdminUtils.sudo_set_tao_usd_price_oracle({
  oracle,
});

sudo_set_subnet_gamma_enabled

call details

The subnet owner or root enables or disables gamma minting on one subnet.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
enabledboolBoolean (true/false)enabled (bool)
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 sudo_set_subnet_gamma_enabled call (typed, named args)
const netuid = 1;
const enabled = true;

const tx = api.tx.AdminUtils.sudo_set_subnet_gamma_enabled({
  netuid,
  enabled,
});

sudo_set_gamma_enabled

call details

Root enables or disables gamma minting network-wide.

Parameters

NameTypeFormatDescription
enabledboolBoolean (true/false)enabled (bool)
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 sudo_set_gamma_enabled call (typed, named args)
const enabled = true;

const tx = api.tx.AdminUtils.sudo_set_gamma_enabled({
  enabled,
});

sudo_set_hashed_account_registration_deposit

call details

Root setter for the TAO amount reserved from the payer of each new hashed, ML-DSA, Falcon or protected derived account registration.

Parameters

NameTypeFormatDescription
valueTaoBalance—value: TAO amount in RAO (÷10⁹ for TAO)
// ----------------------------------------------------------------------
// HEADS UP: 1 arg below has a complex type with no usable default.
// Look for `undefined as any` and replace it with real value
// before running — the snippet compiles, but will fail at runtime as-is.
// ----------------------------------------------------------------------
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 sudo_set_hashed_account_registration_deposit call (typed, named args)
const value = undefined as any /* TaoBalance — replace with real value */;

const tx = api.tx.AdminUtils.sudo_set_hashed_account_registration_deposit({
  value,
});

sudo_set_subnet_emission_weights_v2

call details

Replaces the whole emission split of a subnet: the burn, recycle, owner, validator and miner slots plus up to 16 gamma shares, each a u64 share of u64::MAX.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
splitBoundedVec—split (BoundedVec)
// ----------------------------------------------------------------------
// HEADS UP: 1 arg below has a complex type with no usable default.
// Look for `undefined as any` and replace it with real value
// before running — the snippet compiles, but will fail at runtime as-is.
// ----------------------------------------------------------------------
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 sudo_set_subnet_emission_weights_v2 call (typed, named args)
const netuid = 1;
const split = undefined as any /* BoundedVec — replace with real value */;

const tx = api.tx.AdminUtils.sudo_set_subnet_emission_weights_v2({
  netuid,
  split,
});

sudo_set_subnet_gamma_emission_whitelisted

call details

Root adds a subnet to, or removes it from, the whitelist of subnets that may be named as a gamma emission target.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
whitelistedboolBoolean (true/false)whitelisted (bool)
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 sudo_set_subnet_gamma_emission_whitelisted call (typed, named args)
const netuid = 1;
const whitelisted = true;

const tx = api.tx.AdminUtils.sudo_set_subnet_gamma_emission_whitelisted({
  netuid,
  whitelisted,
});

Events 21

PrecompileUpdated

event details

Emitted when an EVM precompile's enabled status is changed.

When it fires

  • Caller is root account
  • Valid precompile ID provided

Fields

NameTypeFormatDescription
precompile_idPrecompileEnum—Identifier of the EVM precompile being configured
enabledboolBoolean (true/false)Whether the precompile is now enabled (true) or disabled (false)
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);

// Subscribe to PrecompileUpdated events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.AdminUtils.PrecompileUpdated.get(block.hash);
  for (const evt of events) {
    console.log("PrecompileUpdated:", evt.payload);
  }
});

Yuma3EnableToggled

event details

Emitted when Yuma3 consensus is enabled or disabled for a subnet.

When it fires

  • Caller is root or subnet owner
  • Subnet exists

Fields

NameTypeFormatDescription
netuidNetUid—Subnet ID where Yuma3 was toggled
enabledboolBoolean (true/false)Whether Yuma3 consensus is now enabled (true) or disabled (false)
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);

// Subscribe to Yuma3EnableToggled events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.AdminUtils.Yuma3EnableToggled.get(block.hash);
  for (const evt of events) {
    console.log("Yuma3EnableToggled:", evt.payload);
  }
});

BondsResetToggled

event details

Emitted when bonds reset is enabled or disabled for a subnet.

When it fires

  • Caller is root or subnet owner
  • Subnet exists

Fields

NameTypeFormatDescription
netuidNetUid—Subnet ID where bonds reset was toggled
enabledboolBoolean (true/false)Whether bonds reset is now enabled (true) or disabled (false)
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);

// Subscribe to BondsResetToggled events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.AdminUtils.BondsResetToggled.get(block.hash);
  for (const evt of events) {
    console.log("BondsResetToggled:", evt.payload);
  }
});

BurnHalfLifeSet

event details

Event emitted when the burn half-life parameter is set for a subnet.

When it fires

  • Caller authorized to make changes

Fields

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
burn_half_lifeu16Integer (0-65535)burn_half_life (u16)
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);

// Subscribe to BurnHalfLifeSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.AdminUtils.BurnHalfLifeSet.get(block.hash);
  for (const evt of events) {
    console.log("BurnHalfLifeSet:", evt.payload);
  }
});

BurnIncreaseMultSet

event details

Event emitted when the burn increase multiplier is set for a subnet.

When it fires

  • Caller authorized to make changes

Fields

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
burn_increase_multFixedU128—burn_increase_mult: Unsigned substrate-fixed u64.64 via .bits codec (inner u128). Real value = bits / 2^64. Do NOT truncate to u64.
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);

// Subscribe to BurnIncreaseMultSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.AdminUtils.BurnIncreaseMultSet.get(block.hash);
  for (const evt of events) {
    console.log("BurnIncreaseMultSet:", evt.payload);
  }
});

SubnetEmissionEnabledSet

event details

Emitted when a subnet's pool-side emission switch is toggled (chain buys and pool injections).

When it fires

  • sudo_set_subnet_emission_enabled succeeded

Fields

NameTypeFormatDescription
netuidNetUid—Subnet whose pool-side emission switch was toggled
enabledboolBoolean (true/false)Whether pool-side emission paths (chain buys, pool injections, excess_tao) are enabled
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);

// Subscribe to SubnetEmissionEnabledSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.AdminUtils.SubnetEmissionEnabledSet.get(block.hash);
  for (const evt of events) {
    console.log("SubnetEmissionEnabledSet:", evt.payload);
  }
});

CollateralLockShareSet

event details

Event emitted when the miner collateral lock share is set for a subnet.

When it fires

  • Caller authorized to make changes

Fields

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
lock_shareu16Integer (0-65535)lock_share (u16)
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);

// Subscribe to CollateralLockShareSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.AdminUtils.CollateralLockShareSet.get(block.hash);
  for (const evt of events) {
    console.log("CollateralLockShareSet:", evt.payload);
  }
});

CollateralDrainRatioSet

event details

Event emitted when the miner collateral drain ratio is set for a subnet.

When it fires

  • Caller authorized to make changes

Fields

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
drain_ratioFixedU128—drain_ratio: Unsigned substrate-fixed u64.64 via .bits codec (inner u128). Real value = bits / 2^64. Do NOT truncate to u64.
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);

// Subscribe to CollateralDrainRatioSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.AdminUtils.CollateralDrainRatioSet.get(block.hash);
  for (const evt of events) {
    console.log("CollateralDrainRatioSet:", evt.payload);
  }
});

BasketConcentrationCapSet

event details

Emitted when governance sets BasketConcentrationCap.

When it fires

  • Root origin executes sudo_set_basket_concentration_cap with cap above zero

Fields

NameTypeFormatDescription
capu16Integer (0-65535)cap (u16)
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);

// Subscribe to BasketConcentrationCapSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.AdminUtils.BasketConcentrationCapSet.get(block.hash);
  for (const evt of events) {
    console.log("BasketConcentrationCapSet:", evt.payload);
  }
});

BasketTradingToggled

event details

Emitted when governance enables or disables swap_basket network-wide.

When it fires

  • Root origin executes sudo_set_basket_trading_enabled

Fields

NameTypeFormatDescription
enabledboolBoolean (true/false)enabled (bool)
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);

// Subscribe to BasketTradingToggled events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.AdminUtils.BasketTradingToggled.get(block.hash);
  for (const evt of events) {
    console.log("BasketTradingToggled:", evt.payload);
  }
});

BasketTradingFrozenSet

event details

Emitted when governance freezes or unfreezes swap_basket for one validator hotkey.

When it fires

  • Root origin executes sudo_set_basket_trading_frozen

Fields

NameTypeFormatDescription
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
frozenboolBoolean (true/false)frozen (bool)
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);

// Subscribe to BasketTradingFrozenSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.AdminUtils.BasketTradingFrozenSet.get(block.hash);
  for (const evt of events) {
    console.log("BasketTradingFrozenSet:", evt.payload);
  }
});

BasketDailyTurnoverCapSet

event details

Emitted when governance sets BasketDailyTurnoverCap.

When it fires

  • Root origin executes sudo_set_basket_daily_turnover_cap with cap above zero

Fields

NameTypeFormatDescription
capu16Integer (0-65535)cap (u16)
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);

// Subscribe to BasketDailyTurnoverCapSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.AdminUtils.BasketDailyTurnoverCapSet.get(block.hash);
  for (const evt of events) {
    console.log("BasketDailyTurnoverCapSet:", evt.payload);
  }
});

BasketLiquidityCapSet

event details

Emitted when governance sets BasketLiquidityCap.

When it fires

  • Root origin executes sudo_set_basket_liquidity_cap with cap above zero

Fields

NameTypeFormatDescription
capu16Integer (0-65535)cap (u16)
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);

// Subscribe to BasketLiquidityCapSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.AdminUtils.BasketLiquidityCapSet.get(block.hash);
  for (const evt of events) {
    console.log("BasketLiquidityCapSet:", evt.payload);
  }
});

BasketClaimDustSet

event details

Emitted when governance sets the four root-claim dust knobs.

When it fires

  • Root origin executes sudo_set_basket_claim_dust with row_bps at most 10000

Fields

NameTypeFormatDescription
row_cap_raou64Integerrow_cap_rao (u64)
row_bpsu16Integer (0-65535)row_bps (u16)
slice_raou64Integerslice_rao (u64)
forfeit_cap_raou64Integerforfeit_cap_rao (u64)
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);

// Subscribe to BasketClaimDustSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.AdminUtils.BasketClaimDustSet.get(block.hash);
  for (const evt of events) {
    console.log("BasketClaimDustSet:", evt.payload);
  }
});

BasketMinTradeTaoSet

event details

Emitted when root sets BasketMinTradeTao, with the new floor in rao.

When it fires

  • Root origin called sudo_set_basket_min_trade_tao

Fields

NameTypeFormatDescription
min_trade_raou64Integermin_trade_rao (u64)
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);

// Subscribe to BasketMinTradeTaoSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.AdminUtils.BasketMinTradeTaoSet.get(block.hash);
  for (const evt of events) {
    console.log("BasketMinTradeTaoSet:", evt.payload);
  }
});

HashedAccountsToggled

event details

Emitted when root writes the hashed-accounts switch. enabled is the new value of AdminUtils.HashedAccountsEnabled.

When it fires

  • AdminUtils.sudo_set_hashed_accounts_enabled executed with a root origin

Fields

NameTypeFormatDescription
enabledboolBoolean (true/false)enabled (bool)
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);

// Subscribe to HashedAccountsToggled events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.AdminUtils.HashedAccountsToggled.get(block.hash);
  for (const evt of events) {
    console.log("HashedAccountsToggled:", evt.payload);
  }
});

TaoUsdPriceOracleSet

event details

Emitted when root sets or removes the TAO/USD price oracle account.

When it fires

  • sudo_set_tao_usd_price_oracle was dispatched with root origin

Fields

NameTypeFormatDescription
oracleOption—oracle: optional Account address (32 bytes, SS58-encoded)
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);

// Subscribe to TaoUsdPriceOracleSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.AdminUtils.TaoUsdPriceOracleSet.get(block.hash);
  for (const evt of events) {
    console.log("TaoUsdPriceOracleSet:", evt.payload);
  }
});

SubnetGammaEnabledSet

event details

Emitted when the subnet owner or root enables or disables gamma minting on a subnet.

When it fires

  • sudo_set_subnet_gamma_enabled passed its origin, rate-limit and admin-freeze-window checks
  • The subnet exists and is not the root subnet

Fields

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
enabledboolBoolean (true/false)enabled (bool)
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);

// Subscribe to SubnetGammaEnabledSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.AdminUtils.SubnetGammaEnabledSet.get(block.hash);
  for (const evt of events) {
    console.log("SubnetGammaEnabledSet:", evt.payload);
  }
});

GammaEnabledSet

event details

Emitted when root enables or disables gamma minting network-wide.

When it fires

  • sudo_set_gamma_enabled was dispatched with root origin

Fields

NameTypeFormatDescription
enabledboolBoolean (true/false)enabled (bool)
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);

// Subscribe to GammaEnabledSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.AdminUtils.GammaEnabledSet.get(block.hash);
  for (const evt of events) {
    console.log("GammaEnabledSet:", evt.payload);
  }
});

HashedAccountRegistrationDepositSet

event details

Emitted when root sets the reserve taken for each new hashed, ML-DSA, Falcon or protected derived account. value is the new amount in RAO (TaoBalance, u64).

When it fires

  • AdminUtils.sudo_set_hashed_account_registration_deposit executed with a root origin

Fields

NameTypeFormatDescription
valueTaoBalance—value: TAO amount in RAO (÷10⁹ for TAO)
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);

// Subscribe to HashedAccountRegistrationDepositSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.AdminUtils.HashedAccountRegistrationDepositSet.get(block.hash);
  for (const evt of events) {
    console.log("HashedAccountRegistrationDepositSet:", evt.payload);
  }
});

SubnetGammaEmissionWhitelistedSet

event details

Emitted when root adds a subnet to, or removes it from, the whitelist of gamma emission targets.

When it fires

  • AdminUtils.sudo_set_subnet_gamma_emission_whitelisted was called with root origin
  • The subnet exists and is not the root subnet

Fields

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
whitelistedboolBoolean (true/false)whitelisted (bool)
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);

// Subscribe to SubnetGammaEmissionWhitelistedSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.AdminUtils.SubnetGammaEmissionWhitelistedSet.get(block.hash);
  for (const evt of events) {
    console.log("SubnetGammaEmissionWhitelistedSet:", evt.payload);
  }
});

Storage 2

HashedAccountsEnabled

storage details

Network-wide switch for hashed accounts. VALUE bool, source default false. True allows registration and signing for classical hashed, ML-DSA, Falcon and protected derived accounts.

Modifier: Default Keys: 0 Returns: bool (Boolean (true/false))
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);

// Query HashedAccountsEnabled storage (no keys - plain value)
const result = await api.query.AdminUtils.HashedAccountsEnabled.getValue();
console.log("HashedAccountsEnabled:", result);

PrecompileEnable

storage details

Enable/disable state for EVM precompiles.

Modifier: Default Keys: 1 Returns: bool (Boolean (true/false))

Keys

NameTypeFormatDescription
key1PrecompileEnum——
// ----------------------------------------------------------------------
// HEADS UP: 1 arg below has a complex type with no usable default.
// Look for `undefined as any` and replace it with real value
// before running — the snippet compiles, but will fail at runtime as-is.
// ----------------------------------------------------------------------
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);

// Query PrecompileEnable storage
const key1 = undefined as any /* PrecompileEnum — replace with real value */;

const result = await api.query.AdminUtils.PrecompileEnable.getValue(key1);
console.log("PrecompileEnable:", result);

Errors 17

SubnetDoesNotExist

error details #0

The specified subnet (netuid) does not exist on the network.

Common Causes

  • Using an invalid or non-existent netuid
  • Subnet was dissolved before the operation
  • Typo in the netuid parameter

How to Fix

Query SubtensorModule.NetworksAdded to verify the subnet exists,Use a valid netuid from the active subnets list,Check if the subnet was recently removed

MaxValidatorsLargerThanMaxUIds

error details #1

The max_validators parameter cannot exceed max_allowed_uids for a subnet.

Common Causes

  • Setting max_validators higher than the subnet's max_allowed_uids
  • Not checking current max_allowed_uids before setting validators

How to Fix

Query SubtensorModule.MaxAllowedUids for the subnet's current limit,Set max_validators to a value <= max_allowed_uids,Increase max_allowed_uids first if you need more validators

MaxAllowedUIdsLessThanCurrentUIds

error details #2

Cannot reduce max_allowed_uids below the current number of registered neurons.

Common Causes

  • Trying to shrink a subnet that already has more neurons registered than the new limit
  • Not checking current neuron count before reducing max_allowed_uids

How to Fix

Query SubtensorModule.SubnetworkN to check current neuron count,Set max_allowed_uids >= current neuron count,Wait for neurons to deregister naturally, or remove them first

BondsMovingAverageMaxReached

error details #3

The bonds moving average parameter exceeds the maximum allowed value.

Common Causes

  • Setting bonds_moving_average above the protocol maximum
  • Using an out-of-range value for the smoothing parameter

How to Fix

Use a bonds_moving_average value within the allowed range,Check documentation for valid parameter bounds

NegativeSigmoidSteepness

error details #4

The sigmoid steepness parameter cannot be negative.

Common Causes

  • Providing a negative value for sigmoid steepness
  • Integer overflow resulting in negative interpretation

How to Fix

Use a positive value for sigmoid steepness,Check for integer overflow in parameter calculation

ValueNotInBounds

error details #5

The provided parameter value is outside the acceptable range.

Common Causes

  • Value too high or too low for the specific parameter
  • Not checking parameter bounds before submitting
  • Using percentages instead of the expected raw encoding (u16-normalized ratios, RAO, block counts)

How to Fix

Check the valid range for the specific parameter being set,Ensure value is within min/max bounds,Verify you're using the correct units (RAO vs TAO, u16-normalized ratio vs percentage)

MinAllowedUidsGreaterThanCurrentUids

error details #6

Cannot set min_allowed_uids higher than the current number of registered neurons.

Common Causes

  • Trying to set a minimum that exceeds current registration
  • Not checking current neuron count before setting minimum

How to Fix

Query SubtensorModule.SubnetworkN for current neuron count,Set min_allowed_uids <= current neuron count,Wait for more neurons to register first

MinAllowedUidsGreaterThanMaxAllowedUids

error details #7

The min_allowed_uids cannot be greater than max_allowed_uids.

Common Causes

  • Setting minimum higher than maximum
  • Updating one bound without considering the other

How to Fix

Ensure min_allowed_uids <= max_allowed_uids,Update both bounds together if needed,Query current bounds before making changes

MaxAllowedUidsLessThanMinAllowedUids

error details #8

The max_allowed_uids cannot be less than min_allowed_uids.

Common Causes

  • Reducing maximum below the current minimum
  • Updating one bound without considering the other

How to Fix

Ensure max_allowed_uids >= min_allowed_uids,Reduce min_allowed_uids first if you need a lower max,Query current bounds before making changes

MaxAllowedUidsGreaterThanDefaultMaxAllowedUids

error details #9

Cannot set max_allowed_uids above the network-wide default maximum.

Common Causes

  • Trying to make a subnet larger than the global maximum allows
  • Not checking the default max before setting subnet max

How to Fix

Query the default max_allowed_uids parameter,Set max_allowed_uids <= default maximum,Request increase to default max if larger subnets are needed

InvalidValue

error details #10

The provided value is invalid for this administrative operation.

Common Causes

  • Value doesn't meet validation criteria
  • Wrong data type or format
  • Value conflicts with other parameters

How to Fix

Check the specific call documentation for valid values,Ensure value meets all validation requirements,Verify no conflicts with related parameters

NotPermittedOnRootSubnet

error details #11

Operation is not permitted on the root network.

Common Causes

  • Signing with the wrong key (e.g., hotkey instead of coldkey)
  • Parameter value outside acceptable range
  • Operation requires sudo or specific owner account

How to Fix

Check which key should sign: most staking ops need coldkey, weight ops need hotkey,Verify parameter ranges match the expected constraints,For owner-only calls, confirm you own the target resource

POWRegistrationDisabled

error details #12

POW Registration has been deprecated

How to Fix

Deprecated

error details #13

Call is deprecated

How to Fix

CollateralLockShareTooHigh

error details #14

The collateral lock share exceeds the settable maximum (95% of the registration price).

How to Fix

CollateralDrainRatioOutOfBounds

error details #15

The collateral drain ratio must be positive and at most the settable maximum.

How to Fix

GrandpaChangeDelayMustBeZero

error details #16

A GRANDPA authority-set change was submitted with a non-zero delay. The runtime only accepts changes that take effect at the end of the current block.

Common Causes

  • in_blocks was passed as something other than zero
  • Porting a call from a chain that schedules authority-set changes some blocks ahead

How to Fix

Pass zero for in_blocks,Schedule the surrounding operation rather than the authority change, if the change needs to land later