All pallets

SubtensorModule docs

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

Developer documentation for the SubtensorModule 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.

SubtensorModule

Sets the caller weights for the incentive mechanism. The call can be

Index: 7 851 items

Calls 98

set_weights

call details

Sets validator weights for neurons on a subnet.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
destsVec<u16>Array of Integer (0-65535)dests (Vec<u16>)
weightsVec<u16>Array of Integer (0-65535)weights (Vec<u16>)
version_keyu64Integerversion_key (u64)
Modifies: Weights/ LastUpdate
import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add sub -w wss://entrypoint-finney.opentensor.ai:443

const client = createClient(getWsProvider("wss://entrypoint-finney.opentensor.ai:443"));
const api = client.getTypedApi(sub);

// Build set_weights call (typed, named args)
const netuid = 1;
const dests = [] as [];
const weights = [] as [];
const version_key = 0n;

const tx = api.tx.SubtensorModule.set_weights({
  netuid,
  dests,
  weights,
  version_key,
});

add_stake

call details

Transfers TAO from coldkey's free balance to stake on a hotkey.

Parameters

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

const tx = api.tx.SubtensorModule.add_stake({
  hotkey,
  netuid,
  amount_staked,
});

remove_stake

call details

Withdraws staked TAO from a hotkey back to the coldkey.

Parameters

NameTypeFormatDescription
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
amount_unstakedAlphaBalance—amount_unstaked: Alpha amount in alpha-RAO (÷10⁹ for alpha)
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 remove_stake call (typed, named args)
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const netuid = 1;
const amount_unstaked = 1_000_000_000n;

const tx = api.tx.SubtensorModule.remove_stake({
  hotkey,
  netuid,
  amount_unstaked,
});

serve_axon

call details

Registers axon server endpoint for a neuron.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
versionu32Integerversion (u32)
ipu128Large Integerip (u128)
portu16Integer (0-65535)port (u16)
ip_typeu8Integer (0-255)ip_type (u8)
protocolu8Integer (0-255)protocol (u8)
placeholder1u8Integer (0-255)placeholder1 (u8)
placeholder2u8Integer (0-255)placeholder2 (u8)
Modifies: Axons/ LastTxBlock
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 serve_axon call (typed, named args)
const netuid = 1;
const version = 0;
const ip = 0n;
const port = 0;
const ip_type = 0;
const protocol = 0;
const placeholder1 = 0;
const placeholder2 = 0;

const tx = api.tx.SubtensorModule.serve_axon({
  netuid,
  version,
  ip,
  port,
  ip_type,
  protocol,
  placeholder1,
  placeholder2,
});

serve_prometheus

call details

Registers Prometheus metrics endpoint.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
versionu32Integerversion (u32)
ipu128Large Integerip (u128)
portu16Integer (0-65535)port (u16)
ip_typeu8Integer (0-255)ip_type (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 serve_prometheus call (typed, named args)
const netuid = 1;
const version = 0;
const ip = 0n;
const port = 0;
const ip_type = 0;

const tx = api.tx.SubtensorModule.serve_prometheus({
  netuid,
  version,
  ip,
  port,
  ip_type,
});

register

call details

Registers a hotkey on a subnet. From v401 it runs the same burn registration as burned_register and ignores its proof-of-work arguments.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
block_numberu64Integerblock_number (u64)
nonceu64Integernonce (u64)
workVec<u8>Array of Integer (0-255)work (Vec<u8>)
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
coldkeyAccountIdSS58 Addresscoldkey: 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 register call (typed, named args)
const netuid = 1;
const block_number = 0n;
const nonce = 0n;
const work = Binary.fromOpaque(new Uint8Array(0));
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const coldkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const tx = api.tx.SubtensorModule.register({
  netuid,
  block_number,
  nonce,
  work,
  hotkey,
  coldkey,
});

burned_register

call details

Registers a neuron by paying TAO instead of solving POW.

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 burned_register call (typed, named args)
const netuid = 1;
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const tx = api.tx.SubtensorModule.burned_register({
  netuid,
  hotkey,
});

serve_axon_tls

call details

Registers TLS-enabled axon server endpoint.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
versionu32Integerversion (u32)
ipu128Large Integerip (u128)
portu16Integer (0-65535)port (u16)
ip_typeu8Integer (0-255)ip_type (u8)
protocolu8Integer (0-255)protocol (u8)
placeholder1u8Integer (0-255)placeholder1 (u8)
placeholder2u8Integer (0-255)placeholder2 (u8)
certificateVec<u8>Array of Integer (0-255)certificate (Vec<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 serve_axon_tls call (typed, named args)
const netuid = 1;
const version = 0;
const ip = 0n;
const port = 0;
const ip_type = 0;
const protocol = 0;
const placeholder1 = 0;
const placeholder2 = 0;
const certificate = Binary.fromOpaque(new Uint8Array(0));

const tx = api.tx.SubtensorModule.serve_axon_tls({
  netuid,
  version,
  ip,
  port,
  ip_type,
  protocol,
  placeholder1,
  placeholder2,
  certificate,
});

register_network

call details

Creates a new subnet on the Bittensor network.

Parameters

NameTypeFormatDescription
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 register_network call (typed, named args)
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const tx = api.tx.SubtensorModule.register_network({
  hotkey,
});

dissolve_network

call details

Removes a subnet from the network.

Parameters

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

const tx = api.tx.SubtensorModule.dissolve_network({
  coldkey,
  netuid,
});

root_register

call details

Registers a validator on the root network (subnet 0).

Parameters

NameTypeFormatDescription
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 root_register call (typed, named args)
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const tx = api.tx.SubtensorModule.root_register({
  hotkey,
});

decrease_take

call details

Decreases the delegate's commission rate.

Parameters

NameTypeFormatDescription
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
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 decrease_take call (typed, named args)
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const take = undefined as any /* PerU16 — replace with real value */;

const tx = api.tx.SubtensorModule.decrease_take({
  hotkey,
  take,
});

increase_take

call details

Increases the delegate's commission rate.

Parameters

NameTypeFormatDescription
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
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 increase_take call (typed, named args)
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const take = undefined as any /* PerU16 — replace with real value */;

const tx = api.tx.SubtensorModule.increase_take({
  hotkey,
  take,
});

set_children

call details

Sets child hotkeys for stake distribution.

Parameters

NameTypeFormatDescription
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
childrenVec<(u64, AccountId)>Array of (u64, AccountId)children (Vec<(u64, AccountId)>)
import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add sub -w wss://entrypoint-finney.opentensor.ai:443

const client = createClient(getWsProvider("wss://entrypoint-finney.opentensor.ai:443"));
const api = client.getTypedApi(sub);

// Build set_children call (typed, named args)
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const netuid = 1;
const children = [] as [];

const tx = api.tx.SubtensorModule.set_children({
  hotkey,
  netuid,
  children,
});

set_identity

call details

Sets on-chain identity for a hotkey.

Parameters

NameTypeFormatDescription
nameVec<u8>Array of Integer (0-255)name (Vec<u8>)
urlVec<u8>Array of Integer (0-255)url (Vec<u8>)
github_repoVec<u8>Array of Integer (0-255)github_repo (Vec<u8>)
imageVec<u8>Array of Integer (0-255)image (Vec<u8>)
discordVec<u8>Array of Integer (0-255)discord (Vec<u8>)
descriptionVec<u8>Array of Integer (0-255)description (Vec<u8>)
additionalVec<u8>Array of Integer (0-255)additional (Vec<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 set_identity call (typed, named args)
const name = Binary.fromOpaque(new Uint8Array(0));
const url = Binary.fromOpaque(new Uint8Array(0));
const github_repo = Binary.fromOpaque(new Uint8Array(0));
const image = Binary.fromOpaque(new Uint8Array(0));
const discord = Binary.fromOpaque(new Uint8Array(0));
const description = Binary.fromOpaque(new Uint8Array(0));
const additional = Binary.fromOpaque(new Uint8Array(0));

const tx = api.tx.SubtensorModule.set_identity({
  name,
  url,
  github_repo,
  image,
  discord,
  description,
  additional,
});

sudo_set_tx_childkey_take_rate_limit

call details

Sets rate limit for child key take changes (admin).

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

const tx = api.tx.SubtensorModule.sudo_set_tx_childkey_take_rate_limit({
  tx_rate_limit,
});

swap_hotkey

call details

Swaps hotkey to a new address.

Parameters

NameTypeFormatDescription
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
new_hotkeyAccountIdSS58 Addressnew_hotkey: Account address (32 bytes, SS58-encoded)
netuidOption—netuid: optional Subnet ID (u16, 0-65535)
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_hotkey call (typed, named args)
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const new_hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const netuid = undefined;

const tx = api.tx.SubtensorModule.swap_hotkey({
  hotkey,
  new_hotkey,
  netuid,
});

swap_coldkey

call details

Root-only immediate coldkey swap: moves everything from old_coldkey to new_coldkey with no announcement or delay.

Parameters

NameTypeFormatDescription
old_coldkeyAccountIdSS58 Addressold_coldkey: Account address (32 bytes, SS58-encoded)
new_coldkeyAccountIdSS58 Addressnew_coldkey: Account address (32 bytes, SS58-encoded)
swap_costTaoBalance—swap_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 swap_coldkey call (typed, named args)
const old_coldkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const new_coldkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const swap_cost = 1_000_000_000n;

const tx = api.tx.SubtensorModule.swap_coldkey({
  old_coldkey,
  new_coldkey,
  swap_cost,
});

swap_hotkey_v2

call details

---- The extrinsic for user to change its hotkey in subnet or all subnets. This extrinsic is

Parameters

NameTypeFormatDescription
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
new_hotkeyAccountIdSS58 Addressnew_hotkey: Account address (32 bytes, SS58-encoded)
netuidOption—netuid: optional Subnet ID (u16, 0-65535)
keep_stakeboolBoolean (true/false)keep_stake (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 swap_hotkey_v2 call (typed, named args)
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const new_hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const netuid = undefined;
const keep_stake = true;

const tx = api.tx.SubtensorModule.swap_hotkey_v2({
  hotkey,
  new_hotkey,
  netuid,
  keep_stake,
});

schedule_swap_coldkey

call details

Deprecated since v385: returns Deprecated and changes nothing. Use announce_coldkey_swap or announce_coldkey_swap_v2.

Parameters

NameTypeFormatDescription
new_coldkeyAccountIdSS58 Addressnew_coldkey: Account address (32 bytes, SS58-encoded)
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 schedule_swap_coldkey call (typed, named args)
const new_coldkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const tx = api.tx.SubtensorModule.schedule_swap_coldkey({
  new_coldkey,
});

set_childkey_take

call details

Sets the take rate for a child hotkey.

Parameters

NameTypeFormatDescription
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
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 set_childkey_take call (typed, named args)
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const netuid = 1;
const take = undefined as any /* PerU16 — replace with real value */;

const tx = api.tx.SubtensorModule.set_childkey_take({
  hotkey,
  netuid,
  take,
});

sudo_set_min_childkey_take

call details

Sets minimum child key take rate (admin).

Parameters

NameTypeFormatDescription
takePerU16—take (PerU16)
Modifies: MinChildkeyTake
// ----------------------------------------------------------------------
// 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 call (typed, named args)
const take = undefined as any /* PerU16 — replace with real value */;

const tx = api.tx.SubtensorModule.sudo_set_min_childkey_take({
  take,
});

sudo_set_max_childkey_take

call details

Sets maximum child key take rate (admin).

Parameters

NameTypeFormatDescription
takePerU16—take (PerU16)
Modifies: MaxChildkeyTake
// ----------------------------------------------------------------------
// 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_childkey_take call (typed, named args)
const take = undefined as any /* PerU16 — replace with real value */;

const tx = api.tx.SubtensorModule.sudo_set_max_childkey_take({
  take,
});

set_subnet_identity

call details

Sets identity metadata for a subnet.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
subnet_nameVec<u8>Array of Integer (0-255)subnet_name (Vec<u8>)
github_repoVec<u8>Array of Integer (0-255)github_repo (Vec<u8>)
subnet_contactVec<u8>Array of Integer (0-255)subnet_contact (Vec<u8>)
subnet_urlVec<u8>Array of Integer (0-255)subnet_url (Vec<u8>)
discordVec<u8>Array of Integer (0-255)discord (Vec<u8>)
descriptionVec<u8>Array of Integer (0-255)description (Vec<u8>)
logo_urlVec<u8>Array of Integer (0-255)logo_url (Vec<u8>)
additionalVec<u8>Array of Integer (0-255)additional (Vec<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 set_subnet_identity call (typed, named args)
const netuid = 1;
const subnet_name = Binary.fromOpaque(new Uint8Array(0));
const github_repo = Binary.fromOpaque(new Uint8Array(0));
const subnet_contact = Binary.fromOpaque(new Uint8Array(0));
const subnet_url = Binary.fromOpaque(new Uint8Array(0));
const discord = Binary.fromOpaque(new Uint8Array(0));
const description = Binary.fromOpaque(new Uint8Array(0));
const logo_url = Binary.fromOpaque(new Uint8Array(0));
const additional = Binary.fromOpaque(new Uint8Array(0));

const tx = api.tx.SubtensorModule.set_subnet_identity({
  netuid,
  subnet_name,
  github_repo,
  subnet_contact,
  subnet_url,
  discord,
  description,
  logo_url,
  additional,
});

register_network_with_identity

call details

Creates a new subnet with identity metadata.

Parameters

NameTypeFormatDescription
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
identityOption—identity (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 register_network_with_identity call (typed, named args)
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const identity = undefined;

const tx = api.tx.SubtensorModule.register_network_with_identity({
  hotkey,
  identity,
});

batch_set_weights

call details

Sets weights on multiple subnets in a single transaction.

Parameters

NameTypeFormatDescription
netuidsVec<Compact<NetUid>>Array of NetUidnetuids: list of compact-encoded Subnet ID (u16, 0-65535)
weightsVec<Vec<(Compact<u16>, Compact<u16>)>>Array of Array of (Compact<u16>, Compact<u16>)weights (Vec<Vec<(Compact<u16>, Compact<u16>)>>)
version_keysVec<Compact<u64>>Array of Integerversion_keys (Vec<Compact<u64>>)
Modifies: Weights/ LastUpdate
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 batch_set_weights call (typed, named args)
const netuids = [] as [];
const weights = [] as [];
const version_keys = [] as [];

const tx = api.tx.SubtensorModule.batch_set_weights({
  netuids,
  weights,
  version_keys,
});

unstake_all

call details

Removes all stake from a hotkey back to the coldkey.

Parameters

NameTypeFormatDescription
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 unstake_all call (typed, named args)
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const tx = api.tx.SubtensorModule.unstake_all({
  hotkey,
});

unstake_all_alpha

call details

Removes all alpha stake from a hotkey back to the coldkey.

Parameters

NameTypeFormatDescription
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 unstake_all_alpha call (typed, named args)
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const tx = api.tx.SubtensorModule.unstake_all_alpha({
  hotkey,
});

move_stake

call details

Moves stake from one hotkey/subnet to another.

Parameters

NameTypeFormatDescription
origin_hotkeyAccountIdSS58 Addressorigin_hotkey: Account address (32 bytes, SS58-encoded)
destination_hotkeyAccountIdSS58 Addressdestination_hotkey: Account address (32 bytes, SS58-encoded)
origin_netuidNetUid—origin_netuid: Subnet ID (u16, 0-65535)
destination_netuidNetUid—destination_netuid: Subnet ID (u16, 0-65535)
alpha_amountAlphaBalance—alpha_amount: Alpha amount in alpha-RAO (÷10⁹ for alpha)
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 move_stake call (typed, named args)
const origin_hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const destination_hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const origin_netuid = 1;
const destination_netuid = 1;
const alpha_amount = 1_000_000_000n;

const tx = api.tx.SubtensorModule.move_stake({
  origin_hotkey,
  destination_hotkey,
  origin_netuid,
  destination_netuid,
  alpha_amount,
});

transfer_stake

call details

Transfers stake from one coldkey to another on the same hotkey.

Parameters

NameTypeFormatDescription
destination_coldkeyAccountIdSS58 Addressdestination_coldkey: Account address (32 bytes, SS58-encoded)
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
origin_netuidNetUid—origin_netuid: Subnet ID (u16, 0-65535)
destination_netuidNetUid—destination_netuid: Subnet ID (u16, 0-65535)
alpha_amountAlphaBalance—alpha_amount: Alpha amount in alpha-RAO (÷10⁹ for alpha)
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 transfer_stake call (typed, named args)
const destination_coldkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const origin_netuid = 1;
const destination_netuid = 1;
const alpha_amount = 1_000_000_000n;

const tx = api.tx.SubtensorModule.transfer_stake({
  destination_coldkey,
  hotkey,
  origin_netuid,
  destination_netuid,
  alpha_amount,
});

swap_stake

call details

Swaps stake between subnets for the same coldkey-hotkey pair.

Parameters

NameTypeFormatDescription
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
origin_netuidNetUid—origin_netuid: Subnet ID (u16, 0-65535)
destination_netuidNetUid—destination_netuid: Subnet ID (u16, 0-65535)
alpha_amountAlphaBalance—alpha_amount: Alpha amount in alpha-RAO (÷10⁹ for alpha)
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_stake call (typed, named args)
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const origin_netuid = 1;
const destination_netuid = 1;
const alpha_amount = 1_000_000_000n;

const tx = api.tx.SubtensorModule.swap_stake({
  hotkey,
  origin_netuid,
  destination_netuid,
  alpha_amount,
});

add_stake_limit

call details

Adds stake with a price limit for slippage protection.

Parameters

NameTypeFormatDescription
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
amount_stakedTaoBalance—amount_staked: TAO amount in RAO (÷10⁹ for TAO)
limit_priceTaoBalance—limit_price: TAO amount in RAO (÷10⁹ for TAO)
allow_partialboolBoolean (true/false)allow_partial (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 add_stake_limit call (typed, named args)
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const netuid = 1;
const amount_staked = 1_000_000_000n;
const limit_price = undefined as any /* TaoBalance — replace with real value */;
const allow_partial = true;

const tx = api.tx.SubtensorModule.add_stake_limit({
  hotkey,
  netuid,
  amount_staked,
  limit_price,
  allow_partial,
});

remove_stake_limit

call details

Removes stake with a price limit for slippage protection.

Parameters

NameTypeFormatDescription
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
amount_unstakedAlphaBalance—amount_unstaked: Alpha amount in alpha-RAO (÷10⁹ for alpha)
limit_priceTaoBalance—limit_price: TAO amount in RAO (÷10⁹ for TAO)
allow_partialboolBoolean (true/false)allow_partial (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 remove_stake_limit call (typed, named args)
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const netuid = 1;
const amount_unstaked = 1_000_000_000n;
const limit_price = undefined as any /* TaoBalance — replace with real value */;
const allow_partial = true;

const tx = api.tx.SubtensorModule.remove_stake_limit({
  hotkey,
  netuid,
  amount_unstaked,
  limit_price,
  allow_partial,
});

swap_stake_limit

call details

Swaps stake between subnets with price limit protection.

Parameters

NameTypeFormatDescription
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
origin_netuidNetUid—origin_netuid: Subnet ID (u16, 0-65535)
destination_netuidNetUid—destination_netuid: Subnet ID (u16, 0-65535)
alpha_amountAlphaBalance—alpha_amount: Alpha amount in alpha-RAO (÷10⁹ for alpha)
limit_priceTaoBalance—limit_price: TAO amount in RAO (÷10⁹ for TAO)
allow_partialboolBoolean (true/false)allow_partial (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 swap_stake_limit call (typed, named args)
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const origin_netuid = 1;
const destination_netuid = 1;
const alpha_amount = 1_000_000_000n;
const limit_price = undefined as any /* TaoBalance — replace with real value */;
const allow_partial = true;

const tx = api.tx.SubtensorModule.swap_stake_limit({
  hotkey,
  origin_netuid,
  destination_netuid,
  alpha_amount,
  limit_price,
  allow_partial,
});

try_associate_hotkey

call details

Attempts to associate a hotkey with a coldkey.

Parameters

NameTypeFormatDescription
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
Modifies: Owner/ OwnedHotkeys
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 try_associate_hotkey call (typed, named args)
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const tx = api.tx.SubtensorModule.try_associate_hotkey({
  hotkey,
});

start_call

call details

Starts subnet operations/emissions.

Parameters

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

const tx = api.tx.SubtensorModule.start_call({
  netuid,
});

associate_evm_key

call details

Associates an EVM key with a Substrate account.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
evm_keyH160160-bit Hashevm_key: 20-byte address (Ethereum-style)
block_numberu64Integerblock_number (u64)
signature[u8; 65]—signature ([u8; 65])
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 associate_evm_key call (typed, named args)
const netuid = 1;
const evm_key = "0x0000000000000000000000000000000000000000";
const block_number = 0n;
const signature = "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000";

const tx = api.tx.SubtensorModule.associate_evm_key({
  netuid,
  evm_key,
  block_number,
  signature,
});

commit_weights

call details

Commits a hash of weights for later reveal.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
commit_hashH256256-bit Hashcommit_hash: 32-byte hash (Ethereum-compatible)
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 commit_weights call (typed, named args)
const netuid = 1;
const commit_hash = "0x0000000000000000000000000000000000000000000000000000000000000000";

const tx = api.tx.SubtensorModule.commit_weights({
  netuid,
  commit_hash,
});

reveal_weights

call details

Reveals previously committed weights.

Parameters

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

const tx = api.tx.SubtensorModule.reveal_weights({
  netuid,
  uids,
  values,
  salt,
  version_key,
});

batch_reveal_weights

call details

Reveals committed weights on multiple subnets in a single transaction.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
uids_listVec<Vec<u16>>Array of Array of Integer (0-65535)uids_list (Vec<Vec<u16>>)
values_listVec<Vec<u16>>Array of Array of Integer (0-65535)values_list (Vec<Vec<u16>>)
salts_listVec<Vec<u16>>Array of Array of Integer (0-65535)salts_list (Vec<Vec<u16>>)
version_keysVec<u64>Array of Integerversion_keys (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 batch_reveal_weights call (typed, named args)
const netuid = 1;
const uids_list = [] as [];
const values_list = [] as [];
const salts_list = [] as [];
const version_keys = [] as [];

const tx = api.tx.SubtensorModule.batch_reveal_weights({
  netuid,
  uids_list,
  values_list,
  salts_list,
  version_keys,
});

batch_commit_weights

call details

Commits weights on multiple subnets in a single transaction.

Parameters

NameTypeFormatDescription
netuidsVec<Compact<NetUid>>Array of NetUidnetuids: list of compact-encoded Subnet ID (u16, 0-65535)
commit_hashesVec<H256>Array of 256-bit Hashcommit_hashes: list of 32-byte hash (Ethereum-compatible)
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 batch_commit_weights call (typed, named args)
const netuids = [] as [];
const commit_hashes = [] as [];

const tx = api.tx.SubtensorModule.batch_commit_weights({
  netuids,
  commit_hashes,
});

recycle_alpha

call details

Recycles alpha tokens back to subnet pool.

Parameters

NameTypeFormatDescription
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
amountAlphaBalance—amount: Alpha amount in alpha-RAO (÷10⁹ for alpha)
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
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 recycle_alpha call (typed, named args)
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const amount = 1_000_000_000n;
const netuid = 1;

const tx = api.tx.SubtensorModule.recycle_alpha({
  hotkey,
  amount,
  netuid,
});

burn_alpha

call details

Permanently burns alpha tokens.

Parameters

NameTypeFormatDescription
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
amountAlphaBalance—amount: Alpha amount in alpha-RAO (÷10⁹ for alpha)
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
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 burn_alpha call (typed, named args)
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const amount = 1_000_000_000n;
const netuid = 1;

const tx = api.tx.SubtensorModule.burn_alpha({
  hotkey,
  amount,
  netuid,
});

remove_stake_full_limit

call details

Removes all stake from a subnet with optional price limit.

Parameters

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

const tx = api.tx.SubtensorModule.remove_stake_full_limit({
  hotkey,
  netuid,
  limit_price,
});

set_pending_childkey_cooldown

call details

Sets the cooldown period for pending child key changes.

Parameters

NameTypeFormatDescription
cooldownu64Integercooldown (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 set_pending_childkey_cooldown call (typed, named args)
const cooldown = 0n;

const tx = api.tx.SubtensorModule.set_pending_childkey_cooldown({
  cooldown,
});

register_leased_network

call details

Creates a new subnet under lease terms.

Parameters

NameTypeFormatDescription
emissions_sharePercent—emissions_share: Percentage (0..100)
end_blockOption—end_block: optional Block number
// ----------------------------------------------------------------------
// 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 register_leased_network call (typed, named args)
const emissions_share = undefined as any /* Percent — replace with real value */;
const end_block = undefined;

const tx = api.tx.SubtensorModule.register_leased_network({
  emissions_share,
  end_block,
});

terminate_lease

call details

After a subnet lease has reached its end block, makes the lease beneficiary the subnet owner and settles what the lease still owes its contributors.

Parameters

NameTypeFormatDescription
lease_idu32Integerlease_id: Lease identifier
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 terminate_lease call (typed, named args)
const lease_id = 0;
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const tx = api.tx.SubtensorModule.terminate_lease({
  lease_id,
  hotkey,
});

update_symbol

call details

Updates the token symbol for a subnet.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
symbolVec<u8>Array of Integer (0-255)symbol (Vec<u8>)
Modifies: TokenSymbol
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 update_symbol call (typed, named args)
const netuid = 1;
const symbol = Binary.fromOpaque(new Uint8Array(0));

const tx = api.tx.SubtensorModule.update_symbol({
  netuid,
  symbol,
});

commit_timelocked_weights

call details

Commits weights with a specific reveal round.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
commitBoundedVec—commit (BoundedVec)
reveal_roundu64Integerreveal_round (u64)
commit_reveal_versionu16Integer (0-65535)commit_reveal_version (u16)
// ----------------------------------------------------------------------
// 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 commit_timelocked_weights call (typed, named args)
const netuid = 1;
const commit = undefined as any /* BoundedVec — replace with real value */;
const reveal_round = 0n;
const commit_reveal_version = 0;

const tx = api.tx.SubtensorModule.commit_timelocked_weights({
  netuid,
  commit,
  reveal_round,
  commit_reveal_version,
});

set_coldkey_auto_stake_hotkey

call details

Sets the auto-stake destination for a coldkey.

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 set_coldkey_auto_stake_hotkey call (typed, named args)
const netuid = 1;
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const tx = api.tx.SubtensorModule.set_coldkey_auto_stake_hotkey({
  netuid,
  hotkey,
});

commit_mechanism_weights

call details

Commits weights using the standard mechanism.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
mecidMechId—mecid: Mechanism identifier
commit_hashH256256-bit Hashcommit_hash: 32-byte hash (Ethereum-compatible)
// ----------------------------------------------------------------------
// 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 commit_mechanism_weights call (typed, named args)
const netuid = 1;
const mecid = undefined as any /* MechId — replace with real value */;
const commit_hash = "0x0000000000000000000000000000000000000000000000000000000000000000";

const tx = api.tx.SubtensorModule.commit_mechanism_weights({
  netuid,
  mecid,
  commit_hash,
});

reveal_mechanism_weights

call details

Reveals weights committed via mechanism commit.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
mecidMechId—mecid: Mechanism identifier
uidsVec<u16>Array of Integer (0-65535)uids (Vec<u16>)
valuesVec<u16>Array of Integer (0-65535)values (Vec<u16>)
saltVec<u16>Array of Integer (0-65535)salt (Vec<u16>)
version_keyu64Integerversion_key (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 reveal_mechanism_weights call (typed, named args)
const netuid = 1;
const mecid = undefined as any /* MechId — replace with real value */;
const uids = [] as [];
const values = [] as [];
const salt = [] as [];
const version_key = 0n;

const tx = api.tx.SubtensorModule.reveal_mechanism_weights({
  netuid,
  mecid,
  uids,
  values,
  salt,
  version_key,
});

commit_crv3_mechanism_weights

call details

Commits weights using CRV3 (commit-reveal v3) mechanism.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
mecidMechId—mecid: Mechanism identifier
commitBoundedVec—commit (BoundedVec)
reveal_roundu64Integerreveal_round (u64)
// ----------------------------------------------------------------------
// HEADS UP: 2 args below have a complex type with no usable default.
// Look for `undefined as any` and replace them with real values
// 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 commit_crv3_mechanism_weights call (typed, named args)
const netuid = 1;
const mecid = undefined as any /* MechId — replace with real value */;
const commit = undefined as any /* BoundedVec — replace with real value */;
const reveal_round = 0n;

const tx = api.tx.SubtensorModule.commit_crv3_mechanism_weights({
  netuid,
  mecid,
  commit,
  reveal_round,
});

commit_timelocked_mechanism_weights

call details

Commits mechanism weights with timelock.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
mecidMechId—mecid: Mechanism identifier
commitBoundedVec—commit (BoundedVec)
reveal_roundu64Integerreveal_round (u64)
commit_reveal_versionu16Integer (0-65535)commit_reveal_version (u16)
// ----------------------------------------------------------------------
// HEADS UP: 2 args below have a complex type with no usable default.
// Look for `undefined as any` and replace them with real values
// 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 commit_timelocked_mechanism_weights call (typed, named args)
const netuid = 1;
const mecid = undefined as any /* MechId — replace with real value */;
const commit = undefined as any /* BoundedVec — replace with real value */;
const reveal_round = 0n;
const commit_reveal_version = 0;

const tx = api.tx.SubtensorModule.commit_timelocked_mechanism_weights({
  netuid,
  mecid,
  commit,
  reveal_round,
  commit_reveal_version,
});

set_mechanism_weights

call details

Directly sets mechanism weights without commit-reveal.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
mecidMechId—mecid: Mechanism identifier
destsVec<u16>Array of Integer (0-65535)dests (Vec<u16>)
weightsVec<u16>Array of Integer (0-65535)weights (Vec<u16>)
version_keyu64Integerversion_key (u64)
Modifies: Weights/ LastUpdate
// ----------------------------------------------------------------------
// 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 set_mechanism_weights call (typed, named args)
const netuid = 1;
const mecid = undefined as any /* MechId — replace with real value */;
const dests = [] as [];
const weights = [] as [];
const version_key = 0n;

const tx = api.tx.SubtensorModule.set_mechanism_weights({
  netuid,
  mecid,
  dests,
  weights,
  version_key,
});

root_dissolve_network

call details

Dissolves a network using root authority.

Parameters

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

const tx = api.tx.SubtensorModule.root_dissolve_network({
  netuid,
});

claim_root

call details

Redeems accrued basket entitlement across every validator the coldkey root-stakes to. The subnets argument is ignored.

Parameters

NameTypeFormatDescription
subnetsBTreeSet—subnets (BTreeSet)
// ----------------------------------------------------------------------
// 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 claim_root call (typed, named args)
const subnets = undefined as any /* BTreeSet — replace with real value */;

const tx = api.tx.SubtensorModule.claim_root({
  subnets,
});

sudo_set_root_claim_threshold

call details

Sets threshold for root claims (admin).

Parameters

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

const tx = api.tx.SubtensorModule.sudo_set_root_claim_threshold({
  netuid,
  new_value,
});

announce_coldkey_swap

call details

Announces a coldkey swap using BlakeTwo256 hash of the new coldkey.

Parameters

NameTypeFormatDescription
new_coldkey_hashH256256-bit Hashnew_coldkey_hash: Cryptographic hash (32 bytes)
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 announce_coldkey_swap call (typed, named args)
const new_coldkey_hash = "0x0000000000000000000000000000000000000000000000000000000000000000";

const tx = api.tx.SubtensorModule.announce_coldkey_swap({
  new_coldkey_hash,
});

swap_coldkey_announced

call details

Performs a coldkey swap if an announcement has been made.

Parameters

NameTypeFormatDescription
new_coldkeyAccountIdSS58 Addressnew_coldkey: 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 swap_coldkey_announced call (typed, named args)
const new_coldkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const tx = api.tx.SubtensorModule.swap_coldkey_announced({
  new_coldkey,
});

dispute_coldkey_swap

call details

Dispute a coldkey swap.

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 dispute_coldkey_swap call (no parameters)
const tx = api.tx.SubtensorModule.dispute_coldkey_swap();

reset_coldkey_swap

call details

Reset a coldkey swap by clearing the announcement and dispute status.

Parameters

NameTypeFormatDescription
coldkeyAccountIdSS58 Addresscoldkey: 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 reset_coldkey_swap call (typed, named args)
const coldkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const tx = api.tx.SubtensorModule.reset_coldkey_swap({
  coldkey,
});

enable_voting_power_tracking

call details

Enables voting power tracking for a subnet.

Parameters

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

const tx = api.tx.SubtensorModule.enable_voting_power_tracking({
  netuid,
});

disable_voting_power_tracking

call details

Schedules disabling of voting power tracking for a subnet.

Parameters

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

const tx = api.tx.SubtensorModule.disable_voting_power_tracking({
  netuid,
});

sudo_set_voting_power_ema_alpha

call details

Sets the EMA alpha value for voting power calculation on a subnet.

Parameters

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

const tx = api.tx.SubtensorModule.sudo_set_voting_power_ema_alpha({
  netuid,
  alpha,
});

add_stake_burn

call details

The extrinsic is a combination of add_stake(add_stake_limit) and burn_alpha. We buy

Parameters

NameTypeFormatDescription
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
amountTaoBalance—amount: TAO amount in RAO (÷10⁹ for TAO)
limitOption—limit: optional 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 add_stake_burn call (typed, named args)
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const netuid = 1;
const amount = 1_000_000_000n;
const limit = undefined;

const tx = api.tx.SubtensorModule.add_stake_burn({
  hotkey,
  netuid,
  amount,
  limit,
});

clear_coldkey_swap_announcement

call details

Clears a coldkey swap announcement after the reannouncement delay if

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 clear_coldkey_swap_announcement call (no parameters)
const tx = api.tx.SubtensorModule.clear_coldkey_swap_announcement();

register_limit

call details

User register a new subnetwork via burning token, but only if the

Parameters

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

const tx = api.tx.SubtensorModule.register_limit({
  netuid,
  hotkey,
  limit_price,
});

set_auto_parent_delegation_enabled

call details

--- Allows a root validator to toggle auto parent delegation

Parameters

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

const tx = api.tx.SubtensorModule.set_auto_parent_delegation_enabled({
  hotkey,
  enabled,
});

lock_stake

call details

Locks alpha stake on a hotkey/subnet to build conviction. Locks decay over time unless set perpetual.

Parameters

NameTypeFormatDescription
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
amountAlphaBalance—amount: Alpha amount in alpha-RAO (÷10⁹ for alpha)
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 lock_stake call (typed, named args)
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const netuid = 1;
const alpha_amount = 1_000_000_000n;

const tx = api.tx.SubtensorModule.lock_stake({
  hotkey,
  netuid,
  amount: alpha_amount,
});

move_lock

call details

Moves an existing lock to a new destination hotkey on the same subnet, preserving locked mass but resetting conviction.

Parameters

NameTypeFormatDescription
destination_hotkeyAccountIdSS58 Addressdestination_hotkey: Account address (32 bytes, SS58-encoded)
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
Emits: LockMoved
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 move_lock call (typed, named args)
const destination_hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const netuid = 1;

const tx = api.tx.SubtensorModule.move_lock({
  destination_hotkey,
  netuid,
});

set_perpetual_lock

call details

Toggles whether the caller's individual lock on a subnet is perpetual (never decays) or returns to normal decay.

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 set_perpetual_lock call (typed, named args)
const netuid = 1;
const enabled = true;

const tx = api.tx.SubtensorModule.set_perpetual_lock({
  netuid,
  enabled,
});

set_tempo

call details

Deprecated compatibility entry point retained for call-index stability.

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 set_tempo call (typed, named args)
const netuid = 1;
const tempo = 0;

const tx = api.tx.SubtensorModule.set_tempo({
  netuid,
  tempo,
});

set_activity_cutoff_factor

call details

Deprecated compatibility entry point retained for call-index stability.

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 set_activity_cutoff_factor call (typed, named args)
const netuid = 1;
const factor_milli = 0;

const tx = api.tx.SubtensorModule.set_activity_cutoff_factor({
  netuid,
  factor_milli,
});

trigger_epoch

call details

Owner-side `trigger_epoch`. Schedules an epoch to fire after `AdminFreezeWindow`

Parameters

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

const tx = api.tx.SubtensorModule.trigger_epoch({
  netuid,
});

set_reject_locked_alpha

call details

Sets or clears whether the caller rejects incoming locked alpha.

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 set_reject_locked_alpha call (typed, named args)
const enabled = true;

const tx = api.tx.SubtensorModule.set_reject_locked_alpha({
  enabled,
});

transfer_stake_and_hotkey

call details

Transfers a specified amount of stake from one coldkey to another, landing it

Parameters

NameTypeFormatDescription
destination_coldkeyAccountIdSS58 Addressdestination_coldkey: Account address (32 bytes, SS58-encoded)
origin_hotkeyAccountIdSS58 Addressorigin_hotkey: Account address (32 bytes, SS58-encoded)
destination_hotkeyAccountIdSS58 Addressdestination_hotkey: Account address (32 bytes, SS58-encoded)
origin_netuidNetUid—origin_netuid: Subnet ID (u16, 0-65535)
destination_netuidNetUid—destination_netuid: Subnet ID (u16, 0-65535)
alpha_amountAlphaBalance—alpha_amount: Alpha amount in alpha-RAO (÷10⁹ for alpha)
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 transfer_stake_and_hotkey call (typed, named args)
const destination_coldkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const origin_hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const destination_hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const origin_netuid = 1;
const destination_netuid = 1;
const alpha_amount = 1_000_000_000n;

const tx = api.tx.SubtensorModule.transfer_stake_and_hotkey({
  destination_coldkey,
  origin_hotkey,
  destination_hotkey,
  origin_netuid,
  destination_netuid,
  alpha_amount,
});

add_collateral

call details

Locks additional miner collateral (in alpha) on the signer's own

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
alphaAlphaBalance—alpha: Alpha amount in alpha-RAO (÷10⁹ for alpha)
limit_priceTaoBalance—limit_price: TAO amount in RAO (÷10⁹ for TAO)
// ----------------------------------------------------------------------
// HEADS UP: 2 args below have a complex type with no usable default.
// Look for `undefined as any` and replace them with real values
// 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 add_collateral call (typed, named args)
const netuid = 1;
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const alpha = undefined as any /* AlphaBalance — replace with real value */;
const limit_price = undefined as any /* TaoBalance — replace with real value */;

const tx = api.tx.SubtensorModule.add_collateral({
  netuid,
  hotkey,
  alpha,
  limit_price,
});

set_min_collateral

call details

Sets the self-maintaining collateral floor for the signer's hotkey

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
min_lockedAlphaBalance—min_locked: Alpha amount in alpha-RAO (÷10⁹ for alpha)
// ----------------------------------------------------------------------
// 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 set_min_collateral call (typed, named args)
const netuid = 1;
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const min_locked = undefined as any /* AlphaBalance — replace with real value */;

const tx = api.tx.SubtensorModule.set_min_collateral({
  netuid,
  hotkey,
  min_locked,
});

stake_into_basket

call details

Deposits TAO from free balance directly into a validator's basket for fund shares. Gated from runtime v443 through v448, where every submission failed with CallDisabled. Open again from v450.

Parameters

NameTypeFormatDescription
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
amount_stakedTaoBalance—amount_staked: 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 stake_into_basket call (typed, named args)
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const amount_staked = 1_000_000_000n;

const tx = api.tx.SubtensorModule.stake_into_basket({
  hotkey,
  amount_staked,
});

claim_root_with_hotkey

call details

Redeems the coldkey's accrued basket entitlement on one validator hotkey.

Parameters

NameTypeFormatDescription
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 claim_root_with_hotkey call (typed, named args)
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const tx = api.tx.SubtensorModule.claim_root_with_hotkey({
  hotkey,
});

move_stake_limit

call details

Moves stake from one hotkey to another and, when the subnets differ, protects the move with a relative price limit.

Parameters

NameTypeFormatDescription
origin_hotkeyAccountIdSS58 Addressorigin_hotkey: Account address (32 bytes, SS58-encoded)
destination_hotkeyAccountIdSS58 Addressdestination_hotkey: Account address (32 bytes, SS58-encoded)
origin_netuidNetUid—origin_netuid: Subnet ID (u16, 0-65535)
destination_netuidNetUid—destination_netuid: Subnet ID (u16, 0-65535)
alpha_amountAlphaBalance—alpha_amount: Alpha amount in alpha-RAO (÷10⁹ for alpha)
limit_priceTaoBalance—limit_price: TAO amount in RAO (÷10⁹ for TAO)
allow_partialboolBoolean (true/false)allow_partial (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 move_stake_limit call (typed, named args)
const origin_hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const destination_hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const origin_netuid = 1;
const destination_netuid = 1;
const alpha_amount = 1_000_000_000n;
const limit_price = undefined as any /* TaoBalance — replace with real value */;
const allow_partial = true;

const tx = api.tx.SubtensorModule.move_stake_limit({
  origin_hotkey,
  destination_hotkey,
  origin_netuid,
  destination_netuid,
  alpha_amount,
  limit_price,
  allow_partial,
});

swap_basket

call details

Rebalances a root validator's beta basket: sells alpha of one holding for TAO and buys another holding with it, inside protocol price, turnover, liquidity and concentration bounds.

Parameters

NameTypeFormatDescription
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
origin_netuidNetUid—origin_netuid: Subnet ID (u16, 0-65535)
destination_netuidNetUid—destination_netuid: Subnet ID (u16, 0-65535)
amountAlphaBalance—amount: Alpha amount in alpha-RAO (÷10⁹ for alpha)
min_amount_outu64Integermin_amount_out (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 swap_basket call (typed, named args)
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const origin_netuid = 1;
const destination_netuid = 1;
const amount = 1_000_000_000n;
const min_amount_out = 1_000_000_000n;

const tx = api.tx.SubtensorModule.swap_basket({
  hotkey,
  origin_netuid,
  destination_netuid,
  amount,
  min_amount_out,
});

swap_basket_many

call details

Rebalances several legs of one root validator beta basket in a single all-or-nothing call: each leg sells alpha of one holding and buys another, under the same bounds as swap_basket.

Parameters

NameTypeFormatDescription
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
legsBoundedVec—legs (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_basket_many call (typed, named args)
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const legs = undefined as any /* BoundedVec — replace with real value */;

const tx = api.tx.SubtensorModule.swap_basket_many({
  hotkey,
  legs,
});

pow_register

call details

Registers a hotkey on a subnet with a proof-of-work seal, with no TAO burn, no collateral purchase and no transaction fee.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
work_blocku64Integerwork_block (u64)
nonceu64Integernonce (u64)
work[u8; 32]—work ([u8; 32])
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 pow_register call (typed, named args)
const netuid = 1;
const work_block = 0n;
const nonce = 0n;
const work = "0x0000000000000000000000000000000000000000000000000000000000000000";
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const tx = api.tx.SubtensorModule.pow_register({
  netuid,
  work_block,
  nonce,
  work,
  hotkey,
});

set_reject_staking_hotkey_growth

call details

Opts the signing coldkey in or out of new StakingHotkeys entries created by other accounts' actions.

Parameters

NameTypeFormatDescription
enabledboolBoolean (true/false)enabled (bool)
Modifies: AccountFlags
import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add sub -w wss://entrypoint-finney.opentensor.ai:443

const client = createClient(getWsProvider("wss://entrypoint-finney.opentensor.ai:443"));
const api = client.getTypedApi(sub);

// Build set_reject_staking_hotkey_growth call (typed, named args)
const enabled = true;

const tx = api.tx.SubtensorModule.set_reject_staking_hotkey_growth({
  enabled,
});

release_own_coldkey_swap_destination_reservation

call details

Lets an account reserved as a coldkey-swap destination end that reservation itself.

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 release_own_coldkey_swap_destination_reservation call (no parameters)
const tx = api.tx.SubtensorModule.release_own_coldkey_swap_destination_reservation();

announce_coldkey_swap_v2

call details

Announces a coldkey swap naming the destination in cleartext; validates and reserves the destination before the delay.

Parameters

NameTypeFormatDescription
new_coldkeyAccountIdSS58 Addressnew_coldkey: 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 announce_coldkey_swap_v2 call (typed, named args)
const new_coldkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const tx = api.tx.SubtensorModule.announce_coldkey_swap_v2({
  new_coldkey,
});

reset_coldkey_swap_keep_locked

call details

Root clears a coldkey announcement and dispute but leaves the coldkey restricted under a recovery lock.

Parameters

NameTypeFormatDescription
coldkeyAccountIdSS58 Addresscoldkey: 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 reset_coldkey_swap_keep_locked call (typed, named args)
const coldkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const tx = api.tx.SubtensorModule.reset_coldkey_swap_keep_locked({
  coldkey,
});

feed_tao_usd_price

call details

The TAO/USD oracle account stores a new price feed, in gamma units per TAO (10^9 units per US dollar), at most once per block.

Parameters

NameTypeFormatDescription
priceu64Integerprice (u64)
Modifies: TaoUsdPrice
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 feed_tao_usd_price call (typed, named args)
const tao_usd_price = 0n;

const tx = api.tx.SubtensorModule.feed_tao_usd_price({
  price: tao_usd_price,
});

mint_gamma

call details

Buys a subnet's alpha with the signer's TAO, burns the alpha, and credits its US dollar value as gamma to the signer's deposit at a hotkey.

Parameters

NameTypeFormatDescription
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
amountTaoBalance—amount: TAO amount in RAO (÷10⁹ for TAO)
min_amount_outGammaBalance—min_amount_out: Gamma amount in gamma units (÷10⁹ for US dollars of service credit)
spenderOption—spender: optional Account address (32 bytes, SS58-encoded)
daily_spend_capOption—daily_spend_cap: optional Gamma amount in gamma units (÷10⁹ for US dollars of service credit)
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 mint_gamma call (typed, named args)
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const netuid = 1;
const amount = 1_000_000_000n;
const min_amount_out = 1_000_000_000n;
const spender = undefined;
const daily_spend_cap = undefined;

const tx = api.tx.SubtensorModule.mint_gamma({
  hotkey,
  netuid,
  amount,
  min_amount_out,
  spender,
  daily_spend_cap,
});

mint_gamma_with_stake

call details

Burns alpha the signer has staked on origin_hotkey and credits its US dollar value as gamma to the signer's deposit at destination_hotkey.

Parameters

NameTypeFormatDescription
origin_hotkeyAccountIdSS58 Addressorigin_hotkey: Account address (32 bytes, SS58-encoded)
destination_hotkeyAccountIdSS58 Addressdestination_hotkey: Account address (32 bytes, SS58-encoded)
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
alpha_amountAlphaBalance—alpha_amount: Alpha amount in alpha-RAO (÷10⁹ for alpha)
min_amount_outGammaBalance—min_amount_out: Gamma amount in gamma units (÷10⁹ for US dollars of service credit)
spenderOption—spender: optional Account address (32 bytes, SS58-encoded)
daily_spend_capOption—daily_spend_cap: optional Gamma amount in gamma units (÷10⁹ for US dollars of service credit)
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 mint_gamma_with_stake call (typed, named args)
const origin_hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const destination_hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const netuid = 1;
const alpha_amount = 1_000_000_000n;
const min_amount_out = 1_000_000_000n;
const spender = undefined;
const daily_spend_cap = undefined;

const tx = api.tx.SubtensorModule.mint_gamma_with_stake({
  origin_hotkey,
  destination_hotkey,
  netuid,
  alpha_amount,
  min_amount_out,
  spender,
  daily_spend_cap,
});

move_gamma

call details

Moves gamma between two deposits the signer owns on one subnet, opening the destination if needed and closing the origin if emptied.

Parameters

NameTypeFormatDescription
origin_hotkeyAccountIdSS58 Addressorigin_hotkey: Account address (32 bytes, SS58-encoded)
destination_hotkeyAccountIdSS58 Addressdestination_hotkey: Account address (32 bytes, SS58-encoded)
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
amountGammaBalance—amount: Gamma amount in gamma units (÷10⁹ for US dollars of service credit)
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 move_gamma call (typed, named args)
const origin_hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const destination_hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const netuid = 1;
const amount = 1_000_000_000n;

const tx = api.tx.SubtensorModule.move_gamma({
  origin_hotkey,
  destination_hotkey,
  netuid,
  amount,
});

close_gamma_deposit

call details

Closes the signer's empty gamma deposit at a hotkey, freeing the (netuid, hotkey) slot.

Parameters

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

const tx = api.tx.SubtensorModule.close_gamma_deposit({
  hotkey,
  netuid,
});

set_gamma_deposit_spender

call details

Sets the account that may spend the signer's gamma deposit at a hotkey; None resets it to the subnet's default spender.

Parameters

NameTypeFormatDescription
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
spenderOption—spender: optional Account address (32 bytes, SS58-encoded)
Modifies: GammaDeposits
import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add sub -w wss://entrypoint-finney.opentensor.ai:443

const client = createClient(getWsProvider("wss://entrypoint-finney.opentensor.ai:443"));
const api = client.getTypedApi(sub);

// Build set_gamma_deposit_spender call (typed, named args)
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const netuid = 1;
const spender = undefined;

const tx = api.tx.SubtensorModule.set_gamma_deposit_spender({
  hotkey,
  netuid,
  spender,
});

set_gamma_deposit_daily_spend_cap

call details

Sets or removes the daily spend cap on the signer's gamma deposit at a hotkey, in gamma units per 7200 blocks.

Parameters

NameTypeFormatDescription
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
daily_spend_capOption—daily_spend_cap: optional Gamma amount in gamma units (÷10⁹ for US dollars of service credit)
Modifies: GammaDeposits
import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add sub -w wss://entrypoint-finney.opentensor.ai:443

const client = createClient(getWsProvider("wss://entrypoint-finney.opentensor.ai:443"));
const api = client.getTypedApi(sub);

// Build set_gamma_deposit_daily_spend_cap call (typed, named args)
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const netuid = 1;
const daily_spend_cap = undefined;

const tx = api.tx.SubtensorModule.set_gamma_deposit_daily_spend_cap({
  hotkey,
  netuid,
  daily_spend_cap,
});

spend_gamma

call details

The spender burns gamma from up to 512 deposits on one subnet in one call; entries that cannot be spent in full are skipped with an event, not an error.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
spendsBoundedVec—spends (BoundedVec)
Modifies: GammaDeposits
// ----------------------------------------------------------------------
// 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 spend_gamma call (typed, named args)
const netuid = 1;
const spends = undefined as any /* BoundedVec — replace with real value */;

const tx = api.tx.SubtensorModule.spend_gamma({
  netuid,
  spends,
});

set_service

call details

Sets or removes the service record of a hotkey on a subnet: a url of at most 256 bytes and the spender account customers name on gamma deposits.

Parameters

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
urlBoundedVec—url (BoundedVec)
spenderAccountIdSS58 Addressspender: Account address (32 bytes, SS58-encoded)
Modifies: Services
// ----------------------------------------------------------------------
// 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 set_service call (typed, named args)
const netuid = 1;
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const url = undefined as any /* BoundedVec — replace with real value */;
const spender = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const tx = api.tx.SubtensorModule.set_service({
  netuid,
  hotkey,
  url,
  spender,
});

Events 171

NetworkAdded

event details

Emitted when a new subnet is created on Bittensor.

When it fires

  • Network registration fee paid (locked TAO)
  • Total subnet count below maximum
  • Valid network parameters provided

Fields

NameTypeFormatDescription
netuidNetUid—Unique identifier for the new subnet (0-65535)
modalityu16Integer (0-65535)Network modality type (legacy field, typically 0)
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 NetworkAdded events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.NetworkAdded.get(block.hash);
  for (const evt of events) {
    console.log("NetworkAdded:", evt.payload);
  }
});

NetworkRemoved

event details

Emitted when a subnet is removed from the network. From v432 this marks the start of cleanup, not its completion.

When it fires

  • Subnet exists
  • Either a root-origin dissolve_network or root_dissolve_network dispatch, or the subnet was selected for pruning when a new registration arrived at the subnet limit
  • The beta-basket seed migration is not in progress

Fields

NameTypeFormatDescription
netuidNetUid—Network/subnet ID that was removed
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 NetworkRemoved events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.NetworkRemoved.get(block.hash);
  for (const evt of events) {
    console.log("NetworkRemoved:", evt.payload);
  }
});

StakeAdded

event details

Emitted after stake is successfully transferred from coldkey to hotkey.

When it fires

  • Coldkey has sufficient free balance
  • Hotkey is registered on at least one subnet
  • Amount meets minimum stake requirement
  • Coldkey is authorized to stake to this hotkey

Fields

NameTypeFormatDescription
coldkeyAccountIdSS58 AddressColdkey funding the stake (or destination coldkey on transfer)
hotkeyAccountIdSS58 AddressHotkey receiving the stake (or destination hotkey on transfer)
tao_amountTaoBalance—TAO leg in RAO: tao_staked, the amount transfer_tao_to_subnet actually moved from the coldkey to the subnet account, gross and pre-fee. In-subnet transfer: synthetic TAO equivalent at current AMM price. NOT amount_paid_in. Consumed TAO is amount_paid_in + arg5; when a price limit leaves TAO unconsumed, arg2 still carries the full input and the remainder is refunded to the coldkey (stake_utils.rs:1005-1018), so cost basis is arg2 minus that refund. Asymmetric with StakeRemoved.arg2, which is the post-swap TAO delivered.
alpha_receivedAlphaBalance—Alpha delivered to the staker by THIS operation, in alpha-RAO (SwapResult.amount_paid_out for real stake; share-pool credit on transfer). Per-operation delta, NOT a cumulative Alpha((coldkey, hotkey, netuid)) total.
netuidNetUid—Subnet ID
fee_paid_taou64IntegerSwap fee in TAO RAO (SwapResult.fee_paid, PaidIn=TAO for swap_tao_for_alpha). Different denomination than StakeRemoved.arg5 (alpha RAO from v290). Always 0 for in-subnet transfers (no AMM swap occurs).
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 StakeAdded events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.StakeAdded.get(block.hash);
  for (const evt of events) {
    console.log("StakeAdded:", evt.payload);
  }
});

StakeRemoved

event details

Emitted after stake is successfully withdrawn from hotkey to coldkey.

When it fires

  • Hotkey has sufficient staked amount
  • Coldkey is associated with the hotkey
  • Remaining stake meets minimum requirements (if any)

Fields

NameTypeFormatDescription
coldkeyAccountIdSS58 AddressColdkey receiving the unstaked TAO (or origin coldkey on transfer)
hotkeyAccountIdSS58 AddressHotkey from which alpha was removed
tao_amountTaoBalance—TAO leg in RAO. Real unstake: TAO delivered post-swap (SwapResult.amount_paid_out). In-subnet transfer: synthetic TAO equivalent at current AMM price. Asymmetric with StakeAdded.arg2, which is pre-fee input.
alpha_unstakedAlphaBalance—Alpha that entered the swap pool from THIS operation, in alpha-RAO (SwapResult.amount_paid_in), net of the swap fee reported in arg5. In the raw event the alpha removed from the (hotkey, coldkey, netuid) share pool is arg3 + arg5: the pool is debited the full requested alpha and the unswapped remainder is credited back, so arg3 + arg5 can be less than requested when a price limit is hit. In-subnet transfer emits the full alpha at arg3 with arg5 hardcoded 0, where arg3 + arg5 still holds. Net only from v401; v290 through v400 emitted the gross debit here. Per-operation delta, NOT a remaining/cumulative total.
netuidNetUid—Subnet ID
fee_paid_alphau64IntegerSwap fee in ALPHA RAO (PaidIn=Alpha for swap_alpha_for_tao), truncated from AlphaCurrency. Note: different denomination than StakeAdded.arg5 (which is TAO RAO). Always 0 for in-subnet transfers.
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 StakeRemoved events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.StakeRemoved.get(block.hash);
  for (const evt of events) {
    console.log("StakeRemoved:", evt.payload);
  }
});

StakeMoved

event details

Emitted when stake is moved between hotkeys or subnets without unstaking to TAO.

When it fires

  • Coldkey has sufficient stake on origin hotkey/subnet
  • Origin and destination hotkeys are registered
  • Move operation is not rate limited

Fields

NameTypeFormatDescription
coldkeyAccountIdSS58 AddressColdkey owning both origin and destination stake (move keeps same coldkey)
origin_hotkeyAccountIdSS58 AddressHotkey the stake is moved FROM
origin_netuidNetUid—Subnet the stake is moved FROM
destination_hotkeyAccountIdSS58 AddressHotkey the stake is moved TO
destination_netuidNetUid—Subnet the stake is moved TO
amountTaoBalance—Amount moved in TAO (RAO), matching the TaoBalance typeName, and NOT an alpha amount in either branch. Cross-subnet: net TAO realised from the unstake leg, post-fee. Same-subnet: transfer_stake_within_subnet multiplies the moved stake by current_alpha_price and returns that TAO equivalent (path exists from v290; v233 through v277 every move, same-subnet included, unstaked to TAO and restaked, and the value is tao_unstaked minus the flat TAO staking fee). Note the call argument is an alpha amount, so the input and the emitted value use different units.
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 StakeMoved events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.StakeMoved.get(block.hash);
  for (const evt of events) {
    console.log("StakeMoved:", evt.payload);
  }
});

WeightsSet

event details

Emitted when a validator submits their evaluation weights for miners.

When it fires

  • Caller is registered validator on subnet
  • Validator has sufficient stake
  • Weight setting not rate limited
  • Valid weight vector (correct UIDs and values)

Fields

NameTypeFormatDescription
netuidNetUidStorageIndex—Subnet ID
uidu16Integer (0-65535)UID of the neuron setting weights
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 WeightsSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.WeightsSet.get(block.hash);
  for (const evt of events) {
    console.log("WeightsSet:", evt.payload);
  }
});

RootWeightsSet

event details

Emitted when a root validator stores its basket distribution vector; carries the validator's root-subnet uid.

When it fires

  • RootWeightSettingEnabled is true (false from v441 through v448, true since v450)
  • Caller hotkey is registered on the root subnet and clears the minimum stake to set weights
  • Root weights rate limit has elapsed
  • At least MIN_ROOT_BASKET_WEIGHTS positive destinations, softened when fewer networks exist

Fields

NameTypeFormatDescription
uidu16Integer (0-65535)UID on the root subnet (netuid 0) of the validator whose basket distribution vector was set. Not a netuid.
Modifies: Weights
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 RootWeightsSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.RootWeightsSet.get(block.hash);
  for (const evt of events) {
    console.log("RootWeightsSet:", evt.payload);
  }
});

NeuronRegistered

event details

Emitted when a new neuron (miner or validator) joins a subnet.

When it fires

  • Subnet exists and is accepting registrations
  • Hotkey not already registered on this subnet
  • Registration fee/stake requirements met
  • Subnet has available UID slots

Fields

NameTypeFormatDescription
netuidNetUid—Subnet ID where neuron registered
uidu16Integer (0-65535)Unique identifier within subnet
hotkeyAccountIdSS58 AddressHotkey account of the neuron
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 NeuronRegistered events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.NeuronRegistered.get(block.hash);
  for (const evt of events) {
    console.log("NeuronRegistered:", evt.payload);
  }
});

BulkNeuronsRegistered

event details

Emitted when multiple neurons are registered in a single operation.

When it fires

  • Bulk registration authorized (admin operation)
  • All hotkeys valid and unregistered on subnet
  • Subnet has capacity

Fields

NameTypeFormatDescription
arg0u16Integer (0-65535)Event field #0 (u16)
arg1u16Integer (0-65535)Event field #1 (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 BulkNeuronsRegistered events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.BulkNeuronsRegistered.get(block.hash);
  for (const evt of events) {
    console.log("BulkNeuronsRegistered:", evt.payload);
  }
});

BulkBalancesSet

event details

Emitted when balances are bulk-set (admin operation).

When it fires

  • Caller has admin/sudo privileges
  • Valid account-balance pairs

Fields

NameTypeFormatDescription
arg0u16Integer (0-65535)Event field #0 (u16)
arg1u16Integer (0-65535)Event field #1 (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 BulkBalancesSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.BulkBalancesSet.get(block.hash);
  for (const evt of events) {
    console.log("BulkBalancesSet:", evt.payload);
  }
});

MaxAllowedUidsSet

event details

Emitted when maximum neurons allowed on subnet is changed.

When it fires

  • Caller has admin/sudo privileges
  • New max is >= current neuron count
  • New max is within global limits

Fields

NameTypeFormatDescription
netuidNetUid—Subnet ID (u16, 0-65535)
arg1u16Integer (0-65535)Event field #1 (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 MaxAllowedUidsSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.MaxAllowedUidsSet.get(block.hash);
  for (const evt of events) {
    console.log("MaxAllowedUidsSet:", evt.payload);
  }
});

MaxWeightLimitSet

event details

Emitted when maximum weight limit is changed.

When it fires

  • Caller has admin/sudo privileges
  • New limit is within valid range

Fields

NameTypeFormatDescription
netuidNetUid—Subnet ID (u16, 0-65535)
arg1u16Integer (0-65535)Event field #1 (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 MaxWeightLimitSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.MaxWeightLimitSet.get(block.hash);
  for (const evt of events) {
    console.log("MaxWeightLimitSet:", evt.payload);
  }
});

DifficultySet

event details

Emitted when POW registration difficulty is changed.

When it fires

  • Caller has admin/sudo privileges
  • New difficulty within MinDifficulty and MaxDifficulty bounds

Fields

NameTypeFormatDescription
netuidNetUid—Subnet ID (u16, 0-65535)
arg1u64IntegerEvent field #1 (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 DifficultySet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.DifficultySet.get(block.hash);
  for (const evt of events) {
    console.log("DifficultySet:", evt.payload);
  }
});

AdjustmentIntervalSet

event details

Emitted when difficulty adjustment interval is changed.

When it fires

  • Caller has admin/sudo privileges

Fields

NameTypeFormatDescription
netuidNetUid—Subnet ID (u16, 0-65535)
arg1u16Integer (0-65535)Event field #1 (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 AdjustmentIntervalSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.AdjustmentIntervalSet.get(block.hash);
  for (const evt of events) {
    console.log("AdjustmentIntervalSet:", evt.payload);
  }
});

RegistrationPerIntervalSet

event details

Emitted when target registrations per interval is changed.

When it fires

  • Caller has admin/sudo privileges

Fields

NameTypeFormatDescription
netuidNetUid—Subnet ID (u16, 0-65535)
arg1u16Integer (0-65535)Event field #1 (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 RegistrationPerIntervalSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.RegistrationPerIntervalSet.get(block.hash);
  for (const evt of events) {
    console.log("RegistrationPerIntervalSet:", evt.payload);
  }
});

MaxRegistrationsPerBlockSet

event details

Emitted when maximum registrations per block is changed.

When it fires

  • Caller has admin/sudo privileges

Fields

NameTypeFormatDescription
netuidNetUid—Subnet ID (u16, 0-65535)
arg1u16Integer (0-65535)Event field #1 (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 MaxRegistrationsPerBlockSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.MaxRegistrationsPerBlockSet.get(block.hash);
  for (const evt of events) {
    console.log("MaxRegistrationsPerBlockSet:", evt.payload);
  }
});

ActivityCutoffSet

event details

Emitted when activity cutoff threshold is changed.

When it fires

  • Caller has admin/sudo privileges
  • New cutoff is within valid range

Fields

NameTypeFormatDescription
netuidNetUid—Subnet ID (u16, 0-65535)
arg1u16Integer (0-65535)Event field #1 (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 ActivityCutoffSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.ActivityCutoffSet.get(block.hash);
  for (const evt of events) {
    console.log("ActivityCutoffSet:", evt.payload);
  }
});

RhoSet

event details

Emitted when rho parameter is changed.

When it fires

  • Caller has admin/sudo privileges
  • New rho is within valid range

Fields

NameTypeFormatDescription
netuidNetUid—Subnet ID (u16, 0-65535)
arg1u16Integer (0-65535)Event field #1 (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 RhoSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.RhoSet.get(block.hash);
  for (const evt of events) {
    console.log("RhoSet:", evt.payload);
  }
});

AlphaSigmoidSteepnessSet

event details

Emitted when alpha sigmoid steepness parameter is changed.

When it fires

  • Caller has admin/sudo privileges
  • Valid steepness value within allowed range

Fields

NameTypeFormatDescription
netuidNetUid—Subnet ID (u16, 0-65535)
arg1i16Signed IntegerEvent field #1 (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);

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

KappaSet

event details

Emitted when kappa parameter is changed.

When it fires

  • Caller has admin/sudo privileges
  • New kappa is within valid range (typically 0-65535)

Fields

NameTypeFormatDescription
netuidNetUid—Subnet ID (u16, 0-65535)
arg1u16Integer (0-65535)Event field #1 (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 KappaSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.KappaSet.get(block.hash);
  for (const evt of events) {
    console.log("KappaSet:", evt.payload);
  }
});

MinAllowedWeightSet

event details

Emitted when minimum required weights per validator is changed.

When it fires

  • Caller has admin/sudo privileges
  • New minimum is within valid range

Fields

NameTypeFormatDescription
netuidNetUid—Subnet ID (u16, 0-65535)
arg1u16Integer (0-65535)Event field #1 (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 MinAllowedWeightSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.MinAllowedWeightSet.get(block.hash);
  for (const evt of events) {
    console.log("MinAllowedWeightSet:", evt.payload);
  }
});

ValidatorPruneLenSet

event details

Emitted when validator prune length is changed.

When it fires

  • Caller has admin/sudo privileges
  • New length is within valid range

Fields

NameTypeFormatDescription
netuidNetUid—Subnet ID (u16, 0-65535)
arg1u64IntegerEvent field #1 (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 ValidatorPruneLenSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.ValidatorPruneLenSet.get(block.hash);
  for (const evt of events) {
    console.log("ValidatorPruneLenSet:", evt.payload);
  }
});

ScalingLawPowerSet

event details

Emitted when scaling law power parameter is changed.

When it fires

  • Caller has admin/sudo privileges

Fields

NameTypeFormatDescription
netuidNetUid—Subnet ID (u16, 0-65535)
arg1u16Integer (0-65535)Event field #1 (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 ScalingLawPowerSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.ScalingLawPowerSet.get(block.hash);
  for (const evt of events) {
    console.log("ScalingLawPowerSet:", evt.payload);
  }
});

WeightsSetRateLimitSet

event details

Emitted when the rate limit for setting weights is changed.

When it fires

  • Caller has admin/sudo privileges

Fields

NameTypeFormatDescription
netuidNetUid—Subnet ID (u16, 0-65535)
arg1u64IntegerEvent field #1 (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 WeightsSetRateLimitSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.WeightsSetRateLimitSet.get(block.hash);
  for (const evt of events) {
    console.log("WeightsSetRateLimitSet:", evt.payload);
  }
});

ImmunityPeriodSet

event details

Emitted when neuron immunity period is changed.

When it fires

  • Caller has admin/sudo privileges
  • New period is within valid range

Fields

NameTypeFormatDescription
netuidNetUid—Subnet ID (u16, 0-65535)
arg1u16Integer (0-65535)Event field #1 (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 ImmunityPeriodSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.ImmunityPeriodSet.get(block.hash);
  for (const evt of events) {
    console.log("ImmunityPeriodSet:", evt.payload);
  }
});

BondsMovingAverageSet

event details

Emitted when bonds moving average parameter is changed.

When it fires

  • Caller has admin/sudo privileges
  • New value is within valid range

Fields

NameTypeFormatDescription
netuidNetUid—Subnet ID (u16, 0-65535)
arg1u64IntegerEvent field #1 (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 BondsMovingAverageSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.BondsMovingAverageSet.get(block.hash);
  for (const evt of events) {
    console.log("BondsMovingAverageSet:", evt.payload);
  }
});

BondsPenaltySet

event details

Emitted when bonds penalty parameter is changed.

When it fires

  • Caller has admin/sudo privileges

Fields

NameTypeFormatDescription
netuidNetUid—Subnet ID (u16, 0-65535)
arg1u16Integer (0-65535)Event field #1 (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 BondsPenaltySet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.BondsPenaltySet.get(block.hash);
  for (const evt of events) {
    console.log("BondsPenaltySet:", evt.payload);
  }
});

BondsResetOnSet

event details

Emitted when bonds reset behavior is toggled.

When it fires

  • Caller has admin/sudo privileges

Fields

NameTypeFormatDescription
netuidNetUid—Subnet ID (u16, 0-65535)
arg1boolBoolean (true/false)Event field #1 (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 BondsResetOnSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.BondsResetOnSet.get(block.hash);
  for (const evt of events) {
    console.log("BondsResetOnSet:", evt.payload);
  }
});

MaxAllowedValidatorsSet

event details

Emitted when maximum validators allowed is changed.

When it fires

  • Caller has admin/sudo privileges

Fields

NameTypeFormatDescription
netuidNetUid—Subnet ID (u16, 0-65535)
arg1u16Integer (0-65535)Event field #1 (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 MaxAllowedValidatorsSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.MaxAllowedValidatorsSet.get(block.hash);
  for (const evt of events) {
    console.log("MaxAllowedValidatorsSet:", evt.payload);
  }
});

AxonServed

event details

Emitted when a neuron updates their axon server information.

When it fires

  • Caller is registered on the subnet
  • Valid IP/port provided
  • Serving not rate limited

Fields

NameTypeFormatDescription
netuidNetUid—Subnet ID (u16, 0-65535)
accountAccountIdSS58 AddressAccount 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 AxonServed events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.AxonServed.get(block.hash);
  for (const evt of events) {
    console.log("AxonServed:", evt.payload);
  }
});

PrometheusServed

event details

Emitted when a neuron updates their Prometheus metrics endpoint.

When it fires

  • Caller is registered on the subnet
  • Valid IP/port provided
  • Serving not rate limited

Fields

NameTypeFormatDescription
netuidNetUid—Subnet ID (u16, 0-65535)
accountAccountIdSS58 AddressAccount 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 PrometheusServed events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.PrometheusServed.get(block.hash);
  for (const evt of events) {
    console.log("PrometheusServed:", evt.payload);
  }
});

DelegateAdded

event details

Emitted when a hotkey becomes a delegate (validator accepting external stake).

When it fires

  • Hotkey is not already a delegate
  • Hotkey is registered on at least one subnet
  • Caller owns the hotkey (matching coldkey)

Fields

NameTypeFormatDescription
coldkeyAccountIdSS58 AddressColdkey that owns the hotkey and made it a delegate
hotkeyAccountIdSS58 AddressHotkey that became a delegate
takePerU16—Delegate take set at registration, u16-normalized: 65535 = 100%. Bounded by MinDelegateTake..=MaxDelegateTake. Not an amount.
Modifies: Delegates
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 DelegateAdded events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.DelegateAdded.get(block.hash);
  for (const evt of events) {
    console.log("DelegateAdded:", evt.payload);
  }
});

DefaultTakeSet

event details

Emitted when the default delegate take rate is changed.

When it fires

  • Caller has admin/sudo privileges
  • New default is within valid range

Fields

NameTypeFormatDescription
arg0PerU16—Event field #0 (PerU16)
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 DefaultTakeSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.DefaultTakeSet.get(block.hash);
  for (const evt of events) {
    console.log("DefaultTakeSet:", evt.payload);
  }
});

WeightsVersionKeySet

event details

Emitted when the required weights version key is updated.

When it fires

  • Caller has admin/sudo privileges
  • New version key is valid

Fields

NameTypeFormatDescription
netuidNetUid—Subnet ID (u16, 0-65535)
arg1u64IntegerEvent field #1 (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 WeightsVersionKeySet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.WeightsVersionKeySet.get(block.hash);
  for (const evt of events) {
    console.log("WeightsVersionKeySet:", evt.payload);
  }
});

MinDifficultySet

event details

Emitted when minimum POW difficulty is changed.

When it fires

  • Caller has admin/sudo privileges

Fields

NameTypeFormatDescription
netuidNetUid—Subnet ID (u16, 0-65535)
arg1u64IntegerEvent field #1 (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 MinDifficultySet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.MinDifficultySet.get(block.hash);
  for (const evt of events) {
    console.log("MinDifficultySet:", evt.payload);
  }
});

MaxDifficultySet

event details

Emitted when maximum POW difficulty is changed.

When it fires

  • Caller has admin/sudo privileges

Fields

NameTypeFormatDescription
netuidNetUid—Subnet ID (u16, 0-65535)
arg1u64IntegerEvent field #1 (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 MaxDifficultySet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.MaxDifficultySet.get(block.hash);
  for (const evt of events) {
    console.log("MaxDifficultySet:", evt.payload);
  }
});

ServingRateLimitSet

event details

Emitted when serving rate limit is changed.

When it fires

  • Caller has admin/sudo privileges
  • New rate limit is within valid range

Fields

NameTypeFormatDescription
netuidNetUid—Subnet ID (u16, 0-65535)
arg1u64IntegerEvent field #1 (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 ServingRateLimitSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.ServingRateLimitSet.get(block.hash);
  for (const evt of events) {
    console.log("ServingRateLimitSet:", evt.payload);
  }
});

BurnSet

event details

Emitted when burn registration cost is changed.

When it fires

  • Caller has admin/sudo privileges
  • New burn within MinBurn and MaxBurn bounds

Fields

NameTypeFormatDescription
netuidNetUid—Subnet ID (u16, 0-65535)
tao_amountTaoBalance—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 BurnSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.BurnSet.get(block.hash);
  for (const evt of events) {
    console.log("BurnSet:", evt.payload);
  }
});

MaxBurnSet

event details

Emitted when maximum burn for registration is changed.

When it fires

  • Caller has admin/sudo privileges

Fields

NameTypeFormatDescription
netuidNetUid—Subnet ID (u16, 0-65535)
tao_amountTaoBalance—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 MaxBurnSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.MaxBurnSet.get(block.hash);
  for (const evt of events) {
    console.log("MaxBurnSet:", evt.payload);
  }
});

MinBurnSet

event details

Emitted when minimum burn for registration is changed.

When it fires

  • Caller has admin/sudo privileges

Fields

NameTypeFormatDescription
netuidNetUid—Subnet ID (u16, 0-65535)
tao_amountTaoBalance—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 MinBurnSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.MinBurnSet.get(block.hash);
  for (const evt of events) {
    console.log("MinBurnSet:", evt.payload);
  }
});

MaxEpochsPerBlockSet

event details

setting the per-block epoch cap (dynamic tempo throttle).

When it fires

  • Caller authorized to make changes

Fields

NameTypeFormatDescription
arg0u8Integer (0-255)Event field #0 (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);

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

TxRateLimitSet

event details

Emitted when general transaction rate limit is changed.

When it fires

  • Caller has admin/sudo privileges
  • New rate limit is within valid range

Fields

NameTypeFormatDescription
arg0u64IntegerEvent field #0 (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 TxRateLimitSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.TxRateLimitSet.get(block.hash);
  for (const evt of events) {
    console.log("TxRateLimitSet:", evt.payload);
  }
});

TxDelegateTakeRateLimitSet

event details

Emitted when delegate take rate limit is changed.

When it fires

  • Caller has admin/sudo privileges

Fields

NameTypeFormatDescription
arg0u64IntegerEvent field #0 (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 TxDelegateTakeRateLimitSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.TxDelegateTakeRateLimitSet.get(block.hash);
  for (const evt of events) {
    console.log("TxDelegateTakeRateLimitSet:", evt.payload);
  }
});

TxChildKeyTakeRateLimitSet

event details

Emitted when child key take rate limit is changed.

When it fires

  • Caller has admin/sudo privileges

Fields

NameTypeFormatDescription
arg0u64IntegerEvent field #0 (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 TxChildKeyTakeRateLimitSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.TxChildKeyTakeRateLimitSet.get(block.hash);
  for (const evt of events) {
    console.log("TxChildKeyTakeRateLimitSet:", evt.payload);
  }
});

AdminFreezeWindowSet

event details

Emitted when admin freeze window is changed.

When it fires

  • Caller has admin/sudo privileges

Fields

NameTypeFormatDescription
arg0u16Integer (0-65535)Event field #0 (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 AdminFreezeWindowSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.AdminFreezeWindowSet.get(block.hash);
  for (const evt of events) {
    console.log("AdminFreezeWindowSet:", evt.payload);
  }
});

OwnerHyperparamRateLimitSet

event details

Emitted when subnet owner hyperparameter rate limit is changed.

When it fires

  • Caller has admin/sudo privileges

Fields

NameTypeFormatDescription
arg0u16Integer (0-65535)Event field #0 (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 OwnerHyperparamRateLimitSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.OwnerHyperparamRateLimitSet.get(block.hash);
  for (const evt of events) {
    console.log("OwnerHyperparamRateLimitSet:", evt.payload);
  }
});

MinChildKeyTakeSet

event details

Emitted when minimum child key take rate is changed.

When it fires

  • Caller has admin/sudo privileges

Fields

NameTypeFormatDescription
arg0PerU16—Event field #0 (PerU16)
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 MinChildKeyTakeSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.MinChildKeyTakeSet.get(block.hash);
  for (const evt of events) {
    console.log("MinChildKeyTakeSet:", evt.payload);
  }
});

MinChildKeyTakePerSubnetSet

event details

Emitted when a subnet's minimum child-key take floor is updated.

When it fires

  • sudo_set_min_childkey_take_per_subnet succeeded

Fields

NameTypeFormatDescription
netuidNetUid—Subnet whose minimum child-key take was updated
takePerU16—New per-subnet minimum child-key take (u16 normalized to u16::MAX, 65535 = 100%)
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 MinChildKeyTakePerSubnetSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.MinChildKeyTakePerSubnetSet.get(block.hash);
  for (const evt of events) {
    console.log("MinChildKeyTakePerSubnetSet:", evt.payload);
  }
});

MaxChildKeyTakeSet

event details

Emitted when maximum child key take rate is changed.

When it fires

  • Caller has admin/sudo privileges

Fields

NameTypeFormatDescription
arg0PerU16—Event field #0 (PerU16)
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 MaxChildKeyTakeSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.MaxChildKeyTakeSet.get(block.hash);
  for (const evt of events) {
    console.log("MaxChildKeyTakeSet:", evt.payload);
  }
});

ChildKeyTakeSet

event details

Emitted when a child hotkey's take rate is set.

When it fires

  • Caller owns the child hotkey
  • Take is within allowed range (MinChildKeyTake to MaxChildKeyTake)
  • Take change not rate limited

Fields

NameTypeFormatDescription
accountAccountIdSS58 AddressAccount address (32 bytes, SS58-encoded)
arg1PerU16—Event field #1 (PerU16)
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 ChildKeyTakeSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.ChildKeyTakeSet.get(block.hash);
  for (const evt of events) {
    console.log("ChildKeyTakeSet:", evt.payload);
  }
});

Sudid

event details

Emitted when a sudo operation is executed.

When it fires

  • Caller is sudo key holder

Fields

NameTypeFormatDescription
arg0Result—Event field #0 (Result)
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 Sudid events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.Sudid.get(block.hash);
  for (const evt of events) {
    console.log("Sudid:", evt.payload);
  }
});

RegistrationAllowed

event details

Emitted when registration is enabled or disabled for a subnet.

When it fires

  • Caller has admin/sudo privileges

Fields

NameTypeFormatDescription
netuidNetUid—Subnet ID (u16, 0-65535)
arg1boolBoolean (true/false)Event field #1 (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 RegistrationAllowed events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.RegistrationAllowed.get(block.hash);
  for (const evt of events) {
    console.log("RegistrationAllowed:", evt.payload);
  }
});

PowRegistrationAllowed

event details

Emitted when proof-of-work registration is toggled for a subnet.

When it fires

  • Caller has admin/sudo privileges

Fields

NameTypeFormatDescription
netuidNetUid—Subnet ID (u16, 0-65535)
arg1boolBoolean (true/false)Event field #1 (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 PowRegistrationAllowed events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.PowRegistrationAllowed.get(block.hash);
  for (const evt of events) {
    console.log("PowRegistrationAllowed:", evt.payload);
  }
});

TempoSet

event details

Emitted when a subnet's tempo (emission interval) is changed.

When it fires

  • Caller has admin privileges or is subnet owner
  • Valid tempo value (within allowed range)
  • Hyperparameter change not rate limited

Fields

NameTypeFormatDescription
netuidNetUid—Subnet ID (u16, 0-65535)
arg1u16Integer (0-65535)Event field #1 (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 TempoSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.TempoSet.get(block.hash);
  for (const evt of events) {
    console.log("TempoSet:", evt.payload);
  }
});

RAORecycledForRegistrationSet

event details

Emitted when the RAO recycled amount for registration is changed.

When it fires

  • Caller has admin/sudo privileges

Fields

NameTypeFormatDescription
netuidNetUid—Subnet ID (u16, 0-65535)
tao_amountTaoBalance—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 RAORecycledForRegistrationSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.RAORecycledForRegistrationSet.get(block.hash);
  for (const evt of events) {
    console.log("RAORecycledForRegistrationSet:", evt.payload);
  }
});

StakeThresholdSet

event details

Emitted when the minimum stake threshold for validators is updated.

When it fires

  • Caller has admin/sudo privileges
  • New threshold is valid

Fields

NameTypeFormatDescription
arg0u64IntegerEvent field #0 (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 StakeThresholdSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.StakeThresholdSet.get(block.hash);
  for (const evt of events) {
    console.log("StakeThresholdSet:", evt.payload);
  }
});

AdjustmentAlphaSet

event details

Emitted when difficulty adjustment alpha parameter is changed.

When it fires

  • Caller has admin/sudo privileges

Fields

NameTypeFormatDescription
netuidNetUid—Subnet ID (u16, 0-65535)
arg1u64IntegerEvent field #1 (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 AdjustmentAlphaSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.AdjustmentAlphaSet.get(block.hash);
  for (const evt of events) {
    console.log("AdjustmentAlphaSet:", evt.payload);
  }
});

Faucet

event details

Emitted when testnet faucet dispenses tokens.

When it fires

  • Faucet is enabled (testnet only)
  • Caller meets faucet requirements

Fields

NameTypeFormatDescription
accountAccountIdSS58 AddressAccount address (32 bytes, SS58-encoded)
arg1u64IntegerEvent field #1 (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 Faucet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.Faucet.get(block.hash);
  for (const evt of events) {
    console.log("Faucet:", evt.payload);
  }
});

SubnetOwnerCutSet

event details

Emitted through v479 when the network-wide subnet owner cut changed. From v481 the event is still declared but no code path emits it.

When it fires

  • Through v479: root called AdminUtils.sudo_set_subnet_owner_cut (ensure_root)
  • From v481 that call returns AdminUtils.Deprecated and set_subnet_owner_cut no longer exists (utils/misc.rs at 6a972693a)

Fields

NameTypeFormatDescription
arg0u16Integer (0-65535)Event field #0 (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 SubnetOwnerCutSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.SubnetOwnerCutSet.get(block.hash);
  for (const evt of events) {
    console.log("SubnetOwnerCutSet:", evt.payload);
  }
});

NetworkRateLimitSet

event details

Emitted when network rate limit is changed.

When it fires

  • Caller has admin/sudo privileges

Fields

NameTypeFormatDescription
arg0u64IntegerEvent field #0 (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 NetworkRateLimitSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.NetworkRateLimitSet.get(block.hash);
  for (const evt of events) {
    console.log("NetworkRateLimitSet:", evt.payload);
  }
});

NetworkImmunityPeriodSet

event details

Emitted when network immunity period is changed.

When it fires

  • Caller has admin/sudo privileges

Fields

NameTypeFormatDescription
arg0u64IntegerEvent field #0 (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 NetworkImmunityPeriodSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.NetworkImmunityPeriodSet.get(block.hash);
  for (const evt of events) {
    console.log("NetworkImmunityPeriodSet:", evt.payload);
  }
});

StartCallDelaySet

event details

Emitted when start call delay is changed.

When it fires

  • Caller has admin/sudo privileges

Fields

NameTypeFormatDescription
arg0u64IntegerEvent field #0 (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 StartCallDelaySet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.StartCallDelaySet.get(block.hash);
  for (const evt of events) {
    console.log("StartCallDelaySet:", evt.payload);
  }
});

NetworkMinLockCostSet

event details

Emitted when minimum subnet lock cost is changed.

When it fires

  • Caller has admin/sudo privileges

Fields

NameTypeFormatDescription
tao_amountTaoBalance—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 NetworkMinLockCostSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.NetworkMinLockCostSet.get(block.hash);
  for (const evt of events) {
    console.log("NetworkMinLockCostSet:", evt.payload);
  }
});

SubnetLimitSet

event details

Emitted when the maximum number of subnets is changed.

When it fires

  • Caller has admin/sudo privileges

Fields

NameTypeFormatDescription
arg0u16Integer (0-65535)Event field #0 (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 SubnetLimitSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.SubnetLimitSet.get(block.hash);
  for (const evt of events) {
    console.log("SubnetLimitSet:", evt.payload);
  }
});

NetworkLockCostReductionIntervalSet

event details

Emitted when lock cost reduction interval is changed.

When it fires

  • Caller has admin/sudo privileges

Fields

NameTypeFormatDescription
arg0u64IntegerEvent field #0 (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 NetworkLockCostReductionIntervalSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.NetworkLockCostReductionIntervalSet.get(block.hash);
  for (const evt of events) {
    console.log("NetworkLockCostReductionIntervalSet:", evt.payload);
  }
});

TakeDecreased

event details

Emitted when a delegate decreases their commission rate.

When it fires

  • Hotkey is already a delegate
  • New take is lower than current take
  • New take is at least MinDelegateTake
  • Take change is not rate limited

Fields

NameTypeFormatDescription
accountAccountIdSS58 AddressAccount address (32 bytes, SS58-encoded)
accountAccountIdSS58 AddressAccount address (32 bytes, SS58-encoded)
arg2PerU16—Event field #2 (PerU16)
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 TakeDecreased events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.TakeDecreased.get(block.hash);
  for (const evt of events) {
    console.log("TakeDecreased:", evt.payload);
  }
});

TakeIncreased

event details

Emitted when a delegate increases their commission rate.

When it fires

  • Hotkey is already a delegate
  • New take is higher than current take
  • New take does not exceed MaxDelegateTake
  • Take change is not rate limited

Fields

NameTypeFormatDescription
accountAccountIdSS58 AddressAccount address (32 bytes, SS58-encoded)
accountAccountIdSS58 AddressAccount address (32 bytes, SS58-encoded)
arg2PerU16—Event field #2 (PerU16)
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 TakeIncreased events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.TakeIncreased.get(block.hash);
  for (const evt of events) {
    console.log("TakeIncreased:", evt.payload);
  }
});

HotkeySwapped

event details

Emitted when a hotkey is swapped to a new address.

When it fires

  • Caller owns the original hotkey
  • New hotkey is not already in use

Fields

NameTypeFormatDescription
coldkeyAccountIdSS58 Addresscoldkey: Account address (32 bytes, SS58-encoded)
old_hotkeyAccountIdSS58 Addressold_hotkey: Account address (32 bytes, SS58-encoded)
new_hotkeyAccountIdSS58 Addressnew_hotkey: 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 HotkeySwapped events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.HotkeySwapped.get(block.hash);
  for (const evt of events) {
    console.log("HotkeySwapped:", evt.payload);
  }
});

MaxDelegateTakeSet

event details

Emitted when the maximum allowed delegate take is changed.

When it fires

  • Caller has admin/sudo privileges
  • New max is valid percentage

Fields

NameTypeFormatDescription
arg0PerU16—Event field #0 (PerU16)
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 MaxDelegateTakeSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.MaxDelegateTakeSet.get(block.hash);
  for (const evt of events) {
    console.log("MaxDelegateTakeSet:", evt.payload);
  }
});

MinDelegateTakeSet

event details

Emitted when the minimum allowed delegate take is changed.

When it fires

  • Caller has admin/sudo privileges
  • New min is valid percentage

Fields

NameTypeFormatDescription
arg0PerU16—Event field #0 (PerU16)
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 MinDelegateTakeSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.MinDelegateTakeSet.get(block.hash);
  for (const evt of events) {
    console.log("MinDelegateTakeSet:", evt.payload);
  }
});

ColdkeySwapAnnounced

event details

Emitted when a coldkey commits to a future swap by publishing a hash that binds its replacement. This freezes the account.

When it fires

  • Caller is the coldkey being replaced
  • Either no announcement exists, or the previous one is past its reannouncement window
  • announce_coldkey_swap: on a first announcement, the caller can pay the key swap cost
  • announce_coldkey_swap_v2 (from v482): the destination passes swap admission and is not reserved by another announcer, and the caller pays the key swap cost on every call

Fields

NameTypeFormatDescription
whoAccountIdSS58 Addresswho: Account address (32 bytes, SS58-encoded)
new_coldkey_hashH256256-bit Hashnew_coldkey_hash: Cryptographic hash (32 bytes)
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 ColdkeySwapAnnounced events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.ColdkeySwapAnnounced.get(block.hash);
  for (const evt of events) {
    console.log("ColdkeySwapAnnounced:", evt.payload);
  }
});

ColdkeySwapReset

event details

Emitted when root clears a coldkey swap announcement and any dispute. After reset_coldkey_swap the account is back to normal; from v482, after reset_coldkey_swap_keep_locked it stays under a recovery lock.

When it fires

  • Root origin

Fields

NameTypeFormatDescription
whoAccountIdSS58 Addresswho: 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 ColdkeySwapReset events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.ColdkeySwapReset.get(block.hash);
  for (const evt of events) {
    console.log("ColdkeySwapReset:", evt.payload);
  }
});

ColdkeySwapped

event details

Emitted when a coldkey swap completes, transferring all assets to the new coldkey.

When it fires

  • swap_coldkey_announced: an announcement exists, its executable block has passed, the destination matches its hash, and the coldkey is not disputed
  • swap_coldkey: root origin
  • The destination passes swap admission (ensure_coldkey_swap_destination)

Fields

NameTypeFormatDescription
old_coldkeyAccountIdSS58 Addressold_coldkey: Account address (32 bytes, SS58-encoded)
new_coldkeyAccountIdSS58 Addressnew_coldkey: 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 ColdkeySwapped events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.ColdkeySwapped.get(block.hash);
  for (const evt of events) {
    console.log("ColdkeySwapped:", evt.payload);
  }
});

ColdkeySwapDisputed

event details

Emitted when a coldkey disputes its own pending swap, escalating it for manual resolution and blocking every call.

When it fires

  • Caller is the coldkey with the announcement
  • An announcement exists in ColdkeySwapAnnouncements
  • No dispute is already recorded (from v482 a zero recovery-lock entry does not count)

Fields

NameTypeFormatDescription
coldkeyAccountIdSS58 Addresscoldkey: 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 ColdkeySwapDisputed events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.ColdkeySwapDisputed.get(block.hash);
  for (const evt of events) {
    console.log("ColdkeySwapDisputed:", evt.payload);
  }
});

AllBalanceUnstakedAndTransferredToNewColdkey

event details

Emitted when all stake is unstaked and transferred during coldkey swap.

When it fires

  • Coldkey swap is being executed
  • Balance unstaking is part of the swap

Fields

NameTypeFormatDescription
current_coldkeyAccountIdSS58 Addresscurrent_coldkey: Account address (32 bytes, SS58-encoded)
new_coldkeyAccountIdSS58 Addressnew_coldkey: Account address (32 bytes, SS58-encoded)
total_balanceTaoBalance—total_balance (TaoBalance)
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 AllBalanceUnstakedAndTransferredToNewColdkey events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.AllBalanceUnstakedAndTransferredToNewColdkey.get(block.hash);
  for (const evt of events) {
    console.log("AllBalanceUnstakedAndTransferredToNewColdkey:", evt.payload);
  }
});

ArbitrationPeriodExtended

event details

Emitted when a coldkey swap arbitration period is extended due to dispute.

When it fires

  • Coldkey swap is pending
  • Dispute raised during arbitration

Fields

NameTypeFormatDescription
coldkeyAccountIdSS58 Addresscoldkey: 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 ArbitrationPeriodExtended events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.ArbitrationPeriodExtended.get(block.hash);
  for (const evt of events) {
    console.log("ArbitrationPeriodExtended:", evt.payload);
  }
});

SetChildrenScheduled

event details

Emitted when a child hotkey change is scheduled for future execution.

When it fires

  • Caller owns the parent hotkey
  • Valid schedule parameters provided
  • No conflicting pending schedule exists

Fields

NameTypeFormatDescription
accountAccountIdSS58 AddressAccount address (32 bytes, SS58-encoded)
netuidNetUid—Subnet ID (u16, 0-65535)
arg2u64IntegerEvent field #2 (u64)
arg3Vec<(u64, AccountId)>Array of (u64, AccountId)Event field #3 (Vec<(u64, AccountId)>)
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 SetChildrenScheduled events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.SetChildrenScheduled.get(block.hash);
  for (const evt of events) {
    console.log("SetChildrenScheduled:", evt.payload);
  }
});

SetChildren

event details

Emitted when child hotkeys are set for a parent hotkey.

When it fires

  • Caller owns the parent hotkey
  • Child hotkeys are valid accounts
  • Proportions sum to valid total

Fields

NameTypeFormatDescription
accountAccountIdSS58 AddressAccount address (32 bytes, SS58-encoded)
netuidNetUid—Subnet ID (u16, 0-65535)
arg2Vec<(u64, AccountId)>Array of (u64, AccountId)Event field #2 (Vec<(u64, AccountId)>)
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 SetChildren events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.SetChildren.get(block.hash);
  for (const evt of events) {
    console.log("SetChildren:", evt.payload);
  }
});

ChainIdentitySet

event details

Emitted when on-chain identity is set for a hotkey.

When it fires

  • Caller owns the hotkey
  • Valid identity data provided

Fields

NameTypeFormatDescription
accountAccountIdSS58 AddressAccount address (32 bytes, SS58-encoded)
Emitted by: set_identity
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 ChainIdentitySet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.ChainIdentitySet.get(block.hash);
  for (const evt of events) {
    console.log("ChainIdentitySet:", evt.payload);
  }
});

SubnetIdentitySet

event details

Emitted when a subnet's identity metadata is set or updated.

When it fires

  • Caller is subnet owner
  • Valid identity data provided

Fields

NameTypeFormatDescription
netuidNetUid—Subnet ID (u16, 0-65535)
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 SubnetIdentitySet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.SubnetIdentitySet.get(block.hash);
  for (const evt of events) {
    console.log("SubnetIdentitySet:", evt.payload);
  }
});

SubnetIdentityRemoved

event details

Emitted when a subnet's identity metadata is removed.

When it fires

  • Caller is subnet owner
  • Subnet has existing identity

Fields

NameTypeFormatDescription
netuidNetUid—Subnet ID (u16, 0-65535)
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 SubnetIdentityRemoved events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.SubnetIdentityRemoved.get(block.hash);
  for (const evt of events) {
    console.log("SubnetIdentityRemoved:", evt.payload);
  }
});

DissolveNetworkScheduled

event details

Declared in the runtime but not emitted at v453. The call that produced it, schedule_dissolve_network, was removed at v306.

When it fires

  • None at the current runtime. Nothing deposits this event.

Fields

NameTypeFormatDescription
accountAccountIdSS58 Addressaccount: Account address (32 bytes, SS58-encoded)
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
execution_blocku32Integerexecution_block: 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);

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

ColdkeySwapAnnouncementDelaySet

event details

Emitted when governance changes how long a coldkey swap announcement must wait.

When it fires

  • Root or sudo origin

Fields

NameTypeFormatDescription
delay_blocksu32IntegerNew value written to SubtensorModule.ColdkeySwapAnnouncementDelay, in blocks. It is the wait applied to announcements made from here on; announcements already pending keep the executable block they were given.
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 ColdkeySwapAnnouncementDelaySet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.ColdkeySwapAnnouncementDelaySet.get(block.hash);
  for (const evt of events) {
    console.log("ColdkeySwapAnnouncementDelaySet:", evt.payload);
  }
});

ColdkeySwapReannouncementDelaySet

event details

Emitted when governance changes how long a coldkey must wait before reannouncing or clearing a swap.

When it fires

  • Root or sudo origin

Fields

NameTypeFormatDescription
delay_blocksu32IntegerNew value written to SubtensorModule.ColdkeySwapReannouncementDelay, in blocks. Measured from an announcement executable block, it gates BOTH reannouncing a pending swap and clearing it.
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 ColdkeySwapReannouncementDelaySet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.ColdkeySwapReannouncementDelaySet.get(block.hash);
  for (const evt of events) {
    console.log("ColdkeySwapReannouncementDelaySet:", evt.payload);
  }
});

DissolveNetworkScheduleDurationSet

event details

Emitted when dissolve network schedule duration is changed.

When it fires

  • Caller has admin/sudo privileges

Fields

NameTypeFormatDescription
duration_blocksu32IntegerNew value written to SubtensorModule.DissolveNetworkScheduleDuration, in blocks. Inert at the current runtime: no code path reads that storage item since v315, and dissolution is immediate, so this event records a setting with no effect.
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 DissolveNetworkScheduleDurationSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.DissolveNetworkScheduleDurationSet.get(block.hash);
  for (const evt of events) {
    console.log("DissolveNetworkScheduleDurationSet:", evt.payload);
  }
});

CRV3WeightsCommitted

event details

Emitted when weights are committed using commit-reveal v3 protocol.

When it fires

  • CRV3 is enabled for subnet
  • Validator is registered with sufficient stake
  • Valid commit hash provided

Fields

NameTypeFormatDescription
accountAccountIdSS58 AddressAccount address (32 bytes, SS58-encoded)
netuid_storage_indexNetUidStorageIndex—Storage-index variant of subnet ID (used in storage layout)
h256H256256-bit Hash32-byte hash (Ethereum-compatible)
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 CRV3WeightsCommitted events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.CRV3WeightsCommitted.get(block.hash);
  for (const evt of events) {
    console.log("CRV3WeightsCommitted:", evt.payload);
  }
});

WeightsCommitted

event details

Emitted when a validator commits a hash of their weights for later reveal.

When it fires

  • Caller is registered validator on subnet
  • Commit-reveal is enabled for this subnet
  • No pending commit from this validator (or commit expired)

Fields

NameTypeFormatDescription
accountAccountIdSS58 AddressAccount address (32 bytes, SS58-encoded)
netuid_storage_indexNetUidStorageIndex—Storage-index variant of subnet ID (used in storage layout)
h256H256256-bit Hash32-byte hash (Ethereum-compatible)
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 WeightsCommitted events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.WeightsCommitted.get(block.hash);
  for (const evt of events) {
    console.log("WeightsCommitted:", evt.payload);
  }
});

WeightsRevealed

event details

Emitted when a validator reveals previously committed weights.

When it fires

  • Validator has pending commit
  • Reveal hash matches commit hash
  • Within reveal time window

Fields

NameTypeFormatDescription
accountAccountIdSS58 AddressAccount address (32 bytes, SS58-encoded)
netuid_storage_indexNetUidStorageIndex—Storage-index variant of subnet ID (used in storage layout)
h256H256256-bit Hash32-byte hash (Ethereum-compatible)
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 WeightsRevealed events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.WeightsRevealed.get(block.hash);
  for (const evt of events) {
    console.log("WeightsRevealed:", evt.payload);
  }
});

WeightsBatchRevealed

event details

Emitted when multiple weight commits are revealed in a batch.

When it fires

  • Validator has multiple pending commits
  • All reveal hashes match their commits
  • Within reveal time window

Fields

NameTypeFormatDescription
accountAccountIdSS58 AddressAccount address (32 bytes, SS58-encoded)
netuidNetUid—Subnet ID (u16, 0-65535)
list_of_h256Vec<H256>Array of 256-bit Hashlist of 32-byte hash (Ethereum-compatible)
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 WeightsBatchRevealed events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.WeightsBatchRevealed.get(block.hash);
  for (const evt of events) {
    console.log("WeightsBatchRevealed:", evt.payload);
  }
});

BatchWeightsCompleted

event details

Emitted when a batch of weights is successfully set across multiple subnets.

When it fires

  • Validator registered on all target subnets
  • Valid weight vectors for each subnet

Fields

NameTypeFormatDescription
list_of_compact_netuidVec<Compact<NetUid>>Array of NetUidlist of compact-encoded Subnet ID (u16, 0-65535)
accountAccountIdSS58 AddressAccount 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 BatchWeightsCompleted events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.BatchWeightsCompleted.get(block.hash);
  for (const evt of events) {
    console.log("BatchWeightsCompleted:", evt.payload);
  }
});

BatchCompletedWithErrors

event details

Emitted when a batch operation completes but some items failed.

When it fires

  • Batch operation executed
  • At least one item failed
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 BatchCompletedWithErrors events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.BatchCompletedWithErrors.get(block.hash);
  for (const evt of events) {
    console.log("BatchCompletedWithErrors:", evt.payload);
  }
});

BatchWeightItemFailed

event details

Emitted when an individual weight set within a batch fails.

When it fires

  • Batch weight operation in progress
  • Individual item encountered error

Fields

NameTypeFormatDescription
netuidNetUid—Subnet ID (u16, 0-65535)
arg1DispatchErrorDispatch ErrorEvent field #1 (DispatchError)
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 BatchWeightItemFailed events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.BatchWeightItemFailed.get(block.hash);
  for (const evt of events) {
    console.log("BatchWeightItemFailed:", evt.payload);
  }
});

StakeTransferred

event details

Emitted when stake is transferred from one coldkey to another.

When it fires

  • Origin coldkey has stake on the hotkey
  • Transfer is authorized (same owner or approved)
  • Transfer operation is not rate limited

Fields

NameTypeFormatDescription
origin_coldkeyAccountIdSS58 AddressSource coldkey (signer of transfer_stake)
destination_coldkeyAccountIdSS58 AddressReceiving coldkey
hotkeyAccountIdSS58 AddressHotkey (held constant — transfer moves between coldkeys, same hotkey)
origin_netuidNetUid—Subnet stake moved FROM
destination_netuidNetUid—Subnet stake moved TO
amountTaoBalance—Amount transferred in TAO (RAO), matching the TaoBalance typeName, and NOT an alpha amount in either branch. Cross-subnet: net TAO post-fee. Same-subnet: the moved stake multiplied by current_alpha_price (from v290; v233 through v277 every transfer unstaked to TAO and restaked, value = tao_unstaked minus the flat TAO staking fee). As with StakeMoved, the call argument is denominated in alpha while the event reports 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 StakeTransferred events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.StakeTransferred.get(block.hash);
  for (const evt of events) {
    console.log("StakeTransferred:", evt.payload);
  }
});

StakeSwapped

event details

Emitted when stake is swapped between subnets for the same coldkey-hotkey pair.

When it fires

  • Coldkey-hotkey pair has stake on origin subnet
  • Hotkey is registered on destination subnet
  • Swap operation is not rate limited

Fields

NameTypeFormatDescription
coldkeyAccountIdSS58 AddressColdkey performing the swap (held constant)
hotkeyAccountIdSS58 AddressHotkey (held constant — swap only changes netuid)
origin_netuidNetUid—Subnet swapped FROM
destination_netuidNetUid—Subnet swapped TO
amount_taoTaoBalance—Net TAO realised crossing subnets, post-fee (RAO): the unstake leg amount_paid_out from v290, tao_unstaked minus the flat TAO staking fee v233 through v277. A same-subnet swap takes the transfer_stake_within_subnet path and emits the price-equivalent 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 StakeSwapped events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.StakeSwapped.get(block.hash);
  for (const evt of events) {
    console.log("StakeSwapped:", evt.payload);
  }
});

TransferToggle

event details

Emitted when transfer functionality is toggled.

When it fires

  • Caller has admin/sudo privileges

Fields

NameTypeFormatDescription
netuidNetUid—Subnet ID (u16, 0-65535)
arg1boolBoolean (true/false)Event field #1 (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 TransferToggle events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.TransferToggle.get(block.hash);
  for (const evt of events) {
    console.log("TransferToggle:", evt.payload);
  }
});

SubnetOwnerHotkeySet

event details

Emitted when a subnet's owner hotkey is changed.

When it fires

  • Caller is current subnet owner
  • New hotkey is valid

Fields

NameTypeFormatDescription
netuidNetUid—Subnet ID (u16, 0-65535)
accountAccountIdSS58 AddressAccount 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 SubnetOwnerHotkeySet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.SubnetOwnerHotkeySet.get(block.hash);
  for (const evt of events) {
    console.log("SubnetOwnerHotkeySet:", evt.payload);
  }
});

FirstEmissionBlockNumberSet

event details

Emitted when the first emission block is set for a subnet.

When it fires

  • Subnet exists
  • First emission not already set (or reset allowed)

Fields

NameTypeFormatDescription
netuidNetUid—Subnet ID (u16, 0-65535)
arg1u64IntegerEvent field #1 (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 FirstEmissionBlockNumberSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.FirstEmissionBlockNumberSet.get(block.hash);
  for (const evt of events) {
    console.log("FirstEmissionBlockNumberSet:", evt.payload);
  }
});

AlphaRecycled

event details

Emitted when alpha tokens are recycled back to the subnet.

When it fires

  • Account has alpha to recycle
  • Recycle operation requested
  • Alpha amount is valid (non-zero)

Fields

NameTypeFormatDescription
coldkeyAccountIdSS58 AddressColdkey whose stake was reduced
hotkeyAccountIdSS58 AddressHotkey whose stake position was decreased
amount_alphaAlphaBalance—Alpha amount recycled in alpha-RAO. From v401 the requested amount capped to the available stake (amount.min(alpha_available)), as passed to decrease_stake; v273 through v400 the value decrease_stake returned. Recycle path also calls recycle_subnet_alpha(), which DECREMENTS SubnetAlphaOut.
netuidNetUid—Subnet on which alpha was recycled
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 AlphaRecycled events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.AlphaRecycled.get(block.hash);
  for (const evt of events) {
    console.log("AlphaRecycled:", evt.payload);
  }
});

AlphaBurned

event details

Emitted when alpha tokens are permanently burned.

When it fires

  • Account has alpha to burn
  • Burn operation requested
  • From v488 also emitted by SubtensorModule.mint_gamma_with_stake, which burns the signer stake on origin_hotkey through do_burn_alpha before crediting gamma; the same extrinsic emits GammaMinted with the same alpha amount. SubtensorModule.mint_gamma burns the alpha it buys without this event (pallets/subtensor/src/staking/recycle_alpha.rs L81-L129 and subnets/gamma.rs L163-L179 and L385-L421 at d967d1358, runtime v490)

Fields

NameTypeFormatDescription
coldkeyAccountIdSS58 AddressColdkey whose stake was reduced
hotkeyAccountIdSS58 AddressHotkey whose stake position was decreased
amount_alphaAlphaBalance—Alpha amount burned in alpha-RAO. From v401 the requested amount capped to the available stake (amount.min(alpha_available)); v273 through v400 the value decrease_stake returned. Unlike Recycled, Burned does NOT decrement SubnetAlphaOut; alpha is destroyed without affecting issuance accounting.
netuidNetUid—Subnet on which alpha was burned
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 AlphaBurned events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.AlphaBurned.get(block.hash);
  for (const evt of events) {
    console.log("AlphaBurned:", evt.payload);
  }
});

EvmKeyAssociated

event details

Emitted when an EVM key is associated with a Substrate account.

When it fires

  • Valid EVM key provided
  • Association is authorized

Fields

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
evm_keyH160160-bit Hashevm_key: 20-byte address (Ethereum-style)
block_associatedu64Integerblock_associated (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 EvmKeyAssociated events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.EvmKeyAssociated.get(block.hash);
  for (const evt of events) {
    console.log("EvmKeyAssociated:", evt.payload);
  }
});

CRV3WeightsRevealed

event details

Emitted when CRV3 committed weights are revealed.

When it fires

  • CRV3 commit exists for this validator
  • Reveal matches commitment
  • Reveal period has started

Fields

NameTypeFormatDescription
netuidNetUid—Subnet ID (u16, 0-65535)
accountAccountIdSS58 AddressAccount 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 CRV3WeightsRevealed events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.CRV3WeightsRevealed.get(block.hash);
  for (const evt of events) {
    console.log("CRV3WeightsRevealed:", evt.payload);
  }
});

CommitRevealPeriodsSet

event details

Emitted when the commit-reveal period length is changed.

When it fires

  • Caller has admin/sudo privileges
  • Valid period value

Fields

NameTypeFormatDescription
netuidNetUid—Subnet ID (u16, 0-65535)
arg1u64IntegerEvent field #1 (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 CommitRevealPeriodsSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.CommitRevealPeriodsSet.get(block.hash);
  for (const evt of events) {
    console.log("CommitRevealPeriodsSet:", evt.payload);
  }
});

CommitRevealEnabled

event details

Emitted when commit-reveal mode is toggled for a subnet.

When it fires

  • Caller has admin/sudo privileges for subnet

Fields

NameTypeFormatDescription
netuidNetUid—Subnet ID (u16, 0-65535)
arg1boolBoolean (true/false)Event field #1 (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 CommitRevealEnabled events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.CommitRevealEnabled.get(block.hash);
  for (const evt of events) {
    console.log("CommitRevealEnabled:", evt.payload);
  }
});

HotkeySwappedOnSubnet

event details

Emitted for each subnet when a hotkey swap occurs.

When it fires

  • Hotkey swap is in progress
  • Hotkey was registered on this subnet

Fields

NameTypeFormatDescription
coldkeyAccountIdSS58 Addresscoldkey: Account address (32 bytes, SS58-encoded)
old_hotkeyAccountIdSS58 Addressold_hotkey: Account address (32 bytes, SS58-encoded)
new_hotkeyAccountIdSS58 Addressnew_hotkey: Account address (32 bytes, SS58-encoded)
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
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 HotkeySwappedOnSubnet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.HotkeySwappedOnSubnet.get(block.hash);
  for (const evt of events) {
    console.log("HotkeySwappedOnSubnet:", evt.payload);
  }
});

SubnetLeaseCreated

event details

Emitted when a new subnet lease is created.

When it fires

  • Subnet exists
  • Lease terms agreed upon
  • Required deposits/payments made

Fields

NameTypeFormatDescription
beneficiaryAccountIdSS58 Addressbeneficiary: Account address (32 bytes, SS58-encoded)
lease_idu32Integerlease_id: Lease identifier
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
end_blockOption—end_block: 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);

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

SubnetLeaseTerminated

event details

Emitted when the beneficiary of a subnet lease terminates it after its end block; carries the beneficiary and the netuid.

When it fires

  • SubtensorModule.terminate_lease succeeded: signed by the lease beneficiary, the lease has an end block that has passed, and the hotkey named in the call is owned by the beneficiary
  • terminate_lease is the only emitter. A lease that passes its end block without the call emits nothing

Fields

NameTypeFormatDescription
beneficiaryAccountIdSS58 Addressbeneficiary: Account address (32 bytes, SS58-encoded)
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
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 SubnetLeaseTerminated events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.SubnetLeaseTerminated.get(block.hash);
  for (const evt of events) {
    console.log("SubnetLeaseTerminated:", evt.payload);
  }
});

SymbolUpdated

event details

Emitted when a subnet's token symbol is updated.

When it fires

  • Caller is subnet owner or admin
  • Valid symbol provided

Fields

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
symbolVec<u8>Array of Integer (0-255)symbol (Vec<u8>)
Emitted by: update_symbol
Modifies: TokenSymbol
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 SymbolUpdated events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.SymbolUpdated.get(block.hash);
  for (const evt of events) {
    console.log("SymbolUpdated:", evt.payload);
  }
});

CommitRevealVersionSet

event details

Emitted when the required commit-reveal version is updated.

When it fires

  • Caller has admin/sudo privileges

Fields

NameTypeFormatDescription
arg0u16Integer (0-65535)Event field #0 (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 CommitRevealVersionSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.CommitRevealVersionSet.get(block.hash);
  for (const evt of events) {
    console.log("CommitRevealVersionSet:", evt.payload);
  }
});

TimelockedWeightsCommitted

event details

Emitted when weights are committed with a specific reveal round.

When it fires

  • Timelocked commits enabled
  • Valid reveal round specified
  • Validator registered on subnet

Fields

NameTypeFormatDescription
accountAccountIdSS58 AddressAccount address (32 bytes, SS58-encoded)
netuid_storage_indexNetUidStorageIndex—Storage-index variant of subnet ID (used in storage layout)
h256H256256-bit Hash32-byte hash (Ethereum-compatible)
arg3u64IntegerEvent field #3 (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 TimelockedWeightsCommitted events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.TimelockedWeightsCommitted.get(block.hash);
  for (const evt of events) {
    console.log("TimelockedWeightsCommitted:", evt.payload);
  }
});

TimelockedWeightsRevealed

event details

Emitted when timelocked weights are revealed after their round.

When it fires

  • Current round >= reveal round
  • Valid timelocked commit exists

Fields

NameTypeFormatDescription
netuid_storage_indexNetUidStorageIndex—Storage-index variant of subnet ID (used in storage layout)
accountAccountIdSS58 AddressAccount 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 TimelockedWeightsRevealed events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.TimelockedWeightsRevealed.get(block.hash);
  for (const evt of events) {
    console.log("TimelockedWeightsRevealed:", evt.payload);
  }
});

AutoStakeAdded

event details

Emitted at the epoch when miner incentive is staked to an AutoStakeDestination hotkey instead of the mining hotkey.

When it fires

  • AutoStakeDestination(owner coldkey, netuid) is set
  • The mining hotkey received non-zero incentive this epoch and is not an owner hotkey
  • Some incentive remains after settle_miner_collateral

Fields

NameTypeFormatDescription
netuidNetUid—Subnet on which the incentive was earned and auto-staked
destination_hotkeyAccountIdSS58 AddressHotkey the alpha was staked to: the AutoStakeDestination set by the owner for this subnet. The event is emitted only when that destination is set, so it is not a complete record of auto-staked emission; when unset the alpha is still credited, to the earning hotkey, with no event. Setting a destination is rare in practice: over blocks 8983065-8990263 (2026-09-03), at least 83% of miner incentive alpha was credited with no AutoStakeAdded event. That is a lower bound: coverage was matched on (block, subnet), since this field names the destination rather than the earning hotkey. Do not derive miner emission totals from this event. IncentiveAlphaEmittedToMiners carries the per-UID alpha credit and was the reference for that figure, but it only exists from v315; below that neither event is available, and Incentive storage is Vec<PerU16>, a normalised share rather than an alpha amount, so it is not a substitute.
earning_hotkeyAccountIdSS58 AddressHotkey that earned the miner incentive; the source of the auto-staked alpha
owner_coldkeyAccountIdSS58 AddressColdkey owning the earning hotkey (Owner storage). The stake position credited is (destination, owner, netuid), so this is the coldkey leg of that position.
alpha_stakedAlphaBalance—Alpha in alpha-RAO credited to the (destination, owner, netuid) position by this auto-stake, equal to the amount passed to increase_stake_for_hotkey_and_coldkey_on_subnet in every era. From v436 it is the liquid remainder after miner-collateral capture (incentive - captured), so it is less than the gross miner incentive of the earning hotkey whenever collateral was settled; before v436 no capture existed and it is the gross incentive. Emitted from the coinbase at epoch end, not inline with any extrinsic.
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 AutoStakeAdded events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.AutoStakeAdded.get(block.hash);
  for (const evt of events) {
    console.log("AutoStakeAdded:", evt.payload);
  }
});

IncentiveAlphaEmittedToMiners

event details

Emitted at end of epoch showing alpha distributed to miners by UID.

When it fires

  • Epoch has ended
  • Subnet has active miners
  • Miners have non-zero incentive from consensus

Fields

NameTypeFormatDescription
netuidNetUidStorageIndex—netuid: Storage-index variant of subnet ID (used in storage layout)
emissionsVec<AlphaBalance>Array of AlphaBalanceemissions: list of Alpha amount in alpha-RAO (÷10⁹ for alpha)
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 IncentiveAlphaEmittedToMiners events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.IncentiveAlphaEmittedToMiners.get(block.hash);
  for (const evt of events) {
    console.log("IncentiveAlphaEmittedToMiners:", evt.payload);
  }
});

MinAllowedUidsSet

event details

Emitted when minimum allowed UIDs is changed.

When it fires

  • Caller has admin/sudo privileges

Fields

NameTypeFormatDescription
netuidNetUid—Subnet ID (u16, 0-65535)
arg1u16Integer (0-65535)Event field #1 (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 MinAllowedUidsSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.MinAllowedUidsSet.get(block.hash);
  for (const evt of events) {
    console.log("MinAllowedUidsSet:", evt.payload);
  }
});

AutoStakeDestinationSet

event details

Emitted when a coldkey sets its auto-stake destination hotkey.

When it fires

  • Coldkey is valid account
  • Hotkey is registered on the specified subnet

Fields

NameTypeFormatDescription
coldkeyAccountIdSS58 Addresscoldkey: Account address (32 bytes, SS58-encoded)
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);

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

MinNonImmuneUidsSet

event details

Emitted when minimum non-immune UIDs is changed.

When it fires

  • Caller has admin/sudo privileges

Fields

NameTypeFormatDescription
netuidNetUid—Subnet ID (u16, 0-65535)
arg1u16Integer (0-65535)Event field #1 (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 MinNonImmuneUidsSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.MinNonImmuneUidsSet.get(block.hash);
  for (const evt of events) {
    console.log("MinNonImmuneUidsSet:", evt.payload);
  }
});

RootClaimed

event details

Emitted when a coldkey redeems its accrued root basket entitlement; carries the total TAO realized and staked back to root.

When it fires

  • Coldkey holds root (netuid 0) stake on at least one validator hotkey
  • Accrued entitlement on that validator clears RootClaimableThreshold (payouts below it are skipped as dust)
  • claim_root or claim_root_with_hotkey executed

Fields

NameTypeFormatDescription
coldkeyAccountIdSS58 Addresscoldkey: Account address (32 bytes, SS58-encoded)
taoTaoBalance—tao: 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 RootClaimed events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.RootClaimed.get(block.hash);
  for (const evt of events) {
    console.log("RootClaimed:", evt.payload);
  }
});

BasketDeposited

event details

Emitted when a validator's root dividend is deployed into its basket, minting fund shares at the pre-deposit NAV.

When it fires

  • Validator hotkey holds root stake and earned a root alpha dividend this epoch
  • Deposit value clears the queue threshold (dust is merged in PendingBasketDeposits until it is worth depositing)
  • From v488 the batch passes a price admission check or is not deposited (SlippageTooHigh inside the flush, the credits stay queued). At v488 every holding and every priceable origin is inside the 2% fast-price band (ensure_basket_dividend_prices_stable, pallets/subtensor/src/staking/basket_flush.rs L738-L764 at b6a81d144, runtime v488). From v490 out-of-band prices are admitted while they move NAV by at most 0.1% and the incoming credits and the mint ratio by at most 2% (ensure_basket_dividend_price_impact, basket_flush.rs L875-L906, constants pallets/subtensor/src/lib.rs L224 and L228 at d967d1358, runtime v490)
  • From v488 credits that stay queued after a flush made by a claim, a root stake change, a basket trade or a hotkey swap are snapshotted to the current root stakers (DeferredBasketRates). A later flush deposits them, a staker claim redeems that staker part, or a dissolution of the origin subnet closes them to cash (basket_flush.rs L204-L225 and staking/deferred_dividends.rs L51-L137 at d967d1358, runtime v490)

Fields

NameTypeFormatDescription
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
taoTaoBalance—tao: TAO amount in RAO (÷10⁹ for TAO)
sharesu64Integershares (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 BasketDeposited events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.BasketDeposited.get(block.hash);
  for (const evt of events) {
    console.log("BasketDeposited:", evt.payload);
  }
});

BasketStakedIn

event details

Emitted when a staker deposits TAO from free balance directly into a validator's basket.

When it fires

  • Staker coldkey holds sufficient free TAO balance
  • Target validator hotkey is registered on the root subnet
  • Beta basket seed migration is idle (otherwise BetaBasketSeedInProgress)

Fields

NameTypeFormatDescription
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
coldkeyAccountIdSS58 Addresscoldkey: Account address (32 bytes, SS58-encoded)
taoTaoBalance—tao: TAO amount in RAO (÷10⁹ for TAO)
valueTaoBalance—value: TAO amount in RAO (÷10⁹ for TAO)
sharesu64Integershares (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 BasketStakedIn events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.BasketStakedIn.get(block.hash);
  for (const evt of events) {
    console.log("BasketStakedIn:", evt.payload);
  }
});

BasketClaimed

event details

Emitted per validator when a staker redeems their pro-rata slice of that validator's basket.

When it fires

  • Staker has accrued entitlement on that validator
  • Payout clears RootClaimableThreshold
  • claim_root or claim_root_with_hotkey executed
  • From v488 also emitted by the deferred-dividend payout that runs first in a claim (claim_deferred_dividends), when it pays more than zero. One validator can emit the event twice in one claim (pallets/subtensor/src/staking/deferred_dividends.rs L546-L555 and staking/claim_root.rs L974-L978 at d967d1358, runtime v490)

Fields

NameTypeFormatDescription
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
coldkeyAccountIdSS58 Addresscoldkey: Account address (32 bytes, SS58-encoded)
taoTaoBalance—tao: 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 BasketClaimed events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.BasketClaimed.get(block.hash);
  for (const evt of events) {
    console.log("BasketClaimed:", evt.payload);
  }
});

BasketHoldingConverted

event details

Emitted when a basket holding on a dissolving subnet is converted into the fund's root TAO slot.

When it fires

  • A subnet the fund holds alpha on is being dissolved

Fields

NameTypeFormatDescription
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
taoTaoBalance—tao: 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 BasketHoldingConverted events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.BasketHoldingConverted.get(block.hash);
  for (const evt of events) {
    console.log("BasketHoldingConverted:", evt.payload);
  }
});

VotingPowerTrackingEnabled

event details

Voting power tracking has been enabled for a subnet.

Fields

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
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 VotingPowerTrackingEnabled events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.VotingPowerTrackingEnabled.get(block.hash);
  for (const evt of events) {
    console.log("VotingPowerTrackingEnabled:", evt.payload);
  }
});

VotingPowerTrackingDisableScheduled

event details

Voting power tracking has been scheduled for disabling.

Fields

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
disable_at_blocku64Integerdisable_at_block (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 VotingPowerTrackingDisableScheduled events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.VotingPowerTrackingDisableScheduled.get(block.hash);
  for (const evt of events) {
    console.log("VotingPowerTrackingDisableScheduled:", evt.payload);
  }
});

VotingPowerTrackingDisabled

event details

Voting power tracking has been fully disabled and entries cleared.

Fields

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
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 VotingPowerTrackingDisabled events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.VotingPowerTrackingDisabled.get(block.hash);
  for (const evt of events) {
    console.log("VotingPowerTrackingDisabled:", evt.payload);
  }
});

VotingPowerEmaAlphaSet

event details

Voting power EMA alpha has been set for a subnet.

When it fires

  • Caller authorized to make changes

Fields

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
alphau64Integeralpha (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 VotingPowerEmaAlphaSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.VotingPowerEmaAlphaSet.get(block.hash);
  for (const evt of events) {
    console.log("VotingPowerEmaAlphaSet:", evt.payload);
  }
});

SubnetLeaseDividendsDistributed

event details

Emitted when lease dividends are distributed to stakeholders.

When it fires

  • Active lease exists
  • Dividend distribution block reached

Fields

NameTypeFormatDescription
lease_idu32Integerlease_id: Lease identifier
contributorAccountIdSS58 Addresscontributor: Account address (32 bytes, SS58-encoded)
alphaAlphaBalance—alpha: Alpha amount in alpha-RAO (÷10⁹ for alpha)
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 SubnetLeaseDividendsDistributed events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.SubnetLeaseDividendsDistributed.get(block.hash);
  for (const evt of events) {
    console.log("SubnetLeaseDividendsDistributed:", evt.payload);
  }
});

AddStakeBurn

event details

"Add stake and burn" event: alpha token was purchased and burned.

Fields

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
amountTaoBalance—amount: TAO amount in RAO (÷10⁹ for TAO)
alphaAlphaBalance—alpha: Alpha amount in alpha-RAO (÷10⁹ for alpha)
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 AddStakeBurn events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.AddStakeBurn.get(block.hash);
  for (const evt of events) {
    console.log("AddStakeBurn:", evt.payload);
  }
});

NetworkDissolveCleanupCompleted

event details

Emitted when the phased cleanup walk for a dissolved subnet finishes and the subnet's storage is fully cleared.

When it fires

  • The netuid was removed earlier and pushed onto DissolveCleanupQueue
  • Every DissolveCleanupPhase has completed, ending with NetworkAlphaAssetCounters

Fields

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
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 NetworkDissolveCleanupCompleted events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.NetworkDissolveCleanupCompleted.get(block.hash);
  for (const evt of events) {
    console.log("NetworkDissolveCleanupCompleted:", evt.payload);
  }
});

ColdkeySwapCleared

event details

Emitted when a coldkey abandons its own pending swap announcement.

When it fires

  • Caller is the coldkey with the announcement
  • An announcement exists in ColdkeySwapAnnouncements
  • Current block is at least the executable block plus ColdkeySwapReannouncementDelay

Fields

NameTypeFormatDescription
whoAccountIdSS58 Addresswho: 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 ColdkeySwapCleared events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.ColdkeySwapCleared.get(block.hash);
  for (const evt of events) {
    console.log("ColdkeySwapCleared:", evt.payload);
  }
});

TransactionFeePaidWithAlpha

event details

Emitted alongside TransactionFeePaid when a call's fee was paid by selling the payer's alpha instead of debiting free TAO.

When it fires

  • The payer holds alpha on a subnet the fee path selected and holds enough of it to cover the alpha-equivalent fee
  • From v469, that subnet has SubtokenEnabled true, and on root the payer root stake is outside RootStakeUnlockInterval
  • Before v469 neither of those two gates existed, so alpha could pay the fee from a token-disabled subnet or from held root stake

Fields

NameTypeFormatDescription
whoAccountIdSS58 Addresswho: Account address (32 bytes, SS58-encoded)
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
alpha_feeAlphaBalance—alpha_fee: Alpha amount in alpha-RAO (÷10⁹ for alpha)
tao_amountTaoBalance—tao_amount: 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 TransactionFeePaidWithAlpha events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.TransactionFeePaidWithAlpha.get(block.hash);
  for (const evt of events) {
    console.log("TransactionFeePaidWithAlpha:", evt.payload);
  }
});

BurnHalfLifeSet

event details

Burn half-life set for neuron registration.

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.SubtensorModule.BurnHalfLifeSet.get(block.hash);
  for (const evt of events) {
    console.log("BurnHalfLifeSet:", evt.payload);
  }
});

BurnIncreaseMultSet

event details

Emitted when the burn-increase multiplier is updated on a subnet, controlling burn registration cost growth.

When it fires

  • BurnIncreaseMult storage updated for the subnet

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.SubtensorModule.BurnIncreaseMultSet.get(block.hash);
  for (const evt of events) {
    console.log("BurnIncreaseMultSet:", evt.payload);
  }
});

AutoParentDelegationEnabledSet

event details

A root validator toggled the "auto parent delegation" flag.

When it fires

  • Caller authorized to make changes

Fields

NameTypeFormatDescription
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
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 AutoParentDelegationEnabledSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.AutoParentDelegationEnabledSet.get(block.hash);
  for (const evt of events) {
    console.log("AutoParentDelegationEnabledSet:", evt.payload);
  }
});

StakeLocked

event details

Emitted when a coldkey locks alpha stake on a hotkey/subnet.

When it fires

  • lock_stake call succeeded
  • Hotkey is registered on root
  • Coldkey-hotkey association valid

Fields

NameTypeFormatDescription
coldkeyAccountIdSS58 AddressColdkey that locked the stake
hotkeyAccountIdSS58 AddressHotkey the stake is locked to
netuidNetUid—Subnet the lock is on
alpha_amountAlphaBalance—Alpha amount locked (in alpha-RAO; 1 alpha = 10^9 alpha-RAO)
Emitted by: lock_stake
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 StakeLocked events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.StakeLocked.get(block.hash);
  for (const evt of events) {
    console.log("StakeLocked:", evt.payload);
  }
});

StakeUnlocked

event details

Emitted when locked alpha decays out or is released, becoming liquid again.

When it fires

  • Existing lock decayed via UnlockRate or was released explicitly

Fields

NameTypeFormatDescription
coldkeyAccountIdSS58 AddressColdkey whose stake was unlocked
hotkeyAccountIdSS58 AddressHotkey the stake was locked to
netuidNetUid—Subnet the lock was on
alpha_amountAlphaBalance—Alpha amount returned to liquid stake via UnlockRate decay (in alpha-RAO)
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 StakeUnlocked events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.StakeUnlocked.get(block.hash);
  for (const evt of events) {
    console.log("StakeUnlocked:", evt.payload);
  }
});

LockMoved

event details

Emitted when a coldkey moves an existing lock from one hotkey to another on the same subnet.

When it fires

  • move_lock call succeeded
  • A lock existed on the source hotkey/subnet

Fields

NameTypeFormatDescription
coldkeyAccountIdSS58 AddressColdkey that moved the lock
origin_hotkeyAccountIdSS58 AddressHotkey the lock was previously attributed to
destination_hotkeyAccountIdSS58 AddressHotkey the lock is now attributed to
netuidNetUid—Subnet the lock is on
Emitted by: move_lock
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 LockMoved events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.LockMoved.get(block.hash);
  for (const evt of events) {
    console.log("LockMoved:", evt.payload);
  }
});

ActivityCutoffFactorMilliSet

event details

Activity-cutoff factor (per-mille) set on a subnet by its owner.

When it fires

  • Caller authorized to make changes

Fields

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);

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

EpochTriggered

event details

Owner manually triggered an epoch for their subnet.

Fields

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
byAccountIdSS58 Addressby: Account address (32 bytes, SS58-encoded)
fires_atu64Integerfires_at (u64)
Emitted by: trigger_epoch
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 EpochTriggered events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.EpochTriggered.get(block.hash);
  for (const evt of events) {
    console.log("EpochTriggered:", evt.payload);
  }
});

EpochDeferred

event details

An epoch slot was deferred to the next block due to the per-block epoch cap.

Fields

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
from_blocku64Integerfrom_block (u64)
to_blocku64Integerto_block (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 EpochDeferred events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.EpochDeferred.get(block.hash);
  for (const evt of events) {
    console.log("EpochDeferred:", evt.payload);
  }
});

EpochSkipped

event details

Epoch execution skipped by `is_epoch_input_state_consistent` returned false or other errors.

Fields

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
blocku64Integerblock (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 EpochSkipped events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.EpochSkipped.get(block.hash);
  for (const evt of events) {
    console.log("EpochSkipped:", evt.payload);
  }
});

SubnetOwnerChanged

event details

Emitted when subnet ownership transfers to a new coldkey because conviction shifted the lead.

When it fires

  • Conviction tally placed a new coldkey ahead of the previous owner
  • Lock state evaluated at the relevant boundary

Fields

NameTypeFormatDescription
netuidNetUid—Subnet whose ownership transferred
old_coldkeyAccountIdSS58 AddressPrevious subnet owner coldkey
new_coldkeyAccountIdSS58 AddressNew subnet owner coldkey, decided by conviction tally
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 SubnetOwnerChanged events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.SubnetOwnerChanged.get(block.hash);
  for (const evt of events) {
    console.log("SubnetOwnerChanged:", evt.payload);
  }
});

PerpetualLockUpdated

event details

Emitted when a coldkey's perpetual-lock flag flips on or off for a specific subnet.

When it fires

  • set_perpetual_lock call succeeded

Fields

NameTypeFormatDescription
coldkeyAccountIdSS58 AddressColdkey whose perpetual-lock flag was toggled
netuidNetUid—Subnet the flag was toggled on
enabledboolBoolean (true/false)Whether this coldkey's lock is now perpetual (true) or back to normal decay (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 PerpetualLockUpdated events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.PerpetualLockUpdated.get(block.hash);
  for (const evt of events) {
    console.log("PerpetualLockUpdated:", evt.payload);
  }
});

NetworkRegistrationQueued

event details

Emitted when a subnet registration is accepted and deferred because no netuid slot is free yet.

When it fires

  • Active subnet count plus DissolveCleanupQueue length has reached the subnet limit
  • DissolveCleanupQueue is longer than NetworkRegistrationQueue, so a slot is expected to free up
  • The caller paid the network lock

Fields

NameTypeFormatDescription
coldkeyAccountIdSS58 Addresscoldkey: Account address (32 bytes, SS58-encoded)
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
mechidu16Integer (0-65535)mechid (u16)
identityOption—identity (Option)
lock_amountTaoBalance—lock_amount: TAO amount in RAO (÷10⁹ for TAO)
median_subnet_alpha_priceFixedU128—median_subnet_alpha_price: Unsigned substrate-fixed u64.64 via .bits codec (inner u128). Real value = bits / 2^64. Do NOT truncate to u64.
registration_blocku64Integerregistration_block (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 NetworkRegistrationQueued events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.NetworkRegistrationQueued.get(block.hash);
  for (const evt of events) {
    console.log("NetworkRegistrationQueued:", evt.payload);
  }
});

RejectLockedAlphaUpdated

event details

A coldkey's reject locked alpha account flag was updated.

When it fires

  • Caller authorized to make changes

Fields

NameTypeFormatDescription
coldkeyAccountIdSS58 Addresscoldkey: Account address (32 bytes, SS58-encoded)
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 RejectLockedAlphaUpdated events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.RejectLockedAlphaUpdated.get(block.hash);
  for (const evt of events) {
    console.log("RejectLockedAlphaUpdated:", evt.payload);
  }
});

StakeAndHotkeyTransferred

event details

Stake has been transferred from one coldkey to another, landing on a

Fields

NameTypeFormatDescription
origin_coldkeyAccountIdSS58 AddressColdkey the stake left; the signer of transfer_stake_and_hotkey
destination_coldkeyAccountIdSS58 AddressColdkey that now owns the stake
origin_hotkeyAccountIdSS58 AddressHotkey the stake left
destination_hotkeyAccountIdSS58 AddressHotkey the stake landed on
origin_netuidNetUid—Subnet the stake left
destination_netuidNetUid—Subnet the stake landed on; equal to origin_netuid on a same-subnet transfer
tao_equivalentTaoBalance—TAO-equivalent of the move in RAO, the TaoBalance returned by transition_stake_internal. This is NOT the alpha that moved: the extrinsic takes alpha_amount, and that alpha leg is absent from this payload. Do not read this field as an alpha delta. The alpha actually debited and credited is visible only in the StakeRemoved / StakeAdded pair the same call emits.
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 StakeAndHotkeyTransferred events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.StakeAndHotkeyTransferred.get(block.hash);
  for (const evt of events) {
    console.log("StakeAndHotkeyTransferred:", evt.payload);
  }
});

CollateralLocked

event details

Miner collateral was staked and locked (at registration or via

Fields

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
lockedAlphaBalance—locked: Alpha amount in alpha-RAO (÷10⁹ for alpha)
total_lockedAlphaBalance—total_locked: Alpha amount in alpha-RAO (÷10⁹ for alpha)
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 CollateralLocked events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.CollateralLocked.get(block.hash);
  for (const evt of events) {
    console.log("CollateralLocked:", evt.payload);
  }
});

MinCollateralSet

event details

A miner set the self-maintaining collateral floor for a hotkey.

When it fires

  • Caller authorized to make changes

Fields

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
min_lockedAlphaBalance—min_locked: Alpha amount in alpha-RAO (÷10⁹ for alpha)
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 MinCollateralSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.MinCollateralSet.get(block.hash);
  for (const evt of events) {
    console.log("MinCollateralSet:", evt.payload);
  }
});

LiquidAlphaConsensusModeSet

event details

Emitted when a subnet's liquid-alpha consensus mode was updated.

When it fires

  • The caller is the subnet owner or root
  • The subnet's admin window is open
  • The owner rate limit for this hyperparameter allows the change

Fields

NameTypeFormatDescription
netuidNetUid—Subnet whose liquid-alpha consensus mode changed
modeConsensusMode—New consensus mode. Current uses the consensus calculated this epoch, Previous the one the last epoch persisted in ConsensusByMechanism, Auto the previous value at maximum bond penalty and the current value otherwise.
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 LiquidAlphaConsensusModeSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.LiquidAlphaConsensusModeSet.get(block.hash);
  for (const evt of events) {
    console.log("LiquidAlphaConsensusModeSet:", evt.payload);
  }
});

BetaBaselineStamped

event details

Emitted when a fund frozen display baseline is stamped at its first share mint.

When it fires

  • The fund mints its first beta share of this fund life, via a dividend deposit or stake_into_basket
  • A completed BetaIndexSnapshot is present to read index levels from

Fields

NameTypeFormatDescription
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);

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

BasketAlphaWrittenOff

event details

Emitted when basket alpha on a terminally shallow pool is burned instead of sold, because no executable sale exists.

When it fires

  • The fund holds alpha on a subnet whose pool cannot realize even one atomic unit of TAO for it
  • A claim or a dissolution sweep reaches that holding
  • From v488 also: a snapshotted (deferred) dividend whose origin subnet no longer exists is closed (dissolve_deferred_dividend) and its queued alpha cannot be sold (pallets/subtensor/src/staking/deferred_dividends.rs L561-L590 at d967d1358, runtime v490)

Fields

NameTypeFormatDescription
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
alphaAlphaBalance—alpha: Alpha amount in alpha-RAO (÷10⁹ for alpha)
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 BasketAlphaWrittenOff events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.BasketAlphaWrittenOff.get(block.hash);
  for (const evt of events) {
    console.log("BasketAlphaWrittenOff:", evt.payload);
  }
});

SubnetLeaseDividendSkipped

event details

Emitted when a lease contributor's dividend slice could not be transferred this interval.

When it fires

  • A lease dividend distribution or termination settlement attempted to pay the contributor
  • The lease position held less alpha than the amount owed, or the stake transfer failed

Fields

NameTypeFormatDescription
lease_idu32Integerlease_id: Lease identifier
contributorAccountIdSS58 Addresscontributor: Account address (32 bytes, SS58-encoded)
alphaAlphaBalance—alpha: Alpha amount in alpha-RAO (÷10⁹ for alpha)
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 SubnetLeaseDividendSkipped events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.SubnetLeaseDividendSkipped.get(block.hash);
  for (const evt of events) {
    console.log("SubnetLeaseDividendSkipped:", evt.payload);
  }
});

SharePoolDenominatorReconciled

event details

Emitted when a share pool's denominator was rewritten to the sum of its live share rows.

When it fires

  • The one-shot migration migrate_reconcile_share_pools found a pool whose live shares did not sum to TotalHotkeySharesV2

Fields

NameTypeFormatDescription
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
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 SharePoolDenominatorReconciled events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.SharePoolDenominatorReconciled.get(block.hash);
  for (const evt of events) {
    console.log("SharePoolDenominatorReconciled:", evt.payload);
  }
});

BasketSwapped

event details

Emitted when swap_basket, or one leg of swap_basket_many (v470), rebalances a validator beta basket.

When it fires

  • The trade passed every gate and both AMM legs filled within bounds
  • For swap_basket_many, every leg in the call succeeded; the events are deposited in leg order after the last leg commits

Fields

NameTypeFormatDescription
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
origin_netuidNetUid—origin_netuid: Subnet ID (u16, 0-65535)
destination_netuidNetUid—destination_netuid: Subnet ID (u16, 0-65535)
alpha_soldAlphaBalance—alpha_sold: Alpha amount in alpha-RAO (÷10⁹ for alpha)
tao_midTaoBalance—tao_mid: TAO amount in RAO (÷10⁹ for TAO)
alpha_boughtAlphaBalance—alpha_bought: Alpha amount in alpha-RAO (÷10⁹ for alpha)
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 BasketSwapped events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.BasketSwapped.get(block.hash);
  for (const evt of events) {
    console.log("BasketSwapped:", evt.payload);
  }
});

BasketClaimDustSkipped

event details

Emitted when a root claim left some fund rows unsold because they were dust.

When it fires

  • A root claim ran and at least one row matched a dust rule
  • For each such row the claimant slice was worth at most BasketClaimForfeitCapTao at the anchored mark

Fields

NameTypeFormatDescription
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
coldkeyAccountIdSS58 Addresscoldkey: Account address (32 bytes, SS58-encoded)
rowsu32Integerrows (u32)
forfeited_tao_estTaoBalance—forfeited_tao_est: 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 BasketClaimDustSkipped events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.BasketClaimDustSkipped.get(block.hash);
  for (const evt of events) {
    console.log("BasketClaimDustSkipped:", evt.payload);
  }
});

NetworkRegistrationCancelled

event details

Emitted when the queued subnet registration at the head of NetworkRegistrationQueue fails to settle, is refunded and is removed, without creating a subnet.

When it fires

  • The registration was queued earlier (NetworkRegistrationQueued) because no netuid slot was free
  • process_network_registration_queue attempted the head entry in on_idle and settlement failed with any error other than SubnetLimitReached
  • The refund succeeded: the escrow was returned in full, or a pre-v472 balance lock was released

Fields

NameTypeFormatDescription
coldkeyAccountIdSS58 Addresscoldkey: Account address (32 bytes, SS58-encoded)
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
lock_idu32Integerlock_id (u32)
errorDispatchErrorDispatch Errorerror (DispatchError)
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 NetworkRegistrationCancelled events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.NetworkRegistrationCancelled.get(block.hash);
  for (const evt of events) {
    console.log("NetworkRegistrationCancelled:", evt.payload);
  }
});

EpochConsensusSet

event details

Emitted when a subnet's epoch reward algorithm is written, with (netuid, mode).

When it fires

  • AdminUtils.sudo_set_epoch_consensus passed every check for the subnet
  • Fires on every successful call, including one that writes the mode already in force

Fields

NameTypeFormatDescription
netuidNetUid—Subnet whose epoch reward algorithm was written
modeEpochConsensus—Epoch reward algorithm now in force. Yuma (index 0) runs the configured Yuma algorithm; Null (index 1) gives the only validator permit to the largest-stake UID and writes no bonds.
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 EpochConsensusSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.EpochConsensusSet.get(block.hash);
  for (const evt of events) {
    console.log("EpochConsensusSet:", evt.payload);
  }
});

NullUidsPruningProgress

event details

Emitted by every successful sudo_trim_null_uids_batch step with the progress it made.

When it fires

  • The subnet runs Null consensus and the batch passed origin, admin-window, target and immunity checks

Fields

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
targetu16Integer (0-65535)target (u16)
remainingu16Integer (0-65535)remaining (u16)
removedu16Integer (0-65535)removed (u16)
cleared_commitsu32Integercleared_commits (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);

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

RejectStakingHotkeyGrowthUpdated

event details

Emitted when a coldkey sets or clears its opt-out from third-party staking-list growth.

When it fires

  • The coldkey signed set_reject_staking_hotkey_growth

Fields

NameTypeFormatDescription
coldkeyAccountIdSS58 Addresscoldkey: Account address (32 bytes, SS58-encoded)
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 RejectStakingHotkeyGrowthUpdated events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.RejectStakingHotkeyGrowthUpdated.get(block.hash);
  for (const evt of events) {
    console.log("RejectStakingHotkeyGrowthUpdated:", evt.payload);
  }
});

HotkeySwapStakeRetained

event details

Emitted during a single-subnet hotkey swap for each staker whose position stays on the old hotkey because the staker's StakingHotkeys list cannot admit the new one.

When it fires

  • A single-subnet hotkey swap moving stake (keep_stake false) is executing
  • The staker holds non-zero alpha on that subnet under old_hotkey and is not the swapping coldkey
  • The staker list holds neither new_hotkey nor an old_hotkey entry that can be renamed (one that no other position, other-subnet auto-stake or non-root basket claim still needs)
  • The staker list is already at 128 entries, or the staker set set_reject_staking_hotkey_growth

Fields

NameTypeFormatDescription
coldkeyAccountIdSS58 Addresscoldkey: Account address (32 bytes, SS58-encoded)
old_hotkeyAccountIdSS58 Addressold_hotkey: Account address (32 bytes, SS58-encoded)
new_hotkeyAccountIdSS58 Addressnew_hotkey: Account address (32 bytes, SS58-encoded)
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
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 HotkeySwapStakeRetained events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.HotkeySwapStakeRetained.get(block.hash);
  for (const evt of events) {
    console.log("HotkeySwapStakeRetained:", evt.payload);
  }
});

SubnetEmissionWeightsSet

event details

Emitted when a subnet's emission weight vector is written: by the subnet owner or root, and from v490 also when a gamma share leaves the split.

When it fires

  • AdminUtils.sudo_set_subnet_emission_weights passed every vector rule and the root-baseline check
  • From v490 also: AdminUtils.sudo_set_subnet_emission_weights_v2 passed its checks; or AdminUtils.sudo_set_subnet_gamma_emission_whitelisted(target, false), or the dissolution cleanup of a target subnet, removed a gamma share this subnet held. The last two emit once per subnet that held a share of the target, with no call from that subnet owner (pallets/subtensor/src/subnets/emission_weights.rs L598-L714, pallets/admin-utils/src/lib.rs L3052-L3056 and pallets/subtensor/src/subnets/dissolution.rs L463 at d967d1358, runtime v490)

Fields

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
weightsVec<u64>Array of Integerweights (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);

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

TaoUsdPriceFed

event details

Emitted when the TAO/USD oracle stores a price feed. price is the raw feed in gamma units per TAO (10^9 units per US dollar).

When it fires

  • feed_tao_usd_price was signed by the account in TaoUsdPriceOracle
  • price is not zero and no feed was stored earlier in the same block

Fields

NameTypeFormatDescription
tao_usd_priceu64IntegerThe feed as the oracle sent it: gamma units per TAO (10^9 units = 1 US dollar, so 250_000_000_000 is 250 USD per TAO). Mints use the accepted price in TaoUsdPrice, which is at most this value.
Emitted by: feed_tao_usd_price
Modifies: TaoUsdPrice
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 TaoUsdPriceFed events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.TaoUsdPriceFed.get(block.hash);
  for (const evt of events) {
    console.log("TaoUsdPriceFed:", evt.payload);
  }
});

GammaMinted

event details

Emitted when a coldkey mints gamma by burning a subnet's alpha, through mint_gamma (TAO in) or mint_gamma_with_stake (staked alpha in).

When it fires

  • GammaEnabled and SubnetGammaEnabled[netuid] are true and the subnet subtoken is enabled
  • A TAO/USD feed at most 300 blocks old exists
  • The gamma is at least 100_000_000 units (0.1 gamma) and at least the caller min_amount_out
  • The deposit at (netuid, hotkey) is owned by the coldkey, or was opened by this call

Fields

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
coldkeyAccountIdSS58 Addresscoldkey: Account address (32 bytes, SS58-encoded)
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
spenderAccountIdSS58 Addressspender: Account address (32 bytes, SS58-encoded)
daily_spend_capOption—Daily spend cap of the credited deposit after the mint, in gamma units (10^9 units = 1 US dollar); None is no cap.
tao_spentTaoBalance—TAO in RAO taken from the coldkey free balance by mint_gamma: the amount swapped plus the swap fee, after the unspent remainder was refunded. Zero for mint_gamma_with_stake.
alpha_burnedAlphaBalance—Alpha burned on netuid, in alpha-RAO: bought with tao by mint_gamma, taken from the coldkey stake on the origin hotkey by mint_gamma_with_stake.
burned_alpha_tao_valueTaoBalance—TAO value of the burned alpha in RAO: alpha times the lower of SubnetGammaPrice and the spot alpha price, both read before the trade. A valuation, not TAO that moved.
gamma_amountGammaBalance—Gamma credited to the deposit, in gamma units (10^9 units = 1 US dollar): value times the accepted TAO/USD price, divided by 10^9.
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 GammaMinted events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.GammaMinted.get(block.hash);
  for (const evt of events) {
    console.log("GammaMinted:", evt.payload);
  }
});

GammaMoved

event details

Emitted when a coldkey moves gamma between two of its deposits on one subnet.

When it fires

  • move_gamma was signed by the coldkey that owns the origin deposit
  • The amount moved, min(requested, origin balance), is not zero
  • The destination deposit is owned by the same coldkey or was opened by this call

Fields

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
coldkeyAccountIdSS58 Addresscoldkey: Account address (32 bytes, SS58-encoded)
origin_hotkeyAccountIdSS58 Addressorigin_hotkey: Account address (32 bytes, SS58-encoded)
destination_hotkeyAccountIdSS58 Addressdestination_hotkey: Account address (32 bytes, SS58-encoded)
gamma_amountGammaBalance—Gamma moved from the origin deposit to the destination deposit, in gamma units (10^9 units = 1 US dollar): the requested amount capped at the origin balance.
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 GammaMoved events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.GammaMoved.get(block.hash);
  for (const evt of events) {
    console.log("GammaMoved:", evt.payload);
  }
});

GammaDepositClosed

event details

Emitted when a gamma deposit row is removed, by close_gamma_deposit or by a move_gamma that emptied it.

When it fires

  • close_gamma_deposit: the signer owns the deposit and its balance is zero
  • move_gamma: the move took the whole origin balance

Fields

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
coldkeyAccountIdSS58 Addresscoldkey: Account address (32 bytes, SS58-encoded)
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);

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

GammaDepositSpenderSet

event details

Emitted when the owner of a gamma deposit changes the account that may spend it.

When it fires

  • set_gamma_deposit_spender was signed by the coldkey that owns the deposit at (netuid, hotkey)

Fields

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
coldkeyAccountIdSS58 Addresscoldkey: Account address (32 bytes, SS58-encoded)
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
spenderAccountIdSS58 Addressspender: 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 GammaDepositSpenderSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.GammaDepositSpenderSet.get(block.hash);
  for (const evt of events) {
    console.log("GammaDepositSpenderSet:", evt.payload);
  }
});

GammaDepositDailySpendCapSet

event details

Emitted when the owner of a gamma deposit sets or removes its daily spend cap.

When it fires

  • set_gamma_deposit_daily_spend_cap was signed by the coldkey that owns the deposit at (netuid, hotkey)

Fields

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
coldkeyAccountIdSS58 Addresscoldkey: Account address (32 bytes, SS58-encoded)
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
daily_spend_capOption—New daily spend cap of the deposit, in gamma units (10^9 units = 1 US dollar) per 7200 blocks; None is no cap.
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 GammaDepositDailySpendCapSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.GammaDepositDailySpendCapSet.get(block.hash);
  for (const evt of events) {
    console.log("GammaDepositDailySpendCapSet:", evt.payload);
  }
});

GammaSpent

event details

Emitted for each spend_gamma entry that burned gamma from a deposit.

When it fires

  • A deposit exists at (netuid, hotkey) and its spender signed spend_gamma
  • amount is not zero, is at most the deposit balance, and is at most the current daily allowance when the deposit has a cap

Fields

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
coldkeyAccountIdSS58 Addresscoldkey: Account address (32 bytes, SS58-encoded)
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
spenderAccountIdSS58 Addressspender: Account address (32 bytes, SS58-encoded)
gamma_amountGammaBalance—Gamma debited from the deposit and destroyed, in gamma units (10^9 units = 1 US dollar). No balance, stake or deposit is credited.
reference[u8; 32]—32 bytes the spender attached to the spend entry. The chain repeats them here and does not read them.
Emitted by: spend_gamma
Modifies: GammaDeposits
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 GammaSpent events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.GammaSpent.get(block.hash);
  for (const evt of events) {
    console.log("GammaSpent:", evt.payload);
  }
});

GammaSpendSkipped

event details

Emitted for each spend_gamma entry that could not be spent in full. Nothing was debited for that entry and the extrinsic still succeeds.

When it fires

  • spend_gamma passed its call-level checks: the subnet exists and the entry list is not empty
  • The entry failed one check: no deposit at the hotkey, the signer is not its spender, amount is zero, amount exceeds the balance, or amount exceeds the daily allowance

Fields

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
spenderAccountIdSS58 Addressspender: Account address (32 bytes, SS58-encoded)
gamma_amountGammaBalance—Gamma the skipped entry asked to spend, in gamma units (10^9 units = 1 US dollar). Nothing was debited.
reference[u8; 32]—32 bytes the spender attached to the spend entry. The chain repeats them here and does not read them.
reasonDispatchErrorDispatch ErrorThe SubtensorModule error that skipped the entry: GammaDepositDoesNotExist, NotGammaDepositSpender, AmountTooLow, InsufficientGammaBalance or GammaDepositDailySpendCapExceeded.
Emitted by: spend_gamma
Modifies: GammaDeposits
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 GammaSpendSkipped events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.GammaSpendSkipped.get(block.hash);
  for (const evt of events) {
    console.log("GammaSpendSkipped:", evt.payload);
  }
});

ServiceSet

event details

Emitted when set_service stores the service record of a hotkey on a subnet: its url and the spender customers name.

When it fires

  • SubtensorModule.set_service was called with a non-empty url by the coldkey that owns the hotkey
  • The hotkey is registered on the subnet and either holds a validator permit or is the subnet owner hotkey signed for by the subnet owner

Fields

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
urlBoundedVec—url (BoundedVec)
spenderAccountIdSS58 Addressspender: Account address (32 bytes, SS58-encoded)
Emitted by: set_service
Modifies: Services
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 ServiceSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.ServiceSet.get(block.hash);
  for (const evt of events) {
    console.log("ServiceSet:", evt.payload);
  }
});

ServiceRemoved

event details

Emitted when set_service is called with an empty url, removing the service record of a hotkey on a subnet.

When it fires

  • SubtensorModule.set_service was called with an empty url by the coldkey that owns the hotkey
  • The subnet exists

Fields

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
Emitted by: set_service
Modifies: Services
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 ServiceRemoved events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.ServiceRemoved.get(block.hash);
  for (const evt of events) {
    console.log("ServiceRemoved:", evt.payload);
  }
});

SubnetGammaEmissionSet

event details

Emitted when the gamma shares of a subnet are stored: the full list of (target_netuid, share) pairs, each share in u64::MAX parts.

When it fires

  • AdminUtils.sudo_set_subnet_emission_weights_v2 succeeded for the subnet, or
  • a target named in the subnet shares was removed from the gamma emission whitelist by AdminUtils.sudo_set_subnet_gamma_emission_whitelisted, or was dissolved

Fields

NameTypeFormatDescription
netuidNetUid—netuid: Subnet ID (u16, 0-65535)
gamma_sharesVec<(NetUid, u64)>Array of (NetUid, u64)The subnet's whole list of gamma shares after the change, as (target netuid, share) pairs in ascending target order. Each share is a u64 fraction of the subnet emission with u64::MAX = 100%. Empty when the subnet has no gamma share.
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 SubnetGammaEmissionSet events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.SubnetGammaEmissionSet.get(block.hash);
  for (const evt of events) {
    console.log("SubnetGammaEmissionSet:", evt.payload);
  }
});

GammaEmissionMinted

event details

Emitted at a subnet epoch when one of its gamma shares converts: alpha of the paying subnet is sold for TAO, the TAO buys and burns alpha of the target, and gamma is credited to the paying subnet owner on the target.

When it fires

  • The epoch of the paying subnet ran this block and UnconvertedGammaEmission[netuid][target] is non-zero after the allotment
  • The paying subnet subtoken is enabled; the target exists with its subtoken enabled and GammaEnabled and SubnetGammaEnabled[target] true
  • Both subnets have a SubnetFastMovingPrice; the sale fills at or above 98% of the higher of the paying subnet fast and spot prices, and it is sized to the TAO the target pool takes at or below 102% of the lower of the target fast and spot prices (GAMMA_EMISSION_MAX_SLIPPAGE_BPS = 200)
  • The purchase spends exactly the TAO the sale returned
  • The TAO/USD feed is at most 300 blocks old and the gamma is at least 100,000,000 (0.1 gamma)
  • The deposit at (target, hotkey) belongs to coldkey, or none exists and the hotkey is unowned or owned by coldkey

Fields

NameTypeFormatDescription
paying_netuidNetUid—Subnet whose emission paid: its alpha was sold.
target_netuidNetUid—Subnet whose alpha was bought and burned and on which the gamma deposit was credited.
coldkeyAccountIdSS58 Addresscoldkey: Account address (32 bytes, SS58-encoded)
hotkeyAccountIdSS58 Addresshotkey: Account address (32 bytes, SS58-encoded)
spenderAccountIdSS58 Addressspender: Account address (32 bytes, SS58-encoded)
alpha_soldAlphaBalance—Alpha of the paying subnet taken by the sale, in alpha-RAO, swap fee included. UnconvertedGammaEmission[netuid][target] fell by this amount.
tao_convertedTaoBalance—TAO in RAO the sale returned on the paying subnet, all of which the purchase spent on the target (amount swapped plus swap fee).
alpha_burnedAlphaBalance—Alpha of the target subnet bought with tao and burned, in alpha-RAO.
burned_alpha_tao_valueTaoBalance—TAO value of the burned alpha in RAO: alpha times the lower of SubnetGammaPrice and the spot alpha price, both read before the trade. A valuation, not TAO that moved.
gamma_amountGammaBalance—Gamma credited to the deposit, in gamma units (10^9 units = 1 US dollar): value times the accepted TAO/USD price, divided by 10^9.
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 GammaEmissionMinted events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.GammaEmissionMinted.get(block.hash);
  for (const evt of events) {
    console.log("GammaEmissionMinted:", evt.payload);
  }
});

Storage 305

AccountFlags

storage details

MAP ( coldkey ) --> flags | Account-level flags. Defaults to zero.

Modifier: Default Keys: 1 Returns: u128 (Large Integer)

Keys

NameTypeFormatDescription
coldkeyAccountIdSS58 Address—
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 AccountFlags storage
const coldkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.AccountFlags.getValue(coldkey);
console.log("AccountFlags:", result);

AccumulatedLeaseDividends

storage details

Accumulated dividends pending distribution for subnet leases.

Modifier: Default Keys: 1 Returns: AlphaBalance

Keys

NameTypeFormatDescription
lease_idu32Integer—
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 AccumulatedLeaseDividends storage
const lease_id = 0;

const result = await api.query.SubtensorModule.AccumulatedLeaseDividends.getValue(lease_id);
console.log("AccumulatedLeaseDividends:", result);

Active

storage details

Whether neurons are active on a subnet.

Modifier: Default Keys: 1 Returns: Vec<bool> (Array of Boolean (true/false))

Keys

NameTypeFormatDescription
netuidNetUid——
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 Active storage
const netuid = 1;

const result = await api.query.SubtensorModule.Active.getValue(netuid);
console.log("Active:", result);

ActivityCutoff

storage details

Blocks of inactivity before pruning.

Modifier: Default Keys: 1 Returns: u16 (Integer (0-65535))

Keys

NameTypeFormatDescription
netuidNetUid——
Modified by: register_network
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 ActivityCutoff storage
const netuid = 1;

const result = await api.query.SubtensorModule.ActivityCutoff.getValue(netuid);
console.log("ActivityCutoff:", result);

ActivityCutoffFactorMilli

storage details

MAP ( netuid ) --> activity-cutoff factor in per-mille epochs (1/1000 granularity).

Modifier: Default Keys: 1 Returns: u32 (Integer)

Keys

NameTypeFormatDescription
netuidNetUid——
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 ActivityCutoffFactorMilli storage
const netuid = 1;

const result = await api.query.SubtensorModule.ActivityCutoffFactorMilli.getValue(netuid);
console.log("ActivityCutoffFactorMilli:", result);

AdjustmentAlpha

storage details

Alpha for difficulty adjustment algorithm.

Modifier: Default Keys: 1 Returns: u64 (Integer)

Keys

NameTypeFormatDescription
netuidNetUid——
Modified by: register_network
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 AdjustmentAlpha storage
const netuid = 1;

const result = await api.query.SubtensorModule.AdjustmentAlpha.getValue(netuid);
console.log("AdjustmentAlpha:", result);

AdjustmentInterval

storage details

Blocks between difficulty adjustments.

Modifier: Default Keys: 1 Returns: u16 (Integer (0-65535))

Keys

NameTypeFormatDescription
netuidNetUid——
Modified by: register_network
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 AdjustmentInterval storage
const netuid = 1;

const result = await api.query.SubtensorModule.AdjustmentInterval.getValue(netuid);
console.log("AdjustmentInterval:", result);

AdminFreezeWindow

storage details

Window length at tempo end during which admin operations are frozen.

Modifier: Default Keys: 0 Returns: u16 (Integer (0-65535))
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 AdminFreezeWindow storage (no keys - plain value)
const result = await api.query.SubtensorModule.AdminFreezeWindow.getValue();
console.log("AdminFreezeWindow:", result);

AlphaDividendsPerSubnet

storage details

Nominator share of alpha dividends per hotkey per subnet at the last epoch, net of the validator take.

Modifier: Default Keys: 2 Returns: AlphaBalance

Keys

NameTypeFormatDescription
netuidNetUid——
hotkeyAccountIdSS58 Address—
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 AlphaDividendsPerSubnet storage
const netuid = 1;
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.AlphaDividendsPerSubnet.getValue(netuid, hotkey);
console.log("AlphaDividendsPerSubnet:", result);

AlphaShareEpoch

storage details

The pool epoch a share row was last written in.

Modifier: Default Keys: 3 Returns: u64 (Integer)

Keys

NameTypeFormatDescription
hotAccountIdSS58 Address—
coldAccountIdSS58 Address—
netuidNetUid——
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 AlphaShareEpoch storage
const hot = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const cold = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const netuid = 1;

const result = await api.query.SubtensorModule.AlphaShareEpoch.getValue(hot, cold, netuid);
console.log("AlphaShareEpoch:", result);

AlphaSharePoolEpoch

storage details

Generation counter of a hotkey alpha share pool on a subnet.

Modifier: Default Keys: 2 Returns: u64 (Integer)

Keys

NameTypeFormatDescription
hotAccountIdSS58 Address—
netuidNetUid——
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 AlphaSharePoolEpoch storage
const hot = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const netuid = 1;

const result = await api.query.SubtensorModule.AlphaSharePoolEpoch.getValue(hot, netuid);
console.log("AlphaSharePoolEpoch:", result);

AlphaSigmoidSteepness

storage details

Steepness parameter for the alpha sigmoid function per subnet.

Modifier: Default Keys: 1 Returns: i16 (Signed Integer)

Keys

NameTypeFormatDescription
netuidNetUid——
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 AlphaSigmoidSteepness storage
const netuid = 1;

const result = await api.query.SubtensorModule.AlphaSigmoidSteepness.getValue(netuid);
console.log("AlphaSigmoidSteepness:", result);

AlphaV2

storage details

V2 alpha stake per (hotkey, coldkey, netuid), stored as SafeFloat { mantissa, exponent }. Supersedes Alpha at v401.

Modifier: Default Keys: 3 Returns: SafeFloat

Keys

NameTypeFormatDescription
hotAccountIdSS58 Address—
coldAccountIdSS58 Address—
netuidNetUid——
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 AlphaV2 storage
const hot = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const cold = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const netuid = 1;

const result = await api.query.SubtensorModule.AlphaV2.getValue(hot, cold, netuid);
console.log("AlphaV2:", result);

AlphaV2MapLastKey

storage details

Contains last AlphaV2 storage map key to iterate (check first)

Modifier: Default Keys: 0 Returns: 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);

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

AlphaValues

storage details

Alpha low and high bounds per subnet.

Modifier: Default Keys: 1 Returns: (u16, u16)

Keys

NameTypeFormatDescription
netuidNetUid——
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 AlphaValues storage
const netuid = 1;

const result = await api.query.SubtensorModule.AlphaValues.getValue(netuid);
console.log("AlphaValues:", result);

AssociatedEvmAddress

storage details

EVM address associated with a neuron position.

Modifier: Optional Keys: 2 Returns: (H160, u64)

Keys

NameTypeFormatDescription
netuidNetUid——
uidu16Integer (0-65535)—
Modified by: associate_evm_key
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 AssociatedEvmAddress storage
const netuid = 1;
const uid = 0;

const result = await api.query.SubtensorModule.AssociatedEvmAddress.getValue(netuid, uid);
console.log("AssociatedEvmAddress:", result);

AssociatedUidsByEvmAddress

storage details

DMAP (netuid, H160) --> associated UIDs and last block where ownership was proven.

Modifier: Default Keys: 2 Returns: BoundedVec

Keys

NameTypeFormatDescription
netuidNetUid——
H160H160160-bit Hash—
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 AssociatedUidsByEvmAddress storage
const netuid = 1;
const H160 = "0x0000000000000000000000000000000000000000";

const result = await api.query.SubtensorModule.AssociatedUidsByEvmAddress.getValue(netuid, H160);
console.log("AssociatedUidsByEvmAddress:", result);

AutoParentDelegationEnabled

storage details

--- MAP ( hotkey ) --> parent_delegation_enabled

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

Keys

NameTypeFormatDescription
hotkeyAccountIdSS58 Address—
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 AutoParentDelegationEnabled storage
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.AutoParentDelegationEnabled.getValue(hotkey);
console.log("AutoParentDelegationEnabled:", result);

AutoStakeDestination

storage details

Hotkey that receives a coldkey's miner incentive on a subnet, instead of the mining hotkey.

Modifier: Optional Keys: 2 Returns: AccountId (SS58 Address)

Keys

NameTypeFormatDescription
coldAccountIdSS58 Address—
netuidNetUid——
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 AutoStakeDestination storage
const cold = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const netuid = 1;

const result = await api.query.SubtensorModule.AutoStakeDestination.getValue(cold, netuid);
console.log("AutoStakeDestination:", result);

AutoStakeDestinationColdkeys

storage details

Coldkeys using auto-stake on a subnet.

Modifier: Default Keys: 2 Returns: Vec<AccountId> (Array of SS58 Address)

Keys

NameTypeFormatDescription
hotAccountIdSS58 Address—
netuidNetUid——
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 AutoStakeDestinationColdkeys storage
const hot = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const netuid = 1;

const result = await api.query.SubtensorModule.AutoStakeDestinationColdkeys.getValue(hot, netuid);
console.log("AutoStakeDestinationColdkeys:", result);

Axons

storage details

Axon server info for neurons.

Modifier: Optional Keys: 2 Returns: AxonInfo

Keys

NameTypeFormatDescription
netuidNetUid——
hotkeyAccountIdSS58 Address—
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 Axons storage
const netuid = 1;
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.Axons.getValue(netuid, hotkey);
console.log("Axons:", result);

BasketClaimed

storage details

Double map (validator_hotkey, staker_coldkey) to the claimed watermark used to net off entitlement.

Modifier: Default Keys: 2 Returns: i128 (Large Signed Integer)

Keys

NameTypeFormatDescription
validator_hotkeyAccountIdSS58 Address—
staker_coldkeyAccountIdSS58 Address—
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 BasketClaimed storage
const validator_hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const staker_coldkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.BasketClaimed.getValue(validator_hotkey, staker_coldkey);
console.log("BasketClaimed:", result);

BasketClaimForfeitCapTao

storage details

Hard bound, in rao, on what any one skipped slice may be worth.

Modifier: Default Keys: 0 Returns: u64 (Integer)
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 BasketClaimForfeitCapTao storage (no keys - plain value)
const result = await api.query.SubtensorModule.BasketClaimForfeitCapTao.getValue();
console.log("BasketClaimForfeitCapTao:", result);

BasketClaimRowDustBps

storage details

Relative part of the row-dust floor, in basis points of the fund anchored NAV.

Modifier: Default Keys: 0 Returns: u16 (Integer (0-65535))
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 BasketClaimRowDustBps storage (no keys - plain value)
const result = await api.query.SubtensorModule.BasketClaimRowDustBps.getValue();
console.log("BasketClaimRowDustBps:", result);

BasketClaimRowDustCapTao

storage details

Absolute cap, in rao, on the row-dust floor of a root claim.

Modifier: Default Keys: 0 Returns: u64 (Integer)
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 BasketClaimRowDustCapTao storage (no keys - plain value)
const result = await api.query.SubtensorModule.BasketClaimRowDustCapTao.getValue();
console.log("BasketClaimRowDustCapTao:", result);

BasketClaimSliceDustTao

storage details

Rao value below which a root claim leaves its own slice of a row unsold.

Modifier: Default Keys: 0 Returns: u64 (Integer)
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 BasketClaimSliceDustTao storage (no keys - plain value)
const result = await api.query.SubtensorModule.BasketClaimSliceDustTao.getValue();
console.log("BasketClaimSliceDustTao:", result);

BasketConcentrationCap

storage details

Largest u16-normalized share of fund NAV one holding may reach through a swap_basket buy.

Modifier: Default Keys: 0 Returns: u16 (Integer (0-65535))
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 BasketConcentrationCap storage (no keys - plain value)
const result = await api.query.SubtensorModule.BasketConcentrationCap.getValue();
console.log("BasketConcentrationCap:", result);

BasketDailyTurnoverCap

storage details

Capacity of each fund swap_basket turnover bucket as a u16-normalized share of NAV.

Modifier: Default Keys: 0 Returns: u16 (Integer (0-65535))
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 BasketDailyTurnoverCap storage (no keys - plain value)
const result = await api.query.SubtensorModule.BasketDailyTurnoverCap.getValue();
console.log("BasketDailyTurnoverCap:", result);

BasketDepositedTao

storage details

Map (validator_hotkey) to lifetime TAO deposited into the basket.

Modifier: Default Keys: 1 Returns: TaoBalance

Keys

NameTypeFormatDescription
validator_hotkeyAccountIdSS58 Address—
Modified by: stake_into_basket
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 BasketDepositedTao storage
const validator_hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.BasketDepositedTao.getValue(validator_hotkey);
console.log("BasketDepositedTao:", result);

BasketLiquidityCap

storage details

Largest u16-normalized share of a subnet alpha reserve a fund may hold there after a swap_basket buy.

Modifier: Default Keys: 0 Returns: u16 (Integer (0-65535))
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 BasketLiquidityCap storage (no keys - plain value)
const result = await api.query.SubtensorModule.BasketLiquidityCap.getValue();
console.log("BasketLiquidityCap:", result);

BasketLiquidityUsed

storage details

Alpha a fund bought into a subnet within the current refill window, decaying to zero.

Modifier: Optional Keys: 2 Returns: (u64, u64)

Keys

NameTypeFormatDescription
validator_hotkeyAccountIdSS58 Address—
netuidNetUid——
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 BasketLiquidityUsed storage
const validator_hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const netuid = 1;

const result = await api.query.SubtensorModule.BasketLiquidityUsed.getValue(validator_hotkey, netuid);
console.log("BasketLiquidityUsed:", result);

BasketMinTradeTao

storage details

Minimum TAO value in rao through the middle of each swap_basket leg.

Modifier: Default Keys: 0 Returns: u64 (Integer)
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 BasketMinTradeTao storage (no keys - plain value)
const result = await api.query.SubtensorModule.BasketMinTradeTao.getValue();
console.log("BasketMinTradeTao:", result);

BasketRate

storage details

Map (validator_hotkey) to the cumulative fund-shares-per-root-stake accumulator.

Modifier: Default Keys: 1 Returns: FixedI128

Keys

NameTypeFormatDescription
validator_hotkeyAccountIdSS58 Address—
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 BasketRate storage
const validator_hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.BasketRate.getValue(validator_hotkey);
console.log("BasketRate:", result);

BasketRedeemedTao

storage details

Map (validator_hotkey) to lifetime TAO redeemed out of the basket.

Modifier: Default Keys: 1 Returns: TaoBalance

Keys

NameTypeFormatDescription
validator_hotkeyAccountIdSS58 Address—
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 BasketRedeemedTao storage
const validator_hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.BasketRedeemedTao.getValue(validator_hotkey);
console.log("BasketRedeemedTao:", result);

BasketShares

storage details

Map (validator_hotkey) to total fund shares outstanding for that basket.

Modifier: Default Keys: 1 Returns: u64 (Integer)

Keys

NameTypeFormatDescription
validator_hotkeyAccountIdSS58 Address—
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 BasketShares storage
const validator_hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.BasketShares.getValue(validator_hotkey);
console.log("BasketShares:", result);

BasketTradeBucket

storage details

Per-fund swap_basket turnover bucket: TAO available and the block it was last refilled.

Modifier: Optional Keys: 1 Returns: (u64, u64)

Keys

NameTypeFormatDescription
validator_hotkeyAccountIdSS58 Address—
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 BasketTradeBucket storage
const validator_hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.BasketTradeBucket.getValue(validator_hotkey);
console.log("BasketTradeBucket:", result);

BasketTradingEnabled

storage details

Master switch for validator basket trading (swap_basket).

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 BasketTradingEnabled storage (no keys - plain value)
const result = await api.query.SubtensorModule.BasketTradingEnabled.getValue();
console.log("BasketTradingEnabled:", result);

BasketTradingFrozen

storage details

Validator hotkeys whose basket trading governance has frozen.

Modifier: Optional Keys: 1 Returns: ()

Keys

NameTypeFormatDescription
key1AccountIdSS58 Address—
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 BasketTradingFrozen storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

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

BasketTwr

storage details

Map (validator_hotkey) to the fund staker total-return accumulator, the canonical root-staker return series.

Modifier: Default Keys: 1 Returns: FixedU128

Keys

NameTypeFormatDescription
validator_hotkeyAccountIdSS58 Address—
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 BasketTwr storage
const validator_hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.BasketTwr.getValue(validator_hotkey);
console.log("BasketTwr:", result);

BetaBaseline

storage details

Map (validator_hotkey) to the frozen display baseline splicing the fund onto the basket index.

Modifier: Optional Keys: 1 Returns: BetaBaselineOf

Keys

NameTypeFormatDescription
validator_hotkeyAccountIdSS58 Address—
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 BetaBaseline storage
const validator_hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.BetaBaseline.getValue(validator_hotkey);
console.log("BetaBaseline:", result);

BetaIndexFundSample

storage details

Map (validator_hotkey) to the fund last completed index-sweep sample: NAV, display price, and stake price.

Modifier: Optional Keys: 1 Returns: BetaIndexFundSampleOf

Keys

NameTypeFormatDescription
validator_hotkeyAccountIdSS58 Address—
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 BetaIndexFundSample storage
const validator_hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.BetaIndexFundSample.getValue(validator_hotkey);
console.log("BetaIndexFundSample:", result);

BetaIndexSnapshot

storage details

The latest published beta-index levels: display, stake, and the completing block.

Modifier: Optional Keys: 0 Returns: BetaIndexSnapshotOf
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 BetaIndexSnapshot storage (no keys - plain value)
const result = await api.query.SubtensorModule.BetaIndexSnapshot.getValue();
console.log("BetaIndexSnapshot:", result);

BetaIndexSweep

storage details

In-progress state of the paged beta-index sweep; present only mid-pass.

Modifier: Optional Keys: 0 Returns: BetaIndexSweepOf
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 BetaIndexSweep storage (no keys - plain value)
const result = await api.query.SubtensorModule.BetaIndexSweep.getValue();
console.log("BetaIndexSweep:", result);

BlockAtRegistration

storage details

Block number when a neuron registered.

Modifier: Default Keys: 2 Returns: u64 (Integer)

Keys

NameTypeFormatDescription
netuidNetUid——
uidu16Integer (0-65535)—
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 BlockAtRegistration storage
const netuid = 1;
const uid = 0;

const result = await api.query.SubtensorModule.BlockAtRegistration.getValue(netuid, uid);
console.log("BlockAtRegistration:", result);

BlockEmission

storage details

Holds the base emission constant of 1 TAO per block. The rate actually minted each block is derived from total issuance by calculate_block_emission, not read from here.

Modifier: Default Keys: 0 Returns: u64 (Integer)
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 BlockEmission storage (no keys - plain value)
const result = await api.query.SubtensorModule.BlockEmission.getValue();
console.log("BlockEmission:", result);

BlocksSinceLastStep

storage details

Blocks since the last successful epoch run, capped at tempo + 1.

Modifier: Default Keys: 1 Returns: u64 (Integer)

Keys

NameTypeFormatDescription
netuidNetUid——
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 BlocksSinceLastStep storage
const netuid = 1;

const result = await api.query.SubtensorModule.BlocksSinceLastStep.getValue(netuid);
console.log("BlocksSinceLastStep:", result);

Bonds

storage details

Bond values between neurons.

Modifier: Default Keys: 2 Returns: Vec<(u16, u16)> (Array of (u16, u16))

Keys

NameTypeFormatDescription
netuidNetUidStorageIndex——
uidu16Integer (0-65535)—
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 Bonds storage
const netuid = 1;
const uid = 0;

const result = await api.query.SubtensorModule.Bonds.getValue(netuid, uid);
console.log("Bonds:", result);

BondsMovingAverage

storage details

Moving average period for bonds.

Modifier: Default Keys: 1 Returns: u64 (Integer)

Keys

NameTypeFormatDescription
netuidNetUid——
Modified by: register_network
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 BondsMovingAverage storage
const netuid = 1;

const result = await api.query.SubtensorModule.BondsMovingAverage.getValue(netuid);
console.log("BondsMovingAverage:", result);

BondsPenalty

storage details

Penalty factor applied to bonds per subnet.

Modifier: Default Keys: 1 Returns: u16 (Integer (0-65535))

Keys

NameTypeFormatDescription
netuidNetUid——
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 BondsPenalty storage
const netuid = 1;

const result = await api.query.SubtensorModule.BondsPenalty.getValue(netuid);
console.log("BondsPenalty:", result);

BondsResetOn

storage details

Whether bonds reset is enabled for a subnet.

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

Keys

NameTypeFormatDescription
netuidNetUid——
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 BondsResetOn storage
const netuid = 1;

const result = await api.query.SubtensorModule.BondsResetOn.getValue(netuid);
console.log("BondsResetOn:", result);

Burn

storage details

Burn amount for registration.

Modifier: Default Keys: 1 Returns: TaoBalance

Keys

NameTypeFormatDescription
netuidNetUid——
Modified by: burned_register
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 Burn storage
const netuid = 1;

const result = await api.query.SubtensorModule.Burn.getValue(netuid);
console.log("Burn:", result);

BurnHalfLife

storage details

MAP ( netuid ) --> BurnHalfLife (blocks)

Modifier: Default Keys: 1 Returns: u16 (Integer (0-65535))

Keys

NameTypeFormatDescription
netuidNetUid——
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 BurnHalfLife storage
const netuid = 1;

const result = await api.query.SubtensorModule.BurnHalfLife.getValue(netuid);
console.log("BurnHalfLife:", result);

BurnIncreaseMult

storage details

MAP ( netuid ) --> BurnIncreaseMult

Modifier: Default Keys: 1 Returns: FixedU128

Keys

NameTypeFormatDescription
netuidNetUid——
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 BurnIncreaseMult storage
const netuid = 1;

const result = await api.query.SubtensorModule.BurnIncreaseMult.getValue(netuid);
console.log("BurnIncreaseMult:", result);

BurnRegistrationsThisInterval

storage details

Burn registrations in current interval.

Modifier: Default Keys: 1 Returns: u16 (Integer (0-65535))

Keys

NameTypeFormatDescription
netuidNetUid——
Modified by: burned_register
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 BurnRegistrationsThisInterval storage
const netuid = 1;

const result = await api.query.SubtensorModule.BurnRegistrationsThisInterval.getValue(netuid);
console.log("BurnRegistrationsThisInterval:", result);

ChildKeys

storage details

Child hotkeys and proportions for a parent hotkey on a subnet.

Modifier: Default Keys: 2 Returns: Vec<(u64, AccountId)> (Array of (u64, AccountId))

Keys

NameTypeFormatDescription
parentAccountIdSS58 Address—
netuidNetUid——
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 ChildKeys storage
const parent = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const netuid = 1;

const result = await api.query.SubtensorModule.ChildKeys.getValue(parent, netuid);
console.log("ChildKeys:", result);

ChildkeyTake

storage details

Child-hotkey commission fraction on a subnet, encoded as u16. To get the fraction: value / u16::MAX (i.e. value / 65535). NOT basis points (10000) or percent (100).

Modifier: Default Keys: 2 Returns: PerU16

Keys

NameTypeFormatDescription
hotAccountIdSS58 Address—
netuidNetUid——
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 ChildkeyTake storage
const hot = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const netuid = 1;

const result = await api.query.SubtensorModule.ChildkeyTake.getValue(hot, netuid);
console.log("ChildkeyTake:", result);

ChildkeyThresholdChecks

storage details

Queue of parent hotkeys whose stake just changed and need a childkey threshold re-check.

Modifier: Optional Keys: 1 Returns: ()

Keys

NameTypeFormatDescription
parentAccountIdSS58 Address—
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 ChildkeyThresholdChecks storage
const parent = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.ChildkeyThresholdChecks.getValue(parent);
console.log("ChildkeyThresholdChecks:", result);

ChildkeyThresholdSuspended

storage details

Parent hotkeys whose total stake is below StakeThreshold, with their child relations inert.

Modifier: Optional Keys: 1 Returns: ()

Keys

NameTypeFormatDescription
parentAccountIdSS58 Address—
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 ChildkeyThresholdSuspended storage
const parent = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.ChildkeyThresholdSuspended.getValue(parent);
console.log("ChildkeyThresholdSuspended:", result);

CKBurn

storage details

Fraction of a parent dividend share recycled when parent and child hotkeys have different coldkeys, as u64 / u64::MAX.

Modifier: Default Keys: 0 Returns: u64 (Integer)
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 CKBurn storage (no keys - plain value)
const result = await api.query.SubtensorModule.CKBurn.getValue();
console.log("CKBurn:", result);

ColdkeyCollateralHotkeys

storage details

DMAP ( netuid, coldkey ) --> BoundedVec of hotkeys

Modifier: Default Keys: 2 Returns: BoundedVec

Keys

NameTypeFormatDescription
netuidNetUid——
coldkeyAccountIdSS58 Address—
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 ColdkeyCollateralHotkeys storage
const netuid = 1;
const coldkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.ColdkeyCollateralHotkeys.getValue(netuid, coldkey);
console.log("ColdkeyCollateralHotkeys:", result);

ColdkeyGammaHotkeys

storage details

The hotkeys at which a coldkey holds gamma deposits on a subnet. DMAP (netuid, coldkey) → BoundedVec of up to 64 hotkeys.

Modifier: Default Keys: 2 Returns: BoundedVec

Keys

NameTypeFormatDescription
netuidNetUid——
coldkeyAccountIdSS58 Address—
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 ColdkeyGammaHotkeys storage
const netuid = 1;
const coldkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.ColdkeyGammaHotkeys.getValue(netuid, coldkey);
console.log("ColdkeyGammaHotkeys:", result);

ColdkeyMinerCollateral

storage details

MAP ( netuid, coldkey ) --> total locked miner collateral

Modifier: Default Keys: 2 Returns: AlphaBalance

Keys

NameTypeFormatDescription
netuidNetUid——
coldkeyAccountIdSS58 Address—
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 ColdkeyMinerCollateral storage
const netuid = 1;
const coldkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.ColdkeyMinerCollateral.getValue(netuid, coldkey);
console.log("ColdkeyMinerCollateral:", result);

ColdkeyRoot

storage details

Global map from any coldkey to the first coldkey in its swap lineage.

Modifier: Optional Keys: 1 Returns: AccountId (SS58 Address)

Keys

NameTypeFormatDescription
coldkeyAccountIdSS58 Address—
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 ColdkeyRoot storage
const coldkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.ColdkeyRoot.getValue(coldkey);
console.log("ColdkeyRoot:", result);

ColdkeySuccessor

storage details

Global map from an old coldkey to the coldkey that replaced it.

Modifier: Optional Keys: 1 Returns: AccountId (SS58 Address)

Keys

NameTypeFormatDescription
old_coldkeyAccountIdSS58 Address—
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 ColdkeySuccessor storage
const old_coldkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.ColdkeySuccessor.getValue(old_coldkey);
console.log("ColdkeySuccessor:", result);

ColdkeySwapAnnouncementDelay

storage details

Blocks a coldkey swap announcement must wait before it can be executed.

Modifier: Default Keys: 0 Returns: u32 (Integer)
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 ColdkeySwapAnnouncementDelay storage (no keys - plain value)
const result = await api.query.SubtensorModule.ColdkeySwapAnnouncementDelay.getValue();
console.log("ColdkeySwapAnnouncementDelay:", result);

ColdkeySwapAnnouncements

storage details

Pending coldkey swap announcements, keyed by the coldkey being replaced.

Modifier: Optional Keys: 1 Returns: (u32, H256)

Keys

NameTypeFormatDescription
key1AccountIdSS58 Address—
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 ColdkeySwapAnnouncements storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

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

ColdkeySwapDestinationReservations

storage details

Accounts reserved as the destination of an in-flight announce_coldkey_swap_v2 announcement. MAP (destination) → announcer coldkey.

Modifier: Optional Keys: 1 Returns: AccountId (SS58 Address)

Keys

NameTypeFormatDescription
key1AccountIdSS58 Address—
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 ColdkeySwapDestinationReservations storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

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

ColdkeySwapDisputes

storage details

Coldkeys whose pending swap has been disputed, with the block the dispute was raised. From v482 a value of zero is a recovery lock instead.

Modifier: Optional Keys: 1 Returns: u32 (Integer)

Keys

NameTypeFormatDescription
key1AccountIdSS58 Address—
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 ColdkeySwapDisputes storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

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

ColdkeySwapReannouncementDelay

storage details

Blocks after an announcement becomes executable before it may be reannounced or cleared.

Modifier: Default Keys: 0 Returns: u32 (Integer)
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 ColdkeySwapReannouncementDelay storage (no keys - plain value)
const result = await api.query.SubtensorModule.ColdkeySwapReannouncementDelay.getValue();
console.log("ColdkeySwapReannouncementDelay:", result);

ColdkeySwapReservedDestination

storage details

Reverse index of ColdkeySwapDestinationReservations. MAP (announcer coldkey) → reserved destination.

Modifier: Optional Keys: 1 Returns: AccountId (SS58 Address)

Keys

NameTypeFormatDescription
key1AccountIdSS58 Address—
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 ColdkeySwapReservedDestination storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

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

ColdkeySwapV2PolicySnapshots

storage details

Per announcing coldkey, whether its V2 swap may import the source auto-stake policy, decided at announcement. MAP (coldkey) → bool.

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

Keys

NameTypeFormatDescription
key1AccountIdSS58 Address—
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 ColdkeySwapV2PolicySnapshots storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

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

CollateralDrainRatio

storage details

MAP ( netuid ) --> CollateralDrainRatio (k)

Modifier: Default Keys: 1 Returns: FixedU128

Keys

NameTypeFormatDescription
netuidNetUid——
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 CollateralDrainRatio storage
const netuid = 1;

const result = await api.query.SubtensorModule.CollateralDrainRatio.getValue(netuid);
console.log("CollateralDrainRatio:", result);

CollateralLockShare

storage details

MAP ( netuid ) --> CollateralLockShare (p)

Modifier: Default Keys: 1 Returns: u16 (Integer (0-65535))

Keys

NameTypeFormatDescription
netuidNetUid——
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 CollateralLockShare storage
const netuid = 1;

const result = await api.query.SubtensorModule.CollateralLockShare.getValue(netuid);
console.log("CollateralLockShare:", result);

CommitRevealWeightsEnabled

storage details

Whether commit-reveal weights is enabled per subnet.

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

Keys

NameTypeFormatDescription
netuidNetUid——
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 CommitRevealWeightsEnabled storage
const netuid = 1;

const result = await api.query.SubtensorModule.CommitRevealWeightsEnabled.getValue(netuid);
console.log("CommitRevealWeightsEnabled:", result);

CommitRevealWeightsVersion

storage details

Current version of the commit-reveal weights protocol.

Modifier: Default Keys: 0 Returns: u16 (Integer (0-65535))
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 CommitRevealWeightsVersion storage (no keys - plain value)
const result = await api.query.SubtensorModule.CommitRevealWeightsVersion.getValue();
console.log("CommitRevealWeightsVersion:", result);

Consensus

storage details

Consensus scores for neurons on a subnet.

Modifier: Default Keys: 1 Returns: Vec<PerU16> (Array of PerU16)

Keys

NameTypeFormatDescription
netuidNetUid——
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 Consensus storage
const netuid = 1;

const result = await api.query.SubtensorModule.Consensus.getValue(netuid);
console.log("Consensus:", result);

ConsensusByMechanism

storage details

The previous epoch's consensus vector, held per subnet mechanism.

Modifier: Default Keys: 1 Returns: Vec<PerU16> (Array of PerU16)

Keys

NameTypeFormatDescription
netuid storage indexNetUidStorageIndex——
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 ConsensusByMechanism storage
const netuid_storage_index = 1;

const result = await api.query.SubtensorModule.ConsensusByMechanism.getValue(netuid_storage_index);
console.log("ConsensusByMechanism:", result);

CRV3WeightCommits

storage details

Commit-reveal v3 weight commits storage (deprecated, empty at v411).

Modifier: Default Keys: 2 Returns: Vec<(AccountId, BoundedVec, u64)> (Array of (AccountId, BoundedVec, u64))

Keys

NameTypeFormatDescription
netuidNetUidStorageIndex——
epochu64Integer—
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 CRV3WeightCommits storage
const netuid = 1;
const epoch = 0n;

const result = await api.query.SubtensorModule.CRV3WeightCommits.getValue(netuid, epoch);
console.log("CRV3WeightCommits:", result);

CRV3WeightCommitsV2

storage details

Commit-reveal v3.2 weight commits storage (deprecated, empty at v411).

Modifier: Default Keys: 2 Returns: Vec<(AccountId, u64, BoundedVec, u64)> (Array of (AccountId, u64, BoundedVec, u64))

Keys

NameTypeFormatDescription
netuidNetUidStorageIndex——
epochu64Integer—
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 CRV3WeightCommitsV2 storage
const netuid = 1;
const epoch = 0n;

const result = await api.query.SubtensorModule.CRV3WeightCommitsV2.getValue(netuid, epoch);
console.log("CRV3WeightCommitsV2:", result);

CurrentDissolveCleanupStatus

storage details

Cursor for the in-progress subnet dissolution cleanup walk.

Modifier: Optional Keys: 0 Returns: DissolveCleanupStatus
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 CurrentDissolveCleanupStatus storage (no keys - plain value)
const result = await api.query.SubtensorModule.CurrentDissolveCleanupStatus.getValue();
console.log("CurrentDissolveCleanupStatus:", result);

DecayingHotkeyLock

storage details

Total decaying (non-perpetual) lock per hotkey per subnet. DMAP (netuid, hotkey) → LockState.

Modifier: Optional Keys: 2 Returns: LockState

Keys

NameTypeFormatDescription
netuidNetUid——
hotkeyAccountIdSS58 Address—
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 DecayingHotkeyLock storage
const netuid = 1;
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.DecayingHotkeyLock.getValue(netuid, hotkey);
console.log("DecayingHotkeyLock:", result);

DecayingLock

storage details

Marks an individual (coldkey, subnet) lock as decaying. DMAP (coldkey, netuid) → bool. Absence of an entry means the lock decays by default; presence with false means perpetual.

Modifier: Optional Keys: 2 Returns: bool (Boolean (true/false))

Keys

NameTypeFormatDescription
coldkeyAccountIdSS58 Address—
netuidNetUid——
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 DecayingLock storage
const coldkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const netuid = 1;

const result = await api.query.SubtensorModule.DecayingLock.getValue(coldkey, netuid);
console.log("DecayingLock:", result);

DecayingOwnerLock

storage details

Total decaying lock to the owner hotkey for a subnet. MAP (netuid) → LockState.

Modifier: Optional Keys: 1 Returns: LockState

Keys

NameTypeFormatDescription
netuidNetUid——
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 DecayingOwnerLock storage
const netuid = 1;

const result = await api.query.SubtensorModule.DecayingOwnerLock.getValue(netuid);
console.log("DecayingOwnerLock:", result);

DeferredBasketCashClaimed

storage details

Double map (validator_hotkey, staker_coldkey) to the signed i128 watermark, in RAO, of deferred-dividend cash already paid or not owed to the staker.

Modifier: Default Keys: 2 Returns: i128 (Large Signed Integer)

Keys

NameTypeFormatDescription
key1AccountIdSS58 Address—
key2AccountIdSS58 Address—
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 DeferredBasketCashClaimed storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const key2 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.DeferredBasketCashClaimed.getValue(key1, key2);
console.log("DeferredBasketCashClaimed:", result);

DeferredBasketCashRate

storage details

Map (validator_hotkey) to the cumulative TAO per unit of root stake from deferred dividends sold at subnet dissolution, as a signed I64F64.

Modifier: Default Keys: 1 Returns: FixedI128

Keys

NameTypeFormatDescription
key1AccountIdSS58 Address—
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 DeferredBasketCashRate storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

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

DeferredBasketCashReserve

storage details

Map (validator_hotkey) to the TAO, in RAO (u64), from sold deferred dividends that is still owed to the validator root stakers.

Modifier: Default Keys: 1 Returns: u64 (Integer)

Keys

NameTypeFormatDescription
key1AccountIdSS58 Address—
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 DeferredBasketCashReserve storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

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

DeferredBasketConversions

storage details

N-map (validator_hotkey, origin_netuid, generation) to the closing factors of a deferred dividend generation: shares per alpha, cash per alpha and the number of debt rows still to apply it.

Modifier: Optional Keys: 3 Returns: DeferredBasketConversion

Keys

NameTypeFormatDescription
key1AccountIdSS58 Address—
key2NetUid——
key3u64Integer—
// ----------------------------------------------------------------------
// 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 DeferredBasketConversions storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const key2 = undefined as any /* NetUid — replace with real value */;
const key3 = 0n;

const result = await api.query.SubtensorModule.DeferredBasketConversions.getValue(key1, key2, key3);
console.log("DeferredBasketConversions:", result);

DeferredBasketDebts

storage details

Double map (validator_hotkey, staker_coldkey) to a bounded map origin_netuid to { generation, amount }: the signed alpha correction that removes stake changes from a deferred dividend entitlement.

Modifier: Default Keys: 2 Returns: BoundedBTreeMap

Keys

NameTypeFormatDescription
key1AccountIdSS58 Address—
key2AccountIdSS58 Address—
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 DeferredBasketDebts storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const key2 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.DeferredBasketDebts.getValue(key1, key2);
console.log("DeferredBasketDebts:", result);

DeferredBasketGeneration

storage details

Map (validator_hotkey) to the last generation number (u64) assigned to a deferred dividend batch of that hotkey.

Modifier: Default Keys: 1 Returns: u64 (Integer)

Keys

NameTypeFormatDescription
key1AccountIdSS58 Address—
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 DeferredBasketGeneration storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

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

DeferredBasketRates

storage details

Double map (validator_hotkey, origin_netuid) to the open deferred dividend batch: alpha earned per unit of root stake, its generation and the number of staker debt rows against it.

Modifier: Optional Keys: 2 Returns: DeferredBasketState

Keys

NameTypeFormatDescription
key1AccountIdSS58 Address—
key2NetUid——
// ----------------------------------------------------------------------
// 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 DeferredBasketRates storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const key2 = undefined as any /* NetUid — replace with real value */;

const result = await api.query.SubtensorModule.DeferredBasketRates.getValue(key1, key2);
console.log("DeferredBasketRates:", result);

Delegates

storage details

Delegation take for a hotkey, as PerU16 (parts per 65535).

Modifier: Default Keys: 1 Returns: PerU16

Keys

NameTypeFormatDescription
hotAccountIdSS58 Address—
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 Delegates storage
const hot = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.Delegates.getValue(hot);
console.log("Delegates:", result);

Difficulty

storage details

POW difficulty for registration.

Modifier: Default Keys: 1 Returns: u64 (Integer)

Keys

NameTypeFormatDescription
netuidNetUid——
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 Difficulty storage
const netuid = 1;

const result = await api.query.SubtensorModule.Difficulty.getValue(netuid);
console.log("Difficulty:", result);

DissolveCleanupQueue

storage details

Netuids that have been removed but whose storage cleanup has not finished.

Modifier: Default Keys: 0 Returns: Vec<NetUid> (Array of NetUid)
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 DissolveCleanupQueue storage (no keys - plain value)
const result = await api.query.SubtensorModule.DissolveCleanupQueue.getValue();
console.log("DissolveCleanupQueue:", result);

DissolveNetworkScheduleDuration

storage details

Block-count setting that no runtime path reads since v315. Reads 36000 at v454.

Modifier: Default Keys: 0 Returns: u32 (Integer)
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 DissolveNetworkScheduleDuration storage (no keys - plain value)
const result = await api.query.SubtensorModule.DissolveNetworkScheduleDuration.getValue();
console.log("DissolveNetworkScheduleDuration:", result);

Dividends

storage details

Dividend scores for neurons on a subnet.

Modifier: Default Keys: 1 Returns: Vec<PerU16> (Array of PerU16)

Keys

NameTypeFormatDescription
netuidNetUid——
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 Dividends storage
const netuid = 1;

const result = await api.query.SubtensorModule.Dividends.getValue(netuid);
console.log("Dividends:", result);

EMAPriceHalvingBlocks

storage details

Blocks for EMA price to halve per subnet.

Modifier: Default Keys: 1 Returns: u64 (Integer)

Keys

NameTypeFormatDescription
netuidNetUid——
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 EMAPriceHalvingBlocks storage
const netuid = 1;

const result = await api.query.SubtensorModule.EMAPriceHalvingBlocks.getValue(netuid);
console.log("EMAPriceHalvingBlocks:", result);

Emission

storage details

Per-uid emission record of a subnet's last epoch, in alpha rao: MAP (netuid) → Vec<AlphaBalance>.

Modifier: Default Keys: 1 Returns: Vec<AlphaBalance> (Array of AlphaBalance)

Keys

NameTypeFormatDescription
netuidNetUid——
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 Emission storage
const netuid = 1;

const result = await api.query.SubtensorModule.Emission.getValue(netuid);
console.log("Emission:", result);

EmissionBarQuantile

storage details

q, the demand-mass fraction used to place the emission gate bar when EmissionBarRank is zero. ITEM, U64F64.

Modifier: Default Keys: 0 Returns: FixedU128
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 EmissionBarQuantile storage (no keys - plain value)
const result = await api.query.SubtensorModule.EmissionBarQuantile.getValue();
console.log("EmissionBarQuantile:", result);

EmissionBarRank

storage details

Emission bar rank N. When non-zero, the gate bar θ is set to the Nth-largest positive demand share at each recompute.

Modifier: Default Keys: 0 Returns: u16 (Integer (0-65535))
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 EmissionBarRank storage (no keys - plain value)
const result = await api.query.SubtensorModule.EmissionBarRank.getValue();
console.log("EmissionBarRank:", result);

EmissionGateBar

storage details

θ, the demand-share threshold the Hill emission gate is centred on. ITEM, U64F64. Zero means not yet computed and disables the gate.

Modifier: Default Keys: 0 Returns: FixedU128
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 EmissionGateBar storage (no keys - plain value)
const result = await api.query.SubtensorModule.EmissionGateBar.getValue();
console.log("EmissionGateBar:", result);

EmissionGateExponent

storage details

h, the steepness of the Hill emission gate. ITEM, U64F64. Governance-set.

Modifier: Default Keys: 0 Returns: FixedU128
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 EmissionGateExponent storage (no keys - plain value)
const result = await api.query.SubtensorModule.EmissionGateExponent.getValue();
console.log("EmissionGateExponent:", result);

FirstEmissionBlockNumber

storage details

Block number of first emission for a subnet.

Modifier: Optional Keys: 1 Returns: u64 (Integer)

Keys

NameTypeFormatDescription
netuidNetUid——
Modified by: start_call
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 FirstEmissionBlockNumber storage
const netuid = 1;

const result = await api.query.SubtensorModule.FirstEmissionBlockNumber.getValue(netuid);
console.log("FirstEmissionBlockNumber:", result);

FlowEmaSmoothingFactor

storage details

EMA weight for the TAO-flow accumulators, as u64 / i64::MAX. Unread on the emission path since v421.

Modifier: Default Keys: 0 Returns: u64 (Integer)
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 FlowEmaSmoothingFactor storage (no keys - plain value)
const result = await api.query.SubtensorModule.FlowEmaSmoothingFactor.getValue();
console.log("FlowEmaSmoothingFactor:", result);

FlowNormExponent

storage details

Power exponent p of the TAO-flow allocator. Present since v334; unread on the emission path since v421.

Modifier: Default Keys: 0 Returns: FixedU128
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 FlowNormExponent storage (no keys - plain value)
const result = await api.query.SubtensorModule.FlowNormExponent.getValue();
console.log("FlowNormExponent:", result);

GammaDeposits

storage details

Gamma balances. DMAP (netuid, hotkey) → GammaDeposit { coldkey, spender, balance, daily_spend_cap }. One deposit per hotkey per subnet.

Modifier: Optional Keys: 2 Returns: GammaDeposit

Keys

NameTypeFormatDescription
netuidNetUid——
hotkeyAccountIdSS58 Address—
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 GammaDeposits storage
const netuid = 1;
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.GammaDeposits.getValue(netuid, hotkey);
console.log("GammaDeposits:", result);

GammaEnabled

storage details

Network-wide switch for gamma minting. ITEM bool, source default false.

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 GammaEnabled storage (no keys - plain value)
const result = await api.query.SubtensorModule.GammaEnabled.getValue();
console.log("GammaEnabled:", result);

HasMigrationRun

storage details

Tracks which migrations have been executed.

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

Keys

NameTypeFormatDescription
key1Vec<u8>Array of Integer (0-255)—
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 HasMigrationRun storage
const key1 = Binary.fromOpaque(new Uint8Array(0));

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

HotkeyLock

storage details

Total non-owner lock per hotkey per subnet. DMAP (subnet, hotkey) → LockState.

Modifier: Optional Keys: 2 Returns: LockState

Keys

NameTypeFormatDescription
netuidNetUid——
hotkeyAccountIdSS58 Address—
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 HotkeyLock storage
const netuid = 1;
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.HotkeyLock.getValue(netuid, hotkey);
console.log("HotkeyLock:", result);

HotkeyRoot

storage details

DMap ( netuid, hotkey ) --> root_hotkey | first hotkey in this subnet's

Modifier: Optional Keys: 2 Returns: AccountId (SS58 Address)

Keys

NameTypeFormatDescription
key1NetUid——
key2AccountIdSS58 Address—
// ----------------------------------------------------------------------
// 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 HotkeyRoot storage
const key1 = undefined as any /* NetUid — replace with real value */;
const key2 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.HotkeyRoot.getValue(key1, key2);
console.log("HotkeyRoot:", result);

HotkeySuccessor

storage details

DMap ( netuid, old_hotkey ) --> new_hotkey | hotkey swap successor on a subnet.

Modifier: Optional Keys: 2 Returns: AccountId (SS58 Address)

Keys

NameTypeFormatDescription
key1NetUid——
key2AccountIdSS58 Address—
// ----------------------------------------------------------------------
// 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 HotkeySuccessor storage
const key1 = undefined as any /* NetUid — replace with real value */;
const key2 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.HotkeySuccessor.getValue(key1, key2);
console.log("HotkeySuccessor:", result);

HotkeySwapBasketCredits

storage details

Set of (coldkey, hotkey) root fund associations a single-subnet root hotkey swap left behind, claimable without a StakingHotkeys entry.

Modifier: Optional Keys: 2 Returns: ()

Keys

NameTypeFormatDescription
key1AccountIdSS58 Address—
key2AccountIdSS58 Address—
Modified by: swap_hotkey
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 HotkeySwapBasketCredits storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const key2 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.HotkeySwapBasketCredits.getValue(key1, key2);
console.log("HotkeySwapBasketCredits:", result);

IdentitiesV2

storage details

Identity metadata for coldkey accounts (v2).

Modifier: Optional Keys: 1 Returns: ChainIdentityV2

Keys

NameTypeFormatDescription
key1AccountIdSS58 Address—
Modified by: set_identity
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 IdentitiesV2 storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

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

ImmuneOwnerUidsLimit

storage details

Maximum UIDs a subnet owner can make immune from pruning.

Modifier: Default Keys: 1 Returns: u16 (Integer (0-65535))

Keys

NameTypeFormatDescription
netuidNetUid——
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 ImmuneOwnerUidsLimit storage
const netuid = 1;

const result = await api.query.SubtensorModule.ImmuneOwnerUidsLimit.getValue(netuid);
console.log("ImmuneOwnerUidsLimit:", result);

ImmunityPeriod

storage details

Immunity period for new neurons (blocks).

Modifier: Default Keys: 1 Returns: u16 (Integer (0-65535))

Keys

NameTypeFormatDescription
netuidNetUid——
Modified by: register_network
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 ImmunityPeriod storage
const netuid = 1;

const result = await api.query.SubtensorModule.ImmunityPeriod.getValue(netuid);
console.log("ImmunityPeriod:", result);

Incentive

storage details

Incentive scores for neurons on a subnet.

Modifier: Default Keys: 1 Returns: Vec<PerU16> (Array of PerU16)

Keys

NameTypeFormatDescription
netuidNetUidStorageIndex——
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 Incentive storage
const netuid = 1;

const result = await api.query.SubtensorModule.Incentive.getValue(netuid);
console.log("Incentive:", result);

IsNetworkMember

storage details

Whether a hotkey is registered on a subnet.

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

Keys

NameTypeFormatDescription
hotkeyAccountIdSS58 Address—
netuidNetUid——
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 IsNetworkMember storage
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const netuid = 1;

const result = await api.query.SubtensorModule.IsNetworkMember.getValue(hotkey, netuid);
console.log("IsNetworkMember:", result);

Kappa

storage details

Kappa parameter for consensus.

Modifier: Default Keys: 1 Returns: u16 (Integer (0-65535))

Keys

NameTypeFormatDescription
netuidNetUid——
Modified by: register_network
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 Kappa storage
const netuid = 1;

const result = await api.query.SubtensorModule.Kappa.getValue(netuid);
console.log("Kappa:", result);

Keys

storage details

Hotkey at a specific UID on a subnet.

Modifier: Default Keys: 2 Returns: AccountId (SS58 Address)

Keys

NameTypeFormatDescription
netuidNetUid——
uidu16Integer (0-65535)—
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 Keys storage
const netuid = 1;
const uid = 0;

const result = await api.query.SubtensorModule.Keys.getValue(netuid, uid);
console.log("Keys:", result);

LargestLocked

storage details

Per-subnet u64 written only at genesis and removed on dissolution. Reads 0 on subnets 1, 3, 64 and 100 at v454.

Modifier: Default Keys: 1 Returns: u64 (Integer)

Keys

NameTypeFormatDescription
netuidNetUid——
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 LargestLocked storage
const netuid = 1;

const result = await api.query.SubtensorModule.LargestLocked.getValue(netuid);
console.log("LargestLocked:", result);

LastAdjustmentBlock

storage details

Block of last difficulty/burn adjustment per subnet.

Modifier: Default Keys: 1 Returns: u64 (Integer)

Keys

NameTypeFormatDescription
netuidNetUid——
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 LastAdjustmentBlock storage
const netuid = 1;

const result = await api.query.SubtensorModule.LastAdjustmentBlock.getValue(netuid);
console.log("LastAdjustmentBlock:", result);

LastColdkeyHotkeyStakeBlock

storage details

Block when stake was last added/removed for a coldkey-hotkey pair.

Modifier: Optional Keys: 2 Returns: u64 (Integer)

Keys

NameTypeFormatDescription
coldkeyAccountIdSS58 Address—
hotkeyAccountIdSS58 Address—
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 LastColdkeyHotkeyStakeBlock storage
const coldkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.LastColdkeyHotkeyStakeBlock.getValue(coldkey, hotkey);
console.log("LastColdkeyHotkeyStakeBlock:", result);

LastEpochBlock

storage details

Block at which the subnet last consumed an epoch slot, run or skipped.

Modifier: Default Keys: 1 Returns: u64 (Integer)

Keys

NameTypeFormatDescription
netuidNetUid——
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 LastEpochBlock storage
const netuid = 1;

const result = await api.query.SubtensorModule.LastEpochBlock.getValue(netuid);
console.log("LastEpochBlock:", result);

LastHotkeyEmissionOnNetuid

storage details

Block of last emission received by a hotkey on a subnet.

Modifier: Default Keys: 2 Returns: AlphaBalance

Keys

NameTypeFormatDescription
key1AccountIdSS58 Address—
key2NetUid——
// ----------------------------------------------------------------------
// 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 LastHotkeyEmissionOnNetuid storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const key2 = undefined as any /* NetUid — replace with real value */;

const result = await api.query.SubtensorModule.LastHotkeyEmissionOnNetuid.getValue(key1, key2);
console.log("LastHotkeyEmissionOnNetuid:", result);

LastHotkeySwapOnNetuid

storage details

Block of last hotkey swap on a subnet.

Modifier: Default Keys: 2 Returns: u64 (Integer)

Keys

NameTypeFormatDescription
key1NetUid——
key2AccountIdSS58 Address—
Modified by: swap_hotkey
// ----------------------------------------------------------------------
// 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 LastHotkeySwapOnNetuid storage
const key1 = undefined as any /* NetUid — replace with real value */;
const key2 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.LastHotkeySwapOnNetuid.getValue(key1, key2);
console.log("LastHotkeySwapOnNetuid:", result);

LastMechansimStepBlock

storage details

Last block when emission mechanism stepped.

Modifier: Default Keys: 1 Returns: u64 (Integer)

Keys

NameTypeFormatDescription
netuidNetUid——
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 LastMechansimStepBlock storage
const netuid = 1;

const result = await api.query.SubtensorModule.LastMechansimStepBlock.getValue(netuid);
console.log("LastMechansimStepBlock:", result);

LastPowRegistrationBlock

storage details

Per hotkey, the work_block of its last accepted pow_register proof.

Modifier: Optional Keys: 1 Returns: u64 (Integer)

Keys

NameTypeFormatDescription
key1AccountIdSS58 Address—
Modified by: pow_register
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 LastPowRegistrationBlock storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

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

LastRateLimitedBlock

storage details

Block of last rate-limited operation by key type.

Modifier: Default Keys: 1 Returns: u64 (Integer)

Keys

NameTypeFormatDescription
RateLimitKeyRateLimitKey——
// ----------------------------------------------------------------------
// 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 LastRateLimitedBlock storage
const RateLimitKey = undefined as any /* RateLimitKey — replace with real value */;

const result = await api.query.SubtensorModule.LastRateLimitedBlock.getValue(RateLimitKey);
console.log("LastRateLimitedBlock:", result);

LastTxBlock

storage details

Block of last transaction for an account.

Modifier: Default Keys: 1 Returns: u64 (Integer)

Keys

NameTypeFormatDescription
key1AccountIdSS58 Address—
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 LastTxBlock storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

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

LastTxBlockChildKeyTake

storage details

Block of last childkey take change for an account.

Modifier: Default Keys: 1 Returns: u64 (Integer)

Keys

NameTypeFormatDescription
keyAccountIdSS58 Address—
Modified by: set_childkey_take
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 LastTxBlockChildKeyTake storage
const key = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.LastTxBlockChildKeyTake.getValue(key);
console.log("LastTxBlockChildKeyTake:", result);

LastTxBlockDelegateTake

storage details

Block of last delegate take change for an account.

Modifier: Default Keys: 1 Returns: u64 (Integer)

Keys

NameTypeFormatDescription
key1AccountIdSS58 Address—
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 LastTxBlockDelegateTake storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

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

LastUpdate

storage details

Block number of last weight update for a neuron.

Modifier: Default Keys: 1 Returns: Vec<u64> (Array of Integer)

Keys

NameTypeFormatDescription
netuidNetUidStorageIndex——
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 LastUpdate storage
const netuid = 1;

const result = await api.query.SubtensorModule.LastUpdate.getValue(netuid);
console.log("LastUpdate:", result);

LastYumaStepBlock

storage details

Per subnet, the block of the last epoch step that ran Yuma and updated bonds.

Modifier: Optional Keys: 1 Returns: u64 (Integer)

Keys

NameTypeFormatDescription
key1NetUid——
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 LastYumaStepBlock storage
const key1 = 0;

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

LiquidAlphaConsensusMode

storage details

Which consensus vector liquid alpha uses when it prices bonds on a subnet.

Modifier: Default Keys: 1 Returns: ConsensusMode

Keys

NameTypeFormatDescription
key1NetUid——
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 LiquidAlphaConsensusMode storage
const key1 = 0;

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

LiquidAlphaOn

storage details

Whether Liquid Alpha is enabled per subnet.

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

Keys

NameTypeFormatDescription
netuidNetUid——
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 LiquidAlphaOn storage
const netuid = 1;

const result = await api.query.SubtensorModule.LiquidAlphaOn.getValue(netuid);
console.log("LiquidAlphaOn:", result);

LoadedEmission

storage details

Preloaded emission data for a subnet.

Modifier: Optional Keys: 1 Returns: Vec<(AccountId, u64, u64)> (Array of (AccountId, u64, u64))

Keys

NameTypeFormatDescription
netuidNetUid——
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 LoadedEmission storage
const netuid = 1;

const result = await api.query.SubtensorModule.LoadedEmission.getValue(netuid);
console.log("LoadedEmission:", result);

Lock

storage details

Per-coldkey per-subnet per-hotkey lock state. DMAP (coldkey, subnet, hotkey) → LockState.

Modifier: Optional Keys: 3 Returns: LockState

Keys

NameTypeFormatDescription
coldkeyAccountIdSS58 Address—
netuidNetUid——
hotkeyAccountIdSS58 Address—
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 Lock storage
const coldkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const netuid = 1;
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.Lock.getValue(coldkey, netuid, hotkey);
console.log("Lock:", result);

LockingColdkeys

storage details

NMAP ( netuid, hotkey, coldkey ) --> () | Reverse index for non-zero locks targeting this hotkey on this subnet.

Modifier: Optional Keys: 3 Returns: ()

Keys

NameTypeFormatDescription
netuidNetUid——
hotkeyAccountIdSS58 Address—
coldkeyAccountIdSS58 Address—
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 LockingColdkeys storage
const netuid = 1;
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const coldkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.LockingColdkeys.getValue(netuid, hotkey, coldkey);
console.log("LockingColdkeys:", result);

MaturityRate

storage details

Decay timescale in blocks for lock conviction. ITEM, default ~90 days.

Modifier: Default Keys: 0 Returns: u64 (Integer)
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 MaturityRate storage (no keys - plain value)
const result = await api.query.SubtensorModule.MaturityRate.getValue();
console.log("MaturityRate:", result);

MaxAllowedUids

storage details

Maximum neurons allowed on subnet.

Modifier: Default Keys: 1 Returns: u16 (Integer (0-65535))

Keys

NameTypeFormatDescription
netuidNetUid——
Modified by: register_network
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 MaxAllowedUids storage
const netuid = 1;

const result = await api.query.SubtensorModule.MaxAllowedUids.getValue(netuid);
console.log("MaxAllowedUids:", result);

MaxAllowedValidators

storage details

Maximum validators on a subnet.

Modifier: Default Keys: 1 Returns: u16 (Integer (0-65535))

Keys

NameTypeFormatDescription
netuidNetUid——
Modified by: register_network
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 MaxAllowedValidators storage
const netuid = 1;

const result = await api.query.SubtensorModule.MaxAllowedValidators.getValue(netuid);
console.log("MaxAllowedValidators:", result);

MaxBurn

storage details

Maximum burn for registration.

Modifier: Default Keys: 1 Returns: TaoBalance

Keys

NameTypeFormatDescription
netuidNetUid——
Modified by: register_network
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 MaxBurn storage
const netuid = 1;

const result = await api.query.SubtensorModule.MaxBurn.getValue(netuid);
console.log("MaxBurn:", result);

MaxChildkeyTake

storage details

Maximum allowed child key take rate.

Modifier: Default Keys: 0 Returns: PerU16
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 MaxChildkeyTake storage (no keys - plain value)
const result = await api.query.SubtensorModule.MaxChildkeyTake.getValue();
console.log("MaxChildkeyTake:", result);

MaxDelegateTake

storage details

Maximum allowed delegate take rate.

Modifier: Default Keys: 0 Returns: PerU16
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 MaxDelegateTake storage (no keys - plain value)
const result = await api.query.SubtensorModule.MaxDelegateTake.getValue();
console.log("MaxDelegateTake:", result);

MaxDifficulty

storage details

Maximum POW difficulty.

Modifier: Default Keys: 1 Returns: u64 (Integer)

Keys

NameTypeFormatDescription
netuidNetUid——
Modified by: register_network
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 MaxDifficulty storage
const netuid = 1;

const result = await api.query.SubtensorModule.MaxDifficulty.getValue(netuid);
console.log("MaxDifficulty:", result);

MaxEpochsPerBlock

storage details

Cap on how many subnet epochs may run in a single block.

Modifier: Default Keys: 0 Returns: u8 (Integer (0-255))
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 MaxEpochsPerBlock storage (no keys - plain value)
const result = await api.query.SubtensorModule.MaxEpochsPerBlock.getValue();
console.log("MaxEpochsPerBlock:", result);

MaxMechanismCount

storage details

ITEM( max_mechanism_count )

Modifier: Default Keys: 0 Returns: MechId
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 MaxMechanismCount storage (no keys - plain value)
const result = await api.query.SubtensorModule.MaxMechanismCount.getValue();
console.log("MaxMechanismCount:", result);

MaxRegistrationsPerBlock

storage details

Maximum registrations allowed per block.

Modifier: Default Keys: 1 Returns: u16 (Integer (0-65535))

Keys

NameTypeFormatDescription
key1NetUid——
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 MaxRegistrationsPerBlock storage
const key1 = 0;

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

MaxWeightsLimit

storage details

Per-subnet u16 that no runtime path reads or writes since v334. Reads 65535 on subnet 1 at v454.

Modifier: Default Keys: 1 Returns: u16 (Integer (0-65535))

Keys

NameTypeFormatDescription
netuidNetUid——
Modified by: register_network
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 MaxWeightsLimit storage
const netuid = 1;

const result = await api.query.SubtensorModule.MaxWeightsLimit.getValue(netuid);
console.log("MaxWeightsLimit:", result);

MechanismCountCurrent

storage details

Current number of mechanisms active on a subnet.

Modifier: Default Keys: 1 Returns: MechId

Keys

NameTypeFormatDescription
netuidNetUid——
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 MechanismCountCurrent storage
const netuid = 1;

const result = await api.query.SubtensorModule.MechanismCountCurrent.getValue(netuid);
console.log("MechanismCountCurrent:", result);

MechanismEmissionSplit

storage details

Emission distribution ratios between mechanisms per subnet.

Modifier: Optional Keys: 1 Returns: Vec<u16> (Array of Integer (0-65535))

Keys

NameTypeFormatDescription
netuidNetUid——
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 MechanismEmissionSplit storage
const netuid = 1;

const result = await api.query.SubtensorModule.MechanismEmissionSplit.getValue(netuid);
console.log("MechanismEmissionSplit:", result);

MinActivityCutoff

storage details

Minimum activity required for neurons to remain registered.

Modifier: Default Keys: 0 Returns: u16 (Integer (0-65535))
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 MinActivityCutoff storage (no keys - plain value)
const result = await api.query.SubtensorModule.MinActivityCutoff.getValue();
console.log("MinActivityCutoff:", result);

MinAllowedUids

storage details

Minimum UIDs a subnet must maintain.

Modifier: Default Keys: 1 Returns: u16 (Integer (0-65535))

Keys

NameTypeFormatDescription
netuidNetUid——
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 MinAllowedUids storage
const netuid = 1;

const result = await api.query.SubtensorModule.MinAllowedUids.getValue(netuid);
console.log("MinAllowedUids:", result);

MinAllowedWeights

storage details

Minimum weights a validator must set.

Modifier: Default Keys: 1 Returns: u16 (Integer (0-65535))

Keys

NameTypeFormatDescription
netuidNetUid——
Modified by: register_network
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 MinAllowedWeights storage
const netuid = 1;

const result = await api.query.SubtensorModule.MinAllowedWeights.getValue(netuid);
console.log("MinAllowedWeights:", result);

MinBurn

storage details

Minimum burn for registration.

Modifier: Default Keys: 1 Returns: TaoBalance

Keys

NameTypeFormatDescription
netuidNetUid——
Modified by: register_network
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 MinBurn storage
const netuid = 1;

const result = await api.query.SubtensorModule.MinBurn.getValue(netuid);
console.log("MinBurn:", result);

MinChildkeyTake

storage details

Minimum allowed child key take rate.

Modifier: Default Keys: 0 Returns: PerU16
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 MinChildkeyTake storage (no keys - plain value)
const result = await api.query.SubtensorModule.MinChildkeyTake.getValue();
console.log("MinChildkeyTake:", result);

MinChildkeyTakePerSubnet

storage details

Per-subnet minimum child-key take floor. MAP (netuid) → u16.

Modifier: Default Keys: 1 Returns: PerU16

Keys

NameTypeFormatDescription
netuidNetUid——
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 MinChildkeyTakePerSubnet storage
const netuid = 1;

const result = await api.query.SubtensorModule.MinChildkeyTakePerSubnet.getValue(netuid);
console.log("MinChildkeyTakePerSubnet:", result);

MinDelegateTake

storage details

Minimum allowed delegate take rate.

Modifier: Default Keys: 0 Returns: PerU16
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 MinDelegateTake storage (no keys - plain value)
const result = await api.query.SubtensorModule.MinDelegateTake.getValue();
console.log("MinDelegateTake:", result);

MinDifficulty

storage details

Minimum POW difficulty.

Modifier: Default Keys: 1 Returns: u64 (Integer)

Keys

NameTypeFormatDescription
netuidNetUid——
Modified by: register_network
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 MinDifficulty storage
const netuid = 1;

const result = await api.query.SubtensorModule.MinDifficulty.getValue(netuid);
console.log("MinDifficulty:", result);

MinerBurned

storage details

Fraction of the last epoch miner incentive withheld from miners because it was assigned to owner hotkeys.

Modifier: Default Keys: 1 Returns: FixedU128

Keys

NameTypeFormatDescription
netuidNetUid——
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 MinerBurned storage
const netuid = 1;

const result = await api.query.SubtensorModule.MinerBurned.getValue(netuid);
console.log("MinerBurned:", result);

MinerCollateral

storage details

Registration collateral state for a (netuid, hotkey, coldkey) stake position.

Modifier: Optional Keys: 3 Returns: MinerCollateralState

Keys

NameTypeFormatDescription
netuidNetUid——
hotkeyAccountIdSS58 Address—
coldkeyAccountIdSS58 Address—
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 MinerCollateral storage
const netuid = 1;
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const coldkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.MinerCollateral.getValue(netuid, hotkey, coldkey);
console.log("MinerCollateral:", result);

MinNonImmuneUids

storage details

Minimum non-immune UIDs required per subnet.

Modifier: Default Keys: 1 Returns: u16 (Integer (0-65535))

Keys

NameTypeFormatDescription
netuidNetUid——
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 MinNonImmuneUids storage
const netuid = 1;

const result = await api.query.SubtensorModule.MinNonImmuneUids.getValue(netuid);
console.log("MinNonImmuneUids:", result);

NetTaoFlowEnabled

storage details

Global toggle for net TAO flow accounting. ITEM, bool. Read only by dead code since v421.

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 NetTaoFlowEnabled storage (no keys - plain value)
const result = await api.query.SubtensorModule.NetTaoFlowEnabled.getValue();
console.log("NetTaoFlowEnabled:", result);

NetworkImmunityPeriod

storage details

Immunity period for new subnets.

Modifier: Default Keys: 0 Returns: u64 (Integer)
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 NetworkImmunityPeriod storage (no keys - plain value)
const result = await api.query.SubtensorModule.NetworkImmunityPeriod.getValue();
console.log("NetworkImmunityPeriod:", result);

NetworkLastLockCost

storage details

Last subnet creation lock cost.

Modifier: Default Keys: 0 Returns: TaoBalance
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 NetworkLastLockCost storage (no keys - plain value)
const result = await api.query.SubtensorModule.NetworkLastLockCost.getValue();
console.log("NetworkLastLockCost:", result);

NetworkLockReductionInterval

storage details

Blocks between lock cost reductions.

Modifier: Default Keys: 0 Returns: u64 (Integer)
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 NetworkLockReductionInterval storage (no keys - plain value)
const result = await api.query.SubtensorModule.NetworkLockReductionInterval.getValue();
console.log("NetworkLockReductionInterval:", result);

NetworkMinLockCost

storage details

Minimum TAO lock to create subnet.

Modifier: Default Keys: 0 Returns: TaoBalance
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 NetworkMinLockCost storage (no keys - plain value)
const result = await api.query.SubtensorModule.NetworkMinLockCost.getValue();
console.log("NetworkMinLockCost:", result);

NetworkPowRegistrationAllowed

storage details

Whether PoW registration is allowed per subnet.

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

Keys

NameTypeFormatDescription
netuidNetUid——
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 NetworkPowRegistrationAllowed storage
const netuid = 1;

const result = await api.query.SubtensorModule.NetworkPowRegistrationAllowed.getValue(netuid);
console.log("NetworkPowRegistrationAllowed:", result);

NetworkRateLimit

storage details

Blocks between allowed subnet creations.

Modifier: Default Keys: 0 Returns: u64 (Integer)
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 NetworkRateLimit storage (no keys - plain value)
const result = await api.query.SubtensorModule.NetworkRateLimit.getValue();
console.log("NetworkRateLimit:", result);

NetworkRegisteredAt

storage details

Block when subnet was registered.

Modifier: Default Keys: 1 Returns: u64 (Integer)

Keys

NameTypeFormatDescription
netuidNetUid——
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 NetworkRegisteredAt storage
const netuid = 1;

const result = await api.query.SubtensorModule.NetworkRegisteredAt.getValue(netuid);
console.log("NetworkRegisteredAt:", result);

NetworkRegistrationAllowed

storage details

Whether registration is allowed per subnet.

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

Keys

NameTypeFormatDescription
netuidNetUid——
Modified by: register_network
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 NetworkRegistrationAllowed storage
const netuid = 1;

const result = await api.query.SubtensorModule.NetworkRegistrationAllowed.getValue(netuid);
console.log("NetworkRegistrationAllowed:", result);

NetworkRegistrationEscrow

storage details

The escrow behind each subnet registration queued from v472: lock_id to (registrant coldkey, amount).

Modifier: Optional Keys: 1 Returns: (AccountId, TaoBalance)

Keys

NameTypeFormatDescription
key1u32Integer—
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 NetworkRegistrationEscrow storage
const key1 = 0;

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

NetworkRegistrationLockId

storage details

MAP ( coldkey ) --> lock_id

Modifier: Default Keys: 0 Returns: u32 (Integer)
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 NetworkRegistrationLockId storage (no keys - plain value)
const result = await api.query.SubtensorModule.NetworkRegistrationLockId.getValue();
console.log("NetworkRegistrationLockId:", result);

NetworkRegistrationQueue

storage details

Subnet registrations that have been paid for but not yet assigned a netuid.

Modifier: Default Keys: 0 Returns: Vec<NetworkRegistrationInfo> (Array of NetworkRegistrationInfo)
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 NetworkRegistrationQueue storage (no keys - plain value)
const result = await api.query.SubtensorModule.NetworkRegistrationQueue.getValue();
console.log("NetworkRegistrationQueue:", result);

NetworkRegistrationStartBlock

storage details

Block when network registration opens.

Modifier: Default Keys: 0 Returns: u64 (Integer)
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 NetworkRegistrationStartBlock storage (no keys - plain value)
const result = await api.query.SubtensorModule.NetworkRegistrationStartBlock.getValue();
console.log("NetworkRegistrationStartBlock:", result);

NetworksAdded

storage details

Whether a subnet with given netuid exists.

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

Keys

NameTypeFormatDescription
netuidNetUid——
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 NetworksAdded storage
const netuid = 1;

const result = await api.query.SubtensorModule.NetworksAdded.getValue(netuid);
console.log("NetworksAdded:", result);

NeuronCertificates

storage details

TLS/SSL certificates for neurons.

Modifier: Optional Keys: 2 Returns: NeuronCertificate

Keys

NameTypeFormatDescription
netuidNetUid——
hotkeyAccountIdSS58 Address—
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 NeuronCertificates storage
const netuid = 1;
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.NeuronCertificates.getValue(netuid, hotkey);
console.log("NeuronCertificates:", result);

NextStakeJobId

storage details

Unused counter left from the aggregated-unstake job queue. Reads 0.

Modifier: Default Keys: 0 Returns: u64 (Integer)
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 NextStakeJobId storage (no keys - plain value)
const result = await api.query.SubtensorModule.NextStakeJobId.getValue();
console.log("NextStakeJobId:", result);

NextSubnetLeaseId

storage details

Next ID for subnet lease creation.

Modifier: Default Keys: 0 Returns: u32 (Integer)
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 NextSubnetLeaseId storage (no keys - plain value)
const result = await api.query.SubtensorModule.NextSubnetLeaseId.getValue();
console.log("NextSubnetLeaseId:", result);

NominatorMinRequiredStake

storage details

Minimum stake required for nominators.

Modifier: Default Keys: 0 Returns: u64 (Integer)
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 NominatorMinRequiredStake storage (no keys - plain value)
const result = await api.query.SubtensorModule.NominatorMinRequiredStake.getValue();
console.log("NominatorMinRequiredStake:", result);

NullPruningTarget

storage details

Per subnet, the final UID target of an unfinished sudo_trim_null_uids_batch operation.

Modifier: Optional Keys: 1 Returns: u16 (Integer (0-65535))

Keys

NameTypeFormatDescription
key1NetUid——
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 NullPruningTarget storage
const key1 = 0;

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

NumStakingColdkeys

storage details

Total count of unique coldkeys with stake.

Modifier: Default Keys: 0 Returns: u64 (Integer)
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 NumStakingColdkeys storage (no keys - plain value)
const result = await api.query.SubtensorModule.NumStakingColdkeys.getValue();
console.log("NumStakingColdkeys:", result);

OwnedHotkeys

storage details

List of hotkeys owned by a coldkey.

Modifier: Default Keys: 1 Returns: Vec<AccountId> (Array of SS58 Address)

Keys

NameTypeFormatDescription
key1AccountIdSS58 Address—
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 OwnedHotkeys storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

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

Owner

storage details

Coldkey owner of a hotkey.

Modifier: Default Keys: 1 Returns: AccountId (SS58 Address)

Keys

NameTypeFormatDescription
key1AccountIdSS58 Address—
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 Owner storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

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

OwnerCutAutoLockEnabled

storage details

Per-subnet flag controlling whether owner cut auto-locks into OwnerLock. MAP (netuid) → bool, default true.

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

Keys

NameTypeFormatDescription
netuidNetUid——
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 OwnerCutAutoLockEnabled storage
const netuid = 1;

const result = await api.query.SubtensorModule.OwnerCutAutoLockEnabled.getValue(netuid);
console.log("OwnerCutAutoLockEnabled:", result);

OwnerCutEnabled

storage details

Per-subnet flag that controlled whether the owner cut was paid, v411 through v479. MAP (netuid) → bool.

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

Keys

NameTypeFormatDescription
netuidNetUid——
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 OwnerCutEnabled storage
const netuid = 1;

const result = await api.query.SubtensorModule.OwnerCutEnabled.getValue(netuid);
console.log("OwnerCutEnabled:", result);

OwnerHyperparamRateLimit

storage details

Rate limit for owner hyperparameter changes in epochs.

Modifier: Default Keys: 0 Returns: u16 (Integer (0-65535))
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 OwnerHyperparamRateLimit storage (no keys - plain value)
const result = await api.query.SubtensorModule.OwnerHyperparamRateLimit.getValue();
console.log("OwnerHyperparamRateLimit:", result);

OwnerLock

storage details

Total perpetual lock attributed to the owner hotkey for a subnet. MAP (netuid) → LockState.

Modifier: Optional Keys: 1 Returns: LockState

Keys

NameTypeFormatDescription
netuidNetUid——
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 OwnerLock storage
const netuid = 1;

const result = await api.query.SubtensorModule.OwnerLock.getValue(netuid);
console.log("OwnerLock:", result);

ParentKeys

storage details

Parent hotkeys for a child hotkey on a subnet.

Modifier: Default Keys: 2 Returns: Vec<(u64, AccountId)> (Array of (u64, AccountId))

Keys

NameTypeFormatDescription
childAccountIdSS58 Address—
netuidNetUid——
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 ParentKeys storage
const child = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const netuid = 1;

const result = await api.query.SubtensorModule.ParentKeys.getValue(child, netuid);
console.log("ParentKeys:", result);

PendingBasketDeposits

storage details

Double map (validator hotkey, origin netuid) of root dividend alpha awaiting deposit into a basket: sub-threshold credits and, from v488, snapshotted credits whose deposit is deferred.

Modifier: Default Keys: 2 Returns: AlphaBalance

Keys

NameTypeFormatDescription
hotkeyAccountIdSS58 Address—
netuidNetUid——
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 PendingBasketDeposits storage
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const netuid = 1;

const result = await api.query.SubtensorModule.PendingBasketDeposits.getValue(hotkey, netuid);
console.log("PendingBasketDeposits:", result);

PendingBasketFlushCursor

storage details

Round-robin cursor of the per-block pending-basket-deposit flush over PendingBasketDeposits.

Modifier: Optional Keys: 0 Returns: Vec<u8> (Array of Integer (0-255))
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 PendingBasketFlushCursor storage (no keys - plain value)
const result = await api.query.SubtensorModule.PendingBasketFlushCursor.getValue();
console.log("PendingBasketFlushCursor:", result);

PendingChildKeyCooldown

storage details

Cooldown period for pending childkey operations.

Modifier: Default Keys: 0 Returns: u64 (Integer)
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 PendingChildKeyCooldown storage (no keys - plain value)
const result = await api.query.SubtensorModule.PendingChildKeyCooldown.getValue();
console.log("PendingChildKeyCooldown:", result);

PendingChildKeys

storage details

Scheduled child key changes awaiting execution.

Modifier: Default Keys: 2 Returns: (Vec<(u64, AccountId)>, u64)

Keys

NameTypeFormatDescription
netuidNetUid——
parentAccountIdSS58 Address—
Modified by: set_children
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 PendingChildKeys storage
const netuid = 1;
const parent = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.PendingChildKeys.getValue(netuid, parent);
console.log("PendingChildKeys:", result);

PendingEpochAt

storage details

Block at which a manually triggered or deferred epoch should fire; 0 means none pending.

Modifier: Default Keys: 1 Returns: u64 (Integer)

Keys

NameTypeFormatDescription
netuidNetUid——
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 PendingEpochAt storage
const netuid = 1;

const result = await api.query.SubtensorModule.PendingEpochAt.getValue(netuid);
console.log("PendingEpochAt:", result);

PendingGammaEmission

storage details

Map (netuid) to the alpha, in alpha-RAO (u64), accrued to the subnet gamma shares since they were last allotted.

Modifier: Default Keys: 1 Returns: AlphaBalance

Keys

NameTypeFormatDescription
netuidNetUid——
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 PendingGammaEmission storage
const netuid = 1;

const result = await api.query.SubtensorModule.PendingGammaEmission.getValue(netuid);
console.log("PendingGammaEmission:", result);

PendingOwnerCut

storage details

Owner cut of alpha emission per subnet, accumulated per block and paid at the epoch.

Modifier: Default Keys: 1 Returns: AlphaBalance

Keys

NameTypeFormatDescription
netuidNetUid——
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 PendingOwnerCut storage
const netuid = 1;

const result = await api.query.SubtensorModule.PendingOwnerCut.getValue(netuid);
console.log("PendingOwnerCut:", result);

PendingRootAlphaDivs

storage details

Root share of alpha emission per subnet, accumulated per block and drained at the epoch.

Modifier: Default Keys: 1 Returns: AlphaBalance

Keys

NameTypeFormatDescription
netuidNetUid——
Modified by: claim_root
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 PendingRootAlphaDivs storage
const netuid = 1;

const result = await api.query.SubtensorModule.PendingRootAlphaDivs.getValue(netuid);
console.log("PendingRootAlphaDivs:", result);

PendingServerEmission

storage details

Pending miner (server) emissions per subnet — accumulates, reset at tempo.

Modifier: Default Keys: 1 Returns: AlphaBalance

Keys

NameTypeFormatDescription
netuidNetUid——
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 PendingServerEmission storage
const netuid = 1;

const result = await api.query.SubtensorModule.PendingServerEmission.getValue(netuid);
console.log("PendingServerEmission:", result);

PendingValidatorEmission

storage details

Pending validator emissions per subnet — accumulates, reset at tempo.

Modifier: Default Keys: 1 Returns: AlphaBalance

Keys

NameTypeFormatDescription
netuidNetUid——
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 PendingValidatorEmission storage
const netuid = 1;

const result = await api.query.SubtensorModule.PendingValidatorEmission.getValue(netuid);
console.log("PendingValidatorEmission:", result);

POWRegistrationsThisInterval

storage details

POW registrations in current interval.

Modifier: Default Keys: 1 Returns: u16 (Integer (0-65535))

Keys

NameTypeFormatDescription
netuidNetUid——
Modified by: register
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 POWRegistrationsThisInterval storage
const netuid = 1;

const result = await api.query.SubtensorModule.POWRegistrationsThisInterval.getValue(netuid);
console.log("POWRegistrationsThisInterval:", result);

Prometheus

storage details

Prometheus endpoint info for neurons.

Modifier: Optional Keys: 2 Returns: PrometheusInfo

Keys

NameTypeFormatDescription
netuidNetUid——
hotkeyAccountIdSS58 Address—
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 Prometheus storage
const netuid = 1;
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.Prometheus.getValue(netuid, hotkey);
console.log("Prometheus:", result);

RAORecycledForRegistration

storage details

RAO recycled from registration burns per subnet.

Modifier: Default Keys: 1 Returns: TaoBalance

Keys

NameTypeFormatDescription
netuidNetUid——
Modified by: recycle_alpha
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 RAORecycledForRegistration storage
const netuid = 1;

const result = await api.query.SubtensorModule.RAORecycledForRegistration.getValue(netuid);
console.log("RAORecycledForRegistration:", result);

RecycleOrBurn

storage details

Per-subnet choice of whether miner incentive withheld from owner hotkeys is recycled or burned.

Modifier: Default Keys: 1 Returns: RecycleOrBurnEnum

Keys

NameTypeFormatDescription
netuidNetUid——
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 RecycleOrBurn storage
const netuid = 1;

const result = await api.query.SubtensorModule.RecycleOrBurn.getValue(netuid);
console.log("RecycleOrBurn:", result);

RegisteredSubnetCounter

storage details

MAP ( netuid ) --> registered_subnet_counter

Modifier: Default Keys: 1 Returns: u64 (Integer)

Keys

NameTypeFormatDescription
netuidNetUid——
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 RegisteredSubnetCounter storage
const netuid = 1;

const result = await api.query.SubtensorModule.RegisteredSubnetCounter.getValue(netuid);
console.log("RegisteredSubnetCounter:", result);

RegistrationsThisBlock

storage details

Registrations in current block.

Modifier: Default Keys: 1 Returns: u16 (Integer (0-65535))

Keys

NameTypeFormatDescription
netuidNetUid——
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 RegistrationsThisBlock storage
const netuid = 1;

const result = await api.query.SubtensorModule.RegistrationsThisBlock.getValue(netuid);
console.log("RegistrationsThisBlock:", result);

RegistrationsThisInterval

storage details

Registrations in current adjustment interval.

Modifier: Default Keys: 1 Returns: u16 (Integer (0-65535))

Keys

NameTypeFormatDescription
netuidNetUid——
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 RegistrationsThisInterval storage
const netuid = 1;

const result = await api.query.SubtensorModule.RegistrationsThisInterval.getValue(netuid);
console.log("RegistrationsThisInterval:", result);

RevealPeriodEpochs

storage details

Epochs allowed for weight reveal after commit.

Modifier: Default Keys: 1 Returns: u64 (Integer)

Keys

NameTypeFormatDescription
key1NetUid——
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 RevealPeriodEpochs storage
const key1 = 0;

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

Rho

storage details

Rho parameter for emissions.

Modifier: Default Keys: 1 Returns: u16 (Integer (0-65535))

Keys

NameTypeFormatDescription
netuidNetUid——
Modified by: register_network
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 Rho storage
const netuid = 1;

const result = await api.query.SubtensorModule.Rho.getValue(netuid);
console.log("Rho:", result);

RootAlphaDividendsPerSubnet

storage details

Root-weighted alpha dividend per hotkey per subnet at the last epoch, net of the validator take.

Modifier: Default Keys: 2 Returns: AlphaBalance

Keys

NameTypeFormatDescription
netuidNetUid——
hotkeyAccountIdSS58 Address—
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 RootAlphaDividendsPerSubnet storage
const netuid = 1;
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.RootAlphaDividendsPerSubnet.getValue(netuid, hotkey);
console.log("RootAlphaDividendsPerSubnet:", result);

RootClaimable

storage details

LEGACY per-subnet root claimable rates per hotkey, BTreeMap<NetUid, I96F32>. Superseded by BasketRate at v441; no longer written by the coinbase.

Modifier: Default Keys: 1 Returns: BTreeMap

Keys

NameTypeFormatDescription
key1AccountIdSS58 Address—
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 RootClaimable storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

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

RootClaimableThreshold

storage details

Minimum TAO value for a root dividend deposit or claim to proceed. MAP (netuid) → I64F64, but only the netuid 0 entry is consulted.

Modifier: Default Keys: 1 Returns: FixedI128

Keys

NameTypeFormatDescription
key1NetUid——
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 RootClaimableThreshold storage
const key1 = 0;

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

RootClaimed

storage details

LEGACY per-subnet claimed watermark per (netuid, hotkey, coldkey). Superseded by BasketClaimed at v441; no longer written by claims.

Modifier: Default Keys: 3 Returns: u128 (Large Integer)

Keys

NameTypeFormatDescription
key1NetUid——
key2AccountIdSS58 Address—
key3AccountIdSS58 Address—
Modified by: claim_root
// ----------------------------------------------------------------------
// 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 RootClaimed storage
const key1 = undefined as any /* NetUid — replace with real value */;
const key2 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const key3 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.RootClaimed.getValue(key1, key2, key3);
console.log("RootClaimed:", result);

RootProp

storage details

Per-subnet root proportion as computed in the last block: TaoWeight-scaled root TAO over that plus the subnet alpha issuance.

Modifier: Default Keys: 1 Returns: FixedU128

Keys

NameTypeFormatDescription
netuidNetUid——
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 RootProp storage
const netuid = 1;

const result = await api.query.SubtensorModule.RootProp.getValue(netuid);
console.log("RootProp:", result);

RootStakeUnlockInterval

storage details

Minimum number of blocks root (netuid 0) stake must be held before it can leave root.

Modifier: Default Keys: 0 Returns: u64 (Integer)
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 RootStakeUnlockInterval storage (no keys - plain value)
const result = await api.query.SubtensorModule.RootStakeUnlockInterval.getValue();
console.log("RootStakeUnlockInterval:", result);

SavedYumaMaxAllowedValidators

storage details

Per subnet, the MaxAllowedValidators value saved when the subnet switched to Null, restored on return to Yuma.

Modifier: Optional Keys: 1 Returns: u16 (Integer (0-65535))

Keys

NameTypeFormatDescription
key1NetUid——
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 SavedYumaMaxAllowedValidators storage
const key1 = 0;

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

ScalingLawPower

storage details

Scaling law exponent per subnet.

Modifier: Default Keys: 1 Returns: u16 (Integer (0-65535))

Keys

NameTypeFormatDescription
netuidNetUid——
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 ScalingLawPower storage
const netuid = 1;

const result = await api.query.SubtensorModule.ScalingLawPower.getValue(netuid);
console.log("ScalingLawPower:", result);

Services

storage details

Double map (netuid, hotkey) to the service record of a hotkey on a subnet: a url of at most 256 bytes and a spender account.

Modifier: Optional Keys: 2 Returns: ServiceInfo

Keys

NameTypeFormatDescription
netuidNetUid——
hotkeyAccountIdSS58 Address—
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 Services storage
const netuid = 1;
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.Services.getValue(netuid, hotkey);
console.log("Services:", result);

ServingRateLimit

storage details

Blocks between allowed serving updates.

Modifier: Default Keys: 1 Returns: u64 (Integer)

Keys

NameTypeFormatDescription
netuidNetUid——
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 ServingRateLimit storage
const netuid = 1;

const result = await api.query.SubtensorModule.ServingRateLimit.getValue(netuid);
console.log("ServingRateLimit:", result);

StakeMoveCooldownUntil

storage details

Per (netuid, hotkey), the block until which alpha a hotkey swap moved into that hotkey cannot be moved out again by another owner-driven swap.

Modifier: Default Keys: 2 Returns: u64 (Integer)

Keys

NameTypeFormatDescription
key1NetUid——
key2AccountIdSS58 Address—
Modified by: swap_hotkey
// ----------------------------------------------------------------------
// 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 StakeMoveCooldownUntil storage
const key1 = undefined as any /* NetUid — replace with real value */;
const key2 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.StakeMoveCooldownUntil.getValue(key1, key2);
console.log("StakeMoveCooldownUntil:", result);

StakeThreshold

storage details

Minimum stake required to set weights.

Modifier: Default Keys: 0 Returns: u64 (Integer)
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 StakeThreshold storage (no keys - plain value)
const result = await api.query.SubtensorModule.StakeThreshold.getValue();
console.log("StakeThreshold:", result);

StakeWeight

storage details

Stake-based weights per UID per subnet.

Modifier: Default Keys: 1 Returns: Vec<u16> (Array of Integer (0-65535))

Keys

NameTypeFormatDescription
netuidNetUid——
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 StakeWeight storage
const netuid = 1;

const result = await api.query.SubtensorModule.StakeWeight.getValue(netuid);
console.log("StakeWeight:", result);

StakingColdkeys

storage details

Reverse index mapping coldkey to its position.

Modifier: Optional Keys: 1 Returns: u64 (Integer)

Keys

NameTypeFormatDescription
key1AccountIdSS58 Address—
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 StakingColdkeys storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

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

StakingColdkeysByIndex

storage details

Index mapping for iterating staking coldkeys.

Modifier: Optional Keys: 1 Returns: AccountId (SS58 Address)

Keys

NameTypeFormatDescription
key1u64Integer—
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 StakingColdkeysByIndex storage
const key1 = 0n;

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

StakingHotkeys

storage details

List of hotkeys a coldkey has staked to.

Modifier: Default Keys: 1 Returns: Vec<AccountId> (Array of SS58 Address)

Keys

NameTypeFormatDescription
key1AccountIdSS58 Address—
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 StakingHotkeys storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

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

StartCallDelay

storage details

Delay before subnet can call start.

Modifier: Default Keys: 0 Returns: u64 (Integer)
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 StartCallDelay storage (no keys - plain value)
const result = await api.query.SubtensorModule.StartCallDelay.getValue();
console.log("StartCallDelay:", result);

SubnetAlphaIn

storage details

Alpha tokens in the subnet liquidity pool.

Modifier: Default Keys: 1 Returns: AlphaBalance

Keys

NameTypeFormatDescription
netuidNetUid——
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 SubnetAlphaIn storage
const netuid = 1;

const result = await api.query.SubtensorModule.SubnetAlphaIn.getValue(netuid);
console.log("SubnetAlphaIn:", result);

SubnetAlphaInEmission

storage details

Alpha added to the pool reserve as price-active liquidity in the last block. MAP (netuid), overwritten every block.

Modifier: Default Keys: 1 Returns: AlphaBalance

Keys

NameTypeFormatDescription
netuidNetUid——
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 SubnetAlphaInEmission storage
const netuid = 1;

const result = await api.query.SubtensorModule.SubnetAlphaInEmission.getValue(netuid);
console.log("SubnetAlphaInEmission:", result);

SubnetAlphaOut

storage details

Alpha tokens distributed to stakers.

Modifier: Default Keys: 1 Returns: AlphaBalance

Keys

NameTypeFormatDescription
netuidNetUid——
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 SubnetAlphaOut storage
const netuid = 1;

const result = await api.query.SubtensorModule.SubnetAlphaOut.getValue(netuid);
console.log("SubnetAlphaOut:", result);

SubnetAlphaOutEmission

storage details

Alpha minted for participants in the last block, before the owner cut. MAP (netuid), overwritten every block.

Modifier: Default Keys: 1 Returns: AlphaBalance

Keys

NameTypeFormatDescription
netuidNetUid——
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 SubnetAlphaOutEmission storage
const netuid = 1;

const result = await api.query.SubtensorModule.SubnetAlphaOutEmission.getValue(netuid);
console.log("SubnetAlphaOutEmission:", result);

SubnetCreatedViaLease

storage details

True for a subnet registered through a crowdloan lease. Persists after the lease ends.

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

Keys

NameTypeFormatDescription
netuidNetUid——
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 SubnetCreatedViaLease storage
const netuid = 1;

const result = await api.query.SubtensorModule.SubnetCreatedViaLease.getValue(netuid);
console.log("SubnetCreatedViaLease:", result);

SubnetEmaProtocolFlow

storage details

EMA of protocol TAO flow per subnet, as (last block, I64F64). Frozen since v421.

Modifier: Optional Keys: 1 Returns: (u64, FixedI128)

Keys

NameTypeFormatDescription
netuidNetUid——
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 SubnetEmaProtocolFlow storage
const netuid = 1;

const result = await api.query.SubtensorModule.SubnetEmaProtocolFlow.getValue(netuid);
console.log("SubnetEmaProtocolFlow:", result);

SubnetEmaTaoFlow

storage details

EMA of user TAO flow per subnet, as (last block, I64F64). Frozen since v421.

Modifier: Optional Keys: 1 Returns: (u64, FixedI128)

Keys

NameTypeFormatDescription
netuidNetUid——
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 SubnetEmaTaoFlow storage
const netuid = 1;

const result = await api.query.SubtensorModule.SubnetEmaTaoFlow.getValue(netuid);
console.log("SubnetEmaTaoFlow:", result);

SubnetEmissionEnabled

storage details

Per-subnet switch for TAO-side emission. MAP (netuid) → bool, default true. False sets the subnet TAO share to zero and renormalises the rest.

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

Keys

NameTypeFormatDescription
netuidNetUid——
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 SubnetEmissionEnabled storage
const netuid = 1;

const result = await api.query.SubtensorModule.SubnetEmissionEnabled.getValue(netuid);
console.log("SubnetEmissionEnabled:", result);

SubnetEmissionWeights

storage details

Per-subnet emission weight vector [burn, recycle, owner, validator, miner] in u64::MAX parts. Through v488 the five slots sum to exactly one; from v490 the five slots plus the gamma shares in SubnetGammaEmission do.

Modifier: Default Keys: 1 Returns: BoundedVec

Keys

NameTypeFormatDescription
netuidNetUid——
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 SubnetEmissionWeights storage
const netuid = 1;

const result = await api.query.SubtensorModule.SubnetEmissionWeights.getValue(netuid);
console.log("SubnetEmissionWeights:", result);

SubnetEpochConsensus

storage details

Per subnet, the epoch reward algorithm: Yuma or Null.

Modifier: Default Keys: 1 Returns: EpochConsensus

Keys

NameTypeFormatDescription
key1NetUid——
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 SubnetEpochConsensus storage
const key1 = 0;

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

SubnetEpochIndex

storage details

Monotonic count of epoch slots consumed by a subnet.

Modifier: Default Keys: 1 Returns: u64 (Integer)

Keys

NameTypeFormatDescription
netuidNetUid——
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 SubnetEpochIndex storage
const netuid = 1;

const result = await api.query.SubtensorModule.SubnetEpochIndex.getValue(netuid);
console.log("SubnetEpochIndex:", result);

SubnetExcessTao

storage details

TAO from this block's subnet emission that could not be injected as liquidity and was used to buy alpha on the pool instead. MAP (netuid) → TaoBalance, overwritten every block.

Modifier: Default Keys: 1 Returns: TaoBalance

Keys

NameTypeFormatDescription
netuidNetUid——
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 SubnetExcessTao storage
const netuid = 1;

const result = await api.query.SubtensorModule.SubnetExcessTao.getValue(netuid);
console.log("SubnetExcessTao:", result);

SubnetFastMovingPrice

storage details

Fast EMA of a subnet spot price, the trading anchor for swap_basket.

Modifier: Optional Keys: 1 Returns: FixedU128

Keys

NameTypeFormatDescription
netuidNetUid——
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 SubnetFastMovingPrice storage
const netuid = 1;

const result = await api.query.SubtensorModule.SubnetFastMovingPrice.getValue(netuid);
console.log("SubnetFastMovingPrice:", result);

SubnetGammaEmission

storage details

Map (netuid) to the subnet gamma shares: up to 16 (target_netuid, share) pairs in ascending target order, each share a u64 fraction of u64::MAX.

Modifier: Default Keys: 1 Returns: BoundedVec

Keys

NameTypeFormatDescription
netuidNetUid——
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 SubnetGammaEmission storage
const netuid = 1;

const result = await api.query.SubtensorModule.SubnetGammaEmission.getValue(netuid);
console.log("SubnetGammaEmission:", result);

SubnetGammaEmissionWhitelisted

storage details

Map (netuid) to whether other subnets may give this subnet a gamma share.

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

Keys

NameTypeFormatDescription
netuidNetUid——
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 SubnetGammaEmissionWhitelisted storage
const netuid = 1;

const result = await api.query.SubtensorModule.SubnetGammaEmissionWhitelisted.getValue(netuid);
console.log("SubnetGammaEmissionWhitelisted:", result);

SubnetGammaEnabled

storage details

Per-subnet switch for gamma minting. MAP (netuid) → bool, source default false.

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

Keys

NameTypeFormatDescription
netuidNetUid——
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 SubnetGammaEnabled storage
const netuid = 1;

const result = await api.query.SubtensorModule.SubnetGammaEnabled.getValue(netuid);
console.log("SubnetGammaEnabled:", result);

SubnetGammaPrice

storage details

The highest alpha price, in TAO per alpha as U64F64, at which a subnet mints gamma. MAP (netuid) → U64F64. It drops to spot at once and rises toward spot slowly.

Modifier: Default Keys: 1 Returns: FixedU128

Keys

NameTypeFormatDescription
netuidNetUid——
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 SubnetGammaPrice storage
const netuid = 1;

const result = await api.query.SubtensorModule.SubnetGammaPrice.getValue(netuid);
console.log("SubnetGammaPrice:", result);

SubnetIdentitiesV3

storage details

Identity metadata for subnets (v3).

Modifier: Optional Keys: 1 Returns: SubnetIdentityV3

Keys

NameTypeFormatDescription
netuidNetUid——
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 SubnetIdentitiesV3 storage
const netuid = 1;

const result = await api.query.SubtensorModule.SubnetIdentitiesV3.getValue(netuid);
console.log("SubnetIdentitiesV3:", result);

SubnetLeases

storage details

Subnet lease records by lease id: active leases, and terminated leases that are not fully settled.

Modifier: Optional Keys: 1 Returns: SubnetLease

Keys

NameTypeFormatDescription
lease_idu32Integer—
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 SubnetLeases storage
const lease_id = 0;

const result = await api.query.SubtensorModule.SubnetLeases.getValue(lease_id);
console.log("SubnetLeases:", result);

SubnetLeaseShares

storage details

Share ownership in subnet leases.

Modifier: Default Keys: 2 Returns: FixedU128

Keys

NameTypeFormatDescription
lease_idu32Integer—
contributorAccountIdSS58 Address—
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 SubnetLeaseShares storage
const lease_id = 0;
const contributor = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.SubnetLeaseShares.getValue(lease_id, contributor);
console.log("SubnetLeaseShares:", result);

SubnetLeaseTerminationHotkey

storage details

Map (lease_id) to the hotkey that receives the residual stake of a terminated subnet lease, kept while the lease record still has contributor dividends or residual stake to settle.

Modifier: Optional Keys: 1 Returns: AccountId (SS58 Address)

Keys

NameTypeFormatDescription
key1u32Integer—
Modified by: terminate_lease
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 SubnetLeaseTerminationHotkey storage
const key1 = 0;

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

SubnetLeaseUnpaidDividends

storage details

Lease dividend alpha owed to a contributor that could not be transferred yet.

Modifier: Default Keys: 2 Returns: AlphaBalance

Keys

NameTypeFormatDescription
lease_idu32Integer—
contributorAccountIdSS58 Address—
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 SubnetLeaseUnpaidDividends storage
const lease_id = 0;
const contributor = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.SubnetLeaseUnpaidDividends.getValue(lease_id, contributor);
console.log("SubnetLeaseUnpaidDividends:", result);

SubnetLimit

storage details

Maximum number of subnets allowed on the network.

Modifier: Default Keys: 0 Returns: u16 (Integer (0-65535))
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 SubnetLimit storage (no keys - plain value)
const result = await api.query.SubtensorModule.SubnetLimit.getValue();
console.log("SubnetLimit:", result);

SubnetLocked

storage details

TAO locked for a subnet.

Modifier: Default Keys: 1 Returns: TaoBalance

Keys

NameTypeFormatDescription
netuidNetUid——
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 SubnetLocked storage
const netuid = 1;

const result = await api.query.SubtensorModule.SubnetLocked.getValue(netuid);
console.log("SubnetLocked:", result);

SubnetMechanism

storage details

Consensus mechanism type per subnet.

Modifier: Default Keys: 1 Returns: u16 (Integer (0-65535))

Keys

NameTypeFormatDescription
netuidNetUid——
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 SubnetMechanism storage
const netuid = 1;

const result = await api.query.SubtensorModule.SubnetMechanism.getValue(netuid);
console.log("SubnetMechanism:", result);

SubnetMovingAlpha

storage details

Moving alpha smoothing factor for all subnets.

Modifier: Default Keys: 0 Returns: FixedI128
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 SubnetMovingAlpha storage (no keys - plain value)
const result = await api.query.SubtensorModule.SubnetMovingAlpha.getValue();
console.log("SubnetMovingAlpha:", result);

SubnetMovingPrice

storage details

Moving average price for subnet alpha.

Modifier: Default Keys: 1 Returns: FixedI128

Keys

NameTypeFormatDescription
netuidNetUid——
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 SubnetMovingPrice storage
const netuid = 1;

const result = await api.query.SubtensorModule.SubnetMovingPrice.getValue(netuid);
console.log("SubnetMovingPrice:", result);

SubnetOwner

storage details

Owner account for a subnet.

Modifier: Default Keys: 1 Returns: AccountId (SS58 Address)

Keys

NameTypeFormatDescription
netuidNetUid——
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 SubnetOwner storage
const netuid = 1;

const result = await api.query.SubtensorModule.SubnetOwner.getValue(netuid);
console.log("SubnetOwner:", result);

SubnetOwnerCut

storage details

Owner cut fraction from emissions, encoded as u16. To get the fraction: value / u16::MAX (i.e. value / 65535). NOT basis points (10000) or percent (100).

Modifier: Default Keys: 0 Returns: u16 (Integer (0-65535))
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 SubnetOwnerCut storage (no keys - plain value)
const result = await api.query.SubtensorModule.SubnetOwnerCut.getValue();
console.log("SubnetOwnerCut:", result);

SubnetOwnerCutAccrued

storage details

Cumulative alpha credited to the owner slot of a subnet since registration (or since the v481 seed).

Modifier: Default Keys: 1 Returns: AlphaBalance

Keys

NameTypeFormatDescription
netuidNetUid——
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 SubnetOwnerCutAccrued storage
const netuid = 1;

const result = await api.query.SubtensorModule.SubnetOwnerCutAccrued.getValue(netuid);
console.log("SubnetOwnerCutAccrued:", result);

SubnetOwnerHotkey

storage details

Hotkey associated with subnet owner.

Modifier: Default Keys: 1 Returns: AccountId (SS58 Address)

Keys

NameTypeFormatDescription
netuidNetUid——
Modified by: terminate_lease
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 SubnetOwnerHotkey storage
const netuid = 1;

const result = await api.query.SubtensorModule.SubnetOwnerHotkey.getValue(netuid);
console.log("SubnetOwnerHotkey:", result);

SubnetProtocolAlpha

storage details

Cumulative alpha the protocol bought with excess emission TAO on a subnet. MAP (netuid) → AlphaBalance.

Modifier: Default Keys: 1 Returns: AlphaBalance

Keys

NameTypeFormatDescription
netuidNetUid——
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 SubnetProtocolAlpha storage
const netuid = 1;

const result = await api.query.SubtensorModule.SubnetProtocolAlpha.getValue(netuid);
console.log("SubnetProtocolAlpha:", result);

SubnetProtocolFlow

storage details

Signed running sum of protocol TAO into and out of a subnet pool (emission injections and chain buys in, root sells out). MAP (netuid) → i64. Never reset since v421.

Modifier: Default Keys: 1 Returns: i64 (Signed Integer)

Keys

NameTypeFormatDescription
netuidNetUid——
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 SubnetProtocolFlow storage
const netuid = 1;

const result = await api.query.SubtensorModule.SubnetProtocolFlow.getValue(netuid);
console.log("SubnetProtocolFlow:", result);

SubnetRootSellTao

storage details

TAO taken out of a subnet pool by root dividend sells during the current block. MAP (netuid) → TaoBalance, cleared at the start of every run_coinbase.

Modifier: Default Keys: 1 Returns: TaoBalance

Keys

NameTypeFormatDescription
netuidNetUid——
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 SubnetRootSellTao storage
const netuid = 1;

const result = await api.query.SubtensorModule.SubnetRootSellTao.getValue(netuid);
console.log("SubnetRootSellTao:", result);

SubnetState

storage details

Lifecycle state of a subnet: Registered, Started, PendingDissolution or Dissolving. MAP (netuid) → SubnetLifecycleState.

Modifier: Optional Keys: 1 Returns: SubnetLifecycleState

Keys

NameTypeFormatDescription
netuidNetUid——
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 SubnetState storage
const netuid = 1;

const result = await api.query.SubtensorModule.SubnetState.getValue(netuid);
console.log("SubnetState:", result);

SubnetTAO

storage details

TAO in the subnet liquidity pool.

Modifier: Default Keys: 1 Returns: TaoBalance

Keys

NameTypeFormatDescription
netuidNetUid——
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 SubnetTAO storage
const netuid = 1;

const result = await api.query.SubtensorModule.SubnetTAO.getValue(netuid);
console.log("SubnetTAO:", result);

SubnetTaoFlow

storage details

Signed running sum of user TAO swapped into and out of a subnet pool. Written by swaps, never reset since v421.

Modifier: Default Keys: 1 Returns: i64 (Signed Integer)

Keys

NameTypeFormatDescription
netuidNetUid——
Modified by: mint_gamma
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 SubnetTaoFlow storage
const netuid = 1;

const result = await api.query.SubtensorModule.SubnetTaoFlow.getValue(netuid);
console.log("SubnetTaoFlow:", result);

SubnetTaoInEmission

storage details

Price-active TAO added to a subnet pool reserve in the LAST block. Overwritten every block.

Modifier: Default Keys: 1 Returns: TaoBalance

Keys

NameTypeFormatDescription
netuidNetUid——
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 SubnetTaoInEmission storage
const netuid = 1;

const result = await api.query.SubtensorModule.SubnetTaoInEmission.getValue(netuid);
console.log("SubnetTaoInEmission:", result);

SubnetUidToLeaseId

storage details

Map subnet UIDs to lease IDs.

Modifier: Optional Keys: 1 Returns: u32 (Integer)

Keys

NameTypeFormatDescription
netuidNetUid——
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 SubnetUidToLeaseId storage
const netuid = 1;

const result = await api.query.SubtensorModule.SubnetUidToLeaseId.getValue(netuid);
console.log("SubnetUidToLeaseId:", result);

SubnetVolume

storage details

TAO swapped through a subnet pool since its current registration.

Modifier: Default Keys: 1 Returns: u128 (Large Integer)

Keys

NameTypeFormatDescription
netuidNetUid——
Modified by: mint_gamma
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 SubnetVolume storage
const netuid = 1;

const result = await api.query.SubtensorModule.SubnetVolume.getValue(netuid);
console.log("SubnetVolume:", result);

SubnetworkN

storage details

Number of registered neurons on a subnet.

Modifier: Default Keys: 1 Returns: u16 (Integer (0-65535))

Keys

NameTypeFormatDescription
netuidNetUid——
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 SubnetworkN storage
const netuid = 1;

const result = await api.query.SubtensorModule.SubnetworkN.getValue(netuid);
console.log("SubnetworkN:", result);

SubtokenEnabled

storage details

Whether subtoken trading is enabled per subnet.

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

Keys

NameTypeFormatDescription
netuidNetUid——
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 SubtokenEnabled storage
const netuid = 1;

const result = await api.query.SubtensorModule.SubtokenEnabled.getValue(netuid);
console.log("SubtokenEnabled:", result);

TaoFlowCutoff

storage details

Lower-limit floor for the TAO-flow allocator. Unread on the emission path since v421.

Modifier: Default Keys: 0 Returns: FixedI128
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 TaoFlowCutoff storage (no keys - plain value)
const result = await api.query.SubtensorModule.TaoFlowCutoff.getValue();
console.log("TaoFlowCutoff:", result);

TaoInRefundDeploymentBlock

storage details

ITEM( TaoInRefundDeploymentBlock )

Modifier: Default Keys: 0 Returns: u64 (Integer)
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 TaoInRefundDeploymentBlock storage (no keys - plain value)
const result = await api.query.SubtensorModule.TaoInRefundDeploymentBlock.getValue();
console.log("TaoInRefundDeploymentBlock:", result);

TaoUsdPrice

storage details

The TAO/USD price state that values gamma mints. ITEM TaoUsdPriceState { accepted, feed, fed_at }, prices in gamma units per TAO (10^9 units per US dollar). Empty until the oracle feeds.

Modifier: Optional Keys: 0 Returns: TaoUsdPriceState
Modified by: feed_tao_usd_price
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 TaoUsdPrice storage (no keys - plain value)
const result = await api.query.SubtensorModule.TaoUsdPrice.getValue();
console.log("TaoUsdPrice:", result);

TaoUsdPriceOracle

storage details

The single account allowed to call feed_tao_usd_price. ITEM AccountId, empty by default.

Modifier: Optional Keys: 0 Returns: AccountId (SS58 Address)
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 TaoUsdPriceOracle storage (no keys - plain value)
const result = await api.query.SubtensorModule.TaoUsdPriceOracle.getValue();
console.log("TaoUsdPriceOracle:", result);

TaoWeight

storage details

Global TAO weight in economics.

Modifier: Default Keys: 0 Returns: u64 (Integer)
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 TaoWeight storage (no keys - plain value)
const result = await api.query.SubtensorModule.TaoWeight.getValue();
console.log("TaoWeight:", result);

TargetRegistrationsPerInterval

storage details

Target registrations per adjustment interval.

Modifier: Default Keys: 1 Returns: u16 (Integer (0-65535))

Keys

NameTypeFormatDescription
netuidNetUid——
Modified by: register_network
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 TargetRegistrationsPerInterval storage
const netuid = 1;

const result = await api.query.SubtensorModule.TargetRegistrationsPerInterval.getValue(netuid);
console.log("TargetRegistrationsPerInterval:", result);

Tempo

storage details

Emission interval for a subnet (blocks).

Modifier: Default Keys: 1 Returns: u16 (Integer (0-65535))

Keys

NameTypeFormatDescription
netuidNetUid——
Modified by: register_network
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 Tempo storage
const netuid = 1;

const result = await api.query.SubtensorModule.Tempo.getValue(netuid);
console.log("Tempo:", result);

TimelockedWeightCommits

storage details

Timelocked weight commits for commit-reveal — canonical at v411.

Modifier: Default Keys: 2 Returns: Vec<(AccountId, u64, BoundedVec, u64)> (Array of (AccountId, u64, BoundedVec, u64))

Keys

NameTypeFormatDescription
netuidNetUidStorageIndex——
epochu64Integer—
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 TimelockedWeightCommits storage
const netuid = 1;
const epoch = 0n;

const result = await api.query.SubtensorModule.TimelockedWeightCommits.getValue(netuid, epoch);
console.log("TimelockedWeightCommits:", result);

TokenSymbol

storage details

Token symbol for subnet alpha tokens.

Modifier: Default Keys: 1 Returns: Vec<u8> (Array of Integer (0-255))

Keys

NameTypeFormatDescription
netuidNetUid——
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 TokenSymbol storage
const netuid = 1;

const result = await api.query.SubtensorModule.TokenSymbol.getValue(netuid);
console.log("TokenSymbol:", result);

TotalAlphaStaked

storage details

Total alpha staked across every hotkey on a subnet.

Modifier: Default Keys: 1 Returns: AlphaBalance

Keys

NameTypeFormatDescription
netuidNetUid——
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 TotalAlphaStaked storage
const netuid = 1;

const result = await api.query.SubtensorModule.TotalAlphaStaked.getValue(netuid);
console.log("TotalAlphaStaked:", result);

TotalHotkeyAlpha

storage details

Total alpha stake delegated to a hotkey.

Modifier: Default Keys: 2 Returns: AlphaBalance

Keys

NameTypeFormatDescription
hotAccountIdSS58 Address—
netuidNetUid——
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 TotalHotkeyAlpha storage
const hot = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const netuid = 1;

const result = await api.query.SubtensorModule.TotalHotkeyAlpha.getValue(hot, netuid);
console.log("TotalHotkeyAlpha:", result);

TotalHotkeyAlphaLastEpoch

storage details

TotalHotkeyAlpha snapshot taken when AlphaDividendsPerSubnet was written, per hotkey per subnet.

Modifier: Default Keys: 2 Returns: AlphaBalance

Keys

NameTypeFormatDescription
hotAccountIdSS58 Address—
netuidNetUid——
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 TotalHotkeyAlphaLastEpoch storage
const hot = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const netuid = 1;

const result = await api.query.SubtensorModule.TotalHotkeyAlphaLastEpoch.getValue(hot, netuid);
console.log("TotalHotkeyAlphaLastEpoch:", result);

TotalHotkeySharesV2

storage details

V2 total shares per (hotkey, netuid), stored as SafeFloat { mantissa, exponent }. Supersedes TotalHotkeyShares at v401.

Modifier: Default Keys: 2 Returns: SafeFloat

Keys

NameTypeFormatDescription
hotAccountIdSS58 Address—
netuidNetUid——
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 TotalHotkeySharesV2 storage
const hot = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const netuid = 1;

const result = await api.query.SubtensorModule.TotalHotkeySharesV2.getValue(hot, netuid);
console.log("TotalHotkeySharesV2:", result);

TotalIssuance

storage details

Total TAO in circulation.

Modifier: Default Keys: 0 Returns: TaoBalance
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 TotalIssuance storage (no keys - plain value)
const result = await api.query.SubtensorModule.TotalIssuance.getValue();
console.log("TotalIssuance:", result);

TotalNetworks

storage details

Total number of subnets on the network.

Modifier: Default Keys: 0 Returns: u16 (Integer (0-65535))
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 TotalNetworks storage (no keys - plain value)
const result = await api.query.SubtensorModule.TotalNetworks.getValue();
console.log("TotalNetworks:", result);

TotalStake

storage details

Total TAO staked across all hotkeys.

Modifier: Default Keys: 0 Returns: TaoBalance
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 TotalStake storage (no keys - plain value)
const result = await api.query.SubtensorModule.TotalStake.getValue();
console.log("TotalStake:", result);

TotalVotingPower

storage details

Sum of every validator voting-power entry on a subnet.

Modifier: Default Keys: 1 Returns: u64 (Integer)

Keys

NameTypeFormatDescription
netuidNetUid——
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 TotalVotingPower storage
const netuid = 1;

const result = await api.query.SubtensorModule.TotalVotingPower.getValue(netuid);
console.log("TotalVotingPower:", result);

TransactionKeyLastBlock

storage details

Last block for rate-limited transaction by key.

Modifier: Default Keys: 3 Returns: u64 (Integer)

Keys

NameTypeFormatDescription
hotAccountIdSS58 Address—
netuidNetUid——
nameu16Integer (0-65535)—
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 TransactionKeyLastBlock storage
const hot = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const netuid = 1;
const name = 0;

const result = await api.query.SubtensorModule.TransactionKeyLastBlock.getValue(hot, netuid, name);
console.log("TransactionKeyLastBlock:", result);

TransferToggle

storage details

Whether alpha transfers are enabled per subnet.

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

Keys

NameTypeFormatDescription
netuidNetUid——
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 TransferToggle storage
const netuid = 1;

const result = await api.query.SubtensorModule.TransferToggle.getValue(netuid);
console.log("TransferToggle:", result);

TxChildkeyTakeRateLimit

storage details

Rate limit for childkey take changes.

Modifier: Default Keys: 0 Returns: u64 (Integer)
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 TxChildkeyTakeRateLimit storage (no keys - plain value)
const result = await api.query.SubtensorModule.TxChildkeyTakeRateLimit.getValue();
console.log("TxChildkeyTakeRateLimit:", result);

TxDelegateTakeRateLimit

storage details

Rate limit for delegate take changes.

Modifier: Default Keys: 0 Returns: u64 (Integer)
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 TxDelegateTakeRateLimit storage (no keys - plain value)
const result = await api.query.SubtensorModule.TxDelegateTakeRateLimit.getValue();
console.log("TxDelegateTakeRateLimit:", result);

TxRateLimit

storage details

General transaction rate limit.

Modifier: Default Keys: 0 Returns: u64 (Integer)
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 TxRateLimit storage (no keys - plain value)
const result = await api.query.SubtensorModule.TxRateLimit.getValue();
console.log("TxRateLimit:", result);

Uids

storage details

UID assigned to a hotkey on a subnet.

Modifier: Optional Keys: 2 Returns: u16 (Integer (0-65535))

Keys

NameTypeFormatDescription
netuidNetUid——
hotkeyAccountIdSS58 Address—
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 Uids storage
const netuid = 1;
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.Uids.getValue(netuid, hotkey);
console.log("Uids:", result);

UnconvertedGammaEmission

storage details

Double map (netuid, target) to the alpha of subnet netuid, in alpha-RAO (u64), allotted to its gamma share of target and not yet converted into gamma.

Modifier: Default Keys: 2 Returns: AlphaBalance

Keys

NameTypeFormatDescription
netuidNetUid——
targetNetUid——
// ----------------------------------------------------------------------
// 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 UnconvertedGammaEmission storage
const netuid = 1;
const target = undefined as any /* NetUid — replace with real value */;

const result = await api.query.SubtensorModule.UnconvertedGammaEmission.getValue(netuid, target);
console.log("UnconvertedGammaEmission:", result);

UnlockRate

storage details

Decay timescale in blocks for the locked mass itself. ITEM.

Modifier: Default Keys: 0 Returns: u64 (Integer)
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 UnlockRate storage (no keys - plain value)
const result = await api.query.SubtensorModule.UnlockRate.getValue();
console.log("UnlockRate:", result);

UsedWork

storage details

Every PoW work blob accepted by registration, mapped to the block it was submitted at. Write-only.

Modifier: Default Keys: 1 Returns: u64 (Integer)

Keys

NameTypeFormatDescription
key1Vec<u8>Array of Integer (0-255)—
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 UsedWork storage
const key1 = Binary.fromOpaque(new Uint8Array(0));

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

ValidatorPermit

storage details

Whether a neuron has validator permit.

Modifier: Default Keys: 1 Returns: Vec<bool> (Array of Boolean (true/false))

Keys

NameTypeFormatDescription
netuidNetUid——
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 ValidatorPermit storage
const netuid = 1;

const result = await api.query.SubtensorModule.ValidatorPermit.getValue(netuid);
console.log("ValidatorPermit:", result);

ValidatorPruneLen

storage details

Per-subnet u64 that no runtime path reads since v216. Reads 1 on subnet 1 at v454.

Modifier: Default Keys: 1 Returns: u64 (Integer)

Keys

NameTypeFormatDescription
netuidNetUid——
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 ValidatorPruneLen storage
const netuid = 1;

const result = await api.query.SubtensorModule.ValidatorPruneLen.getValue(netuid);
console.log("ValidatorPruneLen:", result);

ValidatorTrust

storage details

Validator-specific trust scores.

Modifier: Default Keys: 1 Returns: Vec<PerU16> (Array of PerU16)

Keys

NameTypeFormatDescription
netuidNetUid——
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 ValidatorTrust storage
const netuid = 1;

const result = await api.query.SubtensorModule.ValidatorTrust.getValue(netuid);
console.log("ValidatorTrust:", result);

VotingPower

storage details

DMAP ( netuid, hotkey ) --> voting_power | EMA of stake for voting

Modifier: Default Keys: 2 Returns: u64 (Integer)

Keys

NameTypeFormatDescription
netuidNetUid——
hotkeyAccountIdSS58 Address—
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 VotingPower storage
const netuid = 1;
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.VotingPower.getValue(netuid, hotkey);
console.log("VotingPower:", result);

VotingPowerDisableAtBlock

storage details

MAP ( netuid ) --> block_number | Block at which voting power tracking will be disabled.

Modifier: Default Keys: 1 Returns: u64 (Integer)

Keys

NameTypeFormatDescription
netuidNetUid——
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 VotingPowerDisableAtBlock storage
const netuid = 1;

const result = await api.query.SubtensorModule.VotingPowerDisableAtBlock.getValue(netuid);
console.log("VotingPowerDisableAtBlock:", result);

VotingPowerEmaAlpha

storage details

MAP ( netuid ) --> u64 | EMA alpha value for voting power calculation.

Modifier: Default Keys: 1 Returns: u64 (Integer)

Keys

NameTypeFormatDescription
netuidNetUid——
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 VotingPowerEmaAlpha storage
const netuid = 1;

const result = await api.query.SubtensorModule.VotingPowerEmaAlpha.getValue(netuid);
console.log("VotingPowerEmaAlpha:", result);

VotingPowerTrackingEnabled

storage details

MAP ( netuid ) --> bool | Whether voting power tracking is enabled for this subnet.

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

Keys

NameTypeFormatDescription
netuidNetUid——
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 VotingPowerTrackingEnabled storage
const netuid = 1;

const result = await api.query.SubtensorModule.VotingPowerTrackingEnabled.getValue(netuid);
console.log("VotingPowerTrackingEnabled:", result);

WeightCommits

storage details

Committed weight hashes awaiting reveal.

Modifier: Optional Keys: 2 Returns: Vec<(H256, u64, u64, u64)> (Array of (H256, u64, u64, u64))

Keys

NameTypeFormatDescription
netuidNetUidStorageIndex——
whoAccountIdSS58 Address—
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 WeightCommits storage
const netuid = 1;
const who = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";

const result = await api.query.SubtensorModule.WeightCommits.getValue(netuid, who);
console.log("WeightCommits:", result);

Weights

storage details

Weight matrix set by validators on a subnet.

Modifier: Default Keys: 2 Returns: Vec<(u16, u16)> (Array of (u16, u16))

Keys

NameTypeFormatDescription
netuidNetUidStorageIndex——
uidu16Integer (0-65535)—
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 Weights storage
const netuid = 1;
const uid = 0;

const result = await api.query.SubtensorModule.Weights.getValue(netuid, uid);
console.log("Weights:", result);

WeightsSetRateLimit

storage details

Rate limit for weight setting per subnet.

Modifier: Default Keys: 1 Returns: u64 (Integer)

Keys

NameTypeFormatDescription
netuidNetUid——
Modified by: register_network
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 WeightsSetRateLimit storage
const netuid = 1;

const result = await api.query.SubtensorModule.WeightsSetRateLimit.getValue(netuid);
console.log("WeightsSetRateLimit:", result);

WeightsVersionKey

storage details

Required version key for setting weights.

Modifier: Default Keys: 1 Returns: u64 (Integer)

Keys

NameTypeFormatDescription
netuidNetUid——
Modified by: register_network
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 WeightsVersionKey storage
const netuid = 1;

const result = await api.query.SubtensorModule.WeightsVersionKey.getValue(netuid);
console.log("WeightsVersionKey:", result);

WeightsVersionKeyRateLimit

storage details

Rate limit for weights version key changes.

Modifier: Default Keys: 0 Returns: u64 (Integer)
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 WeightsVersionKeyRateLimit storage (no keys - plain value)
const result = await api.query.SubtensorModule.WeightsVersionKeyRateLimit.getValue();
console.log("WeightsVersionKeyRateLimit:", result);

Yuma3On

storage details

Whether Yuma3 consensus is enabled per subnet.

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

Keys

NameTypeFormatDescription
netuidNetUid——
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 Yuma3On storage
const netuid = 1;

const result = await api.query.SubtensorModule.Yuma3On.getValue(netuid);
console.log("Yuma3On:", result);

Constants 70

AlphaHigh

constant details

Upper bound for alpha parameter.

Type: u16
Value: 58982
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 AlphaHigh constant
const value = await api.constants.SubtensorModule.AlphaHigh();
console.log("AlphaHigh:", value);

AlphaLow

constant details

Lower bound for alpha parameter.

Type: u16
Value: 45875
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 AlphaLow constant
const value = await api.constants.SubtensorModule.AlphaLow();
console.log("AlphaLow:", value);

BurnAccountId

constant details

PalletId used to derive the on-chain burn account (b"burntnsr").

Type: PalletId
Value (hex): 0x6275726e746e7372
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 BurnAccountId constant
const value = await api.constants.SubtensorModule.BurnAccountId();
console.log("BurnAccountId:", value);

HotkeySwapOnSubnetInterval

constant details

Blocks between allowed hotkey swaps on subnet.

Type: u64
Value: "7200"
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 HotkeySwapOnSubnetInterval constant
const value = await api.constants.SubtensorModule.HotkeySwapOnSubnetInterval();
console.log("HotkeySwapOnSubnetInterval:", value);
// Balance: divide by 10^9 for TAO
const tao = value / 1_000_000_000n;

InitialActivityCutoff

constant details

Initial blocks of inactivity before neuron is pruned.

Type: u16
Value: 5000
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 InitialActivityCutoff constant
const value = await api.constants.SubtensorModule.InitialActivityCutoff();
console.log("InitialActivityCutoff:", value);

InitialAdjustmentAlpha

constant details

Initial alpha parameter for difficulty adjustment.

Type: u64
Value: "0"
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 InitialAdjustmentAlpha constant
const value = await api.constants.SubtensorModule.InitialAdjustmentAlpha();
console.log("InitialAdjustmentAlpha:", value);
// Balance: divide by 10^9 for TAO
const tao = value / 1_000_000_000n;

InitialAdjustmentInterval

constant details

Initial blocks between difficulty adjustments.

Type: u16
Value: 100
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 InitialAdjustmentInterval constant
const value = await api.constants.SubtensorModule.InitialAdjustmentInterval();
console.log("InitialAdjustmentInterval:", value);

InitialAlphaSigmoidSteepness

constant details

Initial steepness of alpha sigmoid curve.

Type: i16
Value: 1000
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 InitialAlphaSigmoidSteepness constant
const value = await api.constants.SubtensorModule.InitialAlphaSigmoidSteepness();
console.log("InitialAlphaSigmoidSteepness:", value);

InitialBondsMovingAverage

constant details

Initial moving average period for bond calculations.

Type: u64
Value: "900000"
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 InitialBondsMovingAverage constant
const value = await api.constants.SubtensorModule.InitialBondsMovingAverage();
console.log("InitialBondsMovingAverage:", value);
// Balance: divide by 10^9 for TAO
const tao = value / 1_000_000_000n;

InitialBondsPenalty

constant details

Initial penalty factor for bond calculations.

Type: u16
Value: 65535
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 InitialBondsPenalty constant
const value = await api.constants.SubtensorModule.InitialBondsPenalty();
console.log("InitialBondsPenalty:", value);

InitialBondsResetOn

constant details

Initial setting for bonds reset behavior.

Type: bool
Value: 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 InitialBondsResetOn constant
const value = await api.constants.SubtensorModule.InitialBondsResetOn();
console.log("InitialBondsResetOn:", value);

InitialBurn

constant details

Initial TAO burn cost for registration.

Type: TaoBalance
Value: "100000000"
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 InitialBurn constant
const value = await api.constants.SubtensorModule.InitialBurn();
console.log("InitialBurn:", value);
// Balance: divide by 10^9 for TAO
const tao = value / 1_000_000_000n;

InitialColdkeySwapAnnouncementDelay

constant details

Genesis default for the coldkey swap announcement delay, in blocks.

Type: u32
Value: 36000
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 InitialColdkeySwapAnnouncementDelay constant
const value = await api.constants.SubtensorModule.InitialColdkeySwapAnnouncementDelay();
console.log("InitialColdkeySwapAnnouncementDelay:", value);

InitialColdkeySwapReannouncementDelay

constant details

Genesis default for the coldkey swap reannouncement delay, in blocks.

Type: u32
Value: 7200
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 InitialColdkeySwapReannouncementDelay constant
const value = await api.constants.SubtensorModule.InitialColdkeySwapReannouncementDelay();
console.log("InitialColdkeySwapReannouncementDelay:", value);

InitialDefaultChildKeyTake

constant details

Initial default take for child hotkeys.

Type: u16
Value: 0
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 InitialDefaultChildKeyTake constant
const value = await api.constants.SubtensorModule.InitialDefaultChildKeyTake();
console.log("InitialDefaultChildKeyTake:", value);

InitialDefaultDelegateTake

constant details

Initial default commission rate for new delegates.

Type: u16
Value: 11796
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 InitialDefaultDelegateTake constant
const value = await api.constants.SubtensorModule.InitialDefaultDelegateTake();
console.log("InitialDefaultDelegateTake:", value);

InitialDifficulty

constant details

Initial proof-of-work difficulty for registration.

Type: u64
Value: "10000000"
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 InitialDifficulty constant
const value = await api.constants.SubtensorModule.InitialDifficulty();
console.log("InitialDifficulty:", value);
// Balance: divide by 10^9 for TAO
const tao = value / 1_000_000_000n;

InitialDissolveNetworkScheduleDuration

constant details

Initial duration before network dissolution executes.

Type: u32
Value: 36000
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 InitialDissolveNetworkScheduleDuration constant
const value = await api.constants.SubtensorModule.InitialDissolveNetworkScheduleDuration();
console.log("InitialDissolveNetworkScheduleDuration:", value);

InitialEmaPriceHalvingPeriod

constant details

Initial EMA price halving period in blocks.

Type: u64
Value: "201600"
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 InitialEmaPriceHalvingPeriod constant
const value = await api.constants.SubtensorModule.InitialEmaPriceHalvingPeriod();
console.log("InitialEmaPriceHalvingPeriod:", value);
// Balance: divide by 10^9 for TAO
const tao = value / 1_000_000_000n;

InitialEmissionValue

constant details

Initial emission ratio for new subnets.

Type: u16
Value: 0
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 InitialEmissionValue constant
const value = await api.constants.SubtensorModule.InitialEmissionValue();
console.log("InitialEmissionValue:", value);

InitialImmunityPeriod

constant details

Initial immunity period for new neurons.

Type: u16
Value: 4096
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 InitialImmunityPeriod constant
const value = await api.constants.SubtensorModule.InitialImmunityPeriod();
console.log("InitialImmunityPeriod:", value);

InitialIssuance

constant details

Initial TAO supply at genesis.

Type: TaoBalance
Value: "0"
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 InitialIssuance constant
const value = await api.constants.SubtensorModule.InitialIssuance();
console.log("InitialIssuance:", value);
// Balance: divide by 10^9 for TAO
const tao = value / 1_000_000_000n;

InitialKappa

constant details

Initial kappa parameter for consensus.

Type: u16
Value: 32767
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 InitialKappa constant
const value = await api.constants.SubtensorModule.InitialKappa();
console.log("InitialKappa:", value);

InitialMaxAllowedUids

constant details

Initial maximum neurons per subnet.

Type: u16
Value: 256
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 InitialMaxAllowedUids constant
const value = await api.constants.SubtensorModule.InitialMaxAllowedUids();
console.log("InitialMaxAllowedUids:", value);

InitialMaxAllowedValidators

constant details

Initial maximum validators per subnet.

Type: u16
Value: 128
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 InitialMaxAllowedValidators constant
const value = await api.constants.SubtensorModule.InitialMaxAllowedValidators();
console.log("InitialMaxAllowedValidators:", value);

InitialMaxBurn

constant details

Initial maximum burn cost for registration.

Type: TaoBalance
Value: "100000000000"
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 InitialMaxBurn constant
const value = await api.constants.SubtensorModule.InitialMaxBurn();
console.log("InitialMaxBurn:", value);
// Balance: divide by 10^9 for TAO
const tao = value / 1_000_000_000n;

InitialMaxChildKeyTake

constant details

Initial maximum child key take rate.

Type: u16
Value: 11796
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 InitialMaxChildKeyTake constant
const value = await api.constants.SubtensorModule.InitialMaxChildKeyTake();
console.log("InitialMaxChildKeyTake:", value);

InitialMaxDifficulty

constant details

Initial maximum POW difficulty.

Type: u64
Value: "4611686018427387903"
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 InitialMaxDifficulty constant
const value = await api.constants.SubtensorModule.InitialMaxDifficulty();
console.log("InitialMaxDifficulty:", value);
// Balance: divide by 10^9 for TAO
const tao = value / 1_000_000_000n;

InitialMaxEpochsPerBlock

constant details

Initial per-block cap on subnet epochs executed in a single block_step.

Type: u8
Value: 2
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 InitialMaxEpochsPerBlock constant
const value = await api.constants.SubtensorModule.InitialMaxEpochsPerBlock();
console.log("InitialMaxEpochsPerBlock:", value);

InitialMaxRegistrationsPerBlock

constant details

Initial max registrations allowed per block.

Type: u16
Value: 1
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 InitialMaxRegistrationsPerBlock constant
const value = await api.constants.SubtensorModule.InitialMaxRegistrationsPerBlock();
console.log("InitialMaxRegistrationsPerBlock:", value);

InitialMinAllowedUids

constant details

Initial minimum UIDs required on subnet.

Type: u16
Value: 64
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 InitialMinAllowedUids constant
const value = await api.constants.SubtensorModule.InitialMinAllowedUids();
console.log("InitialMinAllowedUids:", value);

InitialMinAllowedWeights

constant details

Initial minimum number of weights a validator must set.

Type: u16
Value: 1024
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 InitialMinAllowedWeights constant
const value = await api.constants.SubtensorModule.InitialMinAllowedWeights();
console.log("InitialMinAllowedWeights:", value);

InitialMinBurn

constant details

Initial minimum burn cost for registration.

Type: TaoBalance
Value: "500000"
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 InitialMinBurn constant
const value = await api.constants.SubtensorModule.InitialMinBurn();
console.log("InitialMinBurn:", value);
// Balance: divide by 10^9 for TAO
const tao = value / 1_000_000_000n;

InitialMinChildKeyTake

constant details

Initial minimum child key take rate.

Type: u16
Value: 0
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 InitialMinChildKeyTake constant
const value = await api.constants.SubtensorModule.InitialMinChildKeyTake();
console.log("InitialMinChildKeyTake:", value);

InitialMinDelegateTake

constant details

Initial minimum delegate commission rate.

Type: u16
Value: 0
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 InitialMinDelegateTake constant
const value = await api.constants.SubtensorModule.InitialMinDelegateTake();
console.log("InitialMinDelegateTake:", value);

InitialMinDifficulty

constant details

Initial minimum POW difficulty.

Type: u64
Value: "10000000"
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 InitialMinDifficulty constant
const value = await api.constants.SubtensorModule.InitialMinDifficulty();
console.log("InitialMinDifficulty:", value);
// Balance: divide by 10^9 for TAO
const tao = value / 1_000_000_000n;

InitialMinStake

constant details

Initial minimum stake, in rao.

Type: TaoBalance
Value: "2000000"
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 InitialMinStake constant
const value = await api.constants.SubtensorModule.InitialMinStake();
console.log("InitialMinStake:", value);
// Balance: divide by 10^9 for TAO
const tao = value / 1_000_000_000n;

InitialMinTransfer

constant details

Initial minimum stake transfer amount.

Type: TaoBalance
Value: "100000"
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 InitialMinTransfer constant
const value = await api.constants.SubtensorModule.InitialMinTransfer();
console.log("InitialMinTransfer:", value);
// Balance: divide by 10^9 for TAO
const tao = value / 1_000_000_000n;

InitialNetworkImmunityPeriod

constant details

Initial immunity period for new subnets (in blocks).

Type: u64
Value: "1296000"
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 InitialNetworkImmunityPeriod constant
const value = await api.constants.SubtensorModule.InitialNetworkImmunityPeriod();
console.log("InitialNetworkImmunityPeriod:", value);
// Balance: divide by 10^9 for TAO
const tao = value / 1_000_000_000n;

InitialNetworkLockReductionInterval

constant details

Initial blocks between lock cost reductions.

Type: u64
Value: "100800"
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 InitialNetworkLockReductionInterval constant
const value = await api.constants.SubtensorModule.InitialNetworkLockReductionInterval();
console.log("InitialNetworkLockReductionInterval:", value);
// Balance: divide by 10^9 for TAO
const tao = value / 1_000_000_000n;

InitialNetworkMinLockCost

constant details

Initial minimum TAO required to lock for subnet creation.

Type: TaoBalance
Value: "1000000000000"
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 InitialNetworkMinLockCost constant
const value = await api.constants.SubtensorModule.InitialNetworkMinLockCost();
console.log("InitialNetworkMinLockCost:", value);
// Balance: divide by 10^9 for TAO
const tao = value / 1_000_000_000n;

InitialNetworkRateLimit

constant details

Initial blocks between allowed subnet creations.

Type: u64
Value: "7200"
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 InitialNetworkRateLimit constant
const value = await api.constants.SubtensorModule.InitialNetworkRateLimit();
console.log("InitialNetworkRateLimit:", value);
// Balance: divide by 10^9 for TAO
const tao = value / 1_000_000_000n;

InitialPruningScore

constant details

Initial pruning score assigned to new neurons.

Type: u16
Value: 65535
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 InitialPruningScore constant
const value = await api.constants.SubtensorModule.InitialPruningScore();
console.log("InitialPruningScore:", value);

InitialRAORecycledForRegistration

constant details

Default value seeding the per-subnet RAORecycledForRegistration storage map.

Type: TaoBalance
Value: "0"
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 InitialRAORecycledForRegistration constant
const value = await api.constants.SubtensorModule.InitialRAORecycledForRegistration();
console.log("InitialRAORecycledForRegistration:", value);
// Balance: divide by 10^9 for TAO
const tao = value / 1_000_000_000n;

InitialRho

constant details

Initial rho parameter for emission formula.

Type: u16
Value: 10
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 InitialRho constant
const value = await api.constants.SubtensorModule.InitialRho();
console.log("InitialRho:", value);

InitialScalingLawPower

constant details

Initial power factor for scaling law calculations.

Type: u16
Value: 50
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 InitialScalingLawPower constant
const value = await api.constants.SubtensorModule.InitialScalingLawPower();
console.log("InitialScalingLawPower:", value);

InitialServingRateLimit

constant details

Initial blocks between serving info updates.

Type: u64
Value: "50"
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 InitialServingRateLimit constant
const value = await api.constants.SubtensorModule.InitialServingRateLimit();
console.log("InitialServingRateLimit:", value);
// Balance: divide by 10^9 for TAO
const tao = value / 1_000_000_000n;

InitialStartCallDelay

constant details

Initial delay before subnets can start emissions.

Type: u64
Value: "0"
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 InitialStartCallDelay constant
const value = await api.constants.SubtensorModule.InitialStartCallDelay();
console.log("InitialStartCallDelay:", value);
// Balance: divide by 10^9 for TAO
const tao = value / 1_000_000_000n;

InitialSubnetOwnerCut

constant details

Initial percentage of emissions going to subnet owner.

Type: u16
Value: 11796
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 InitialSubnetOwnerCut constant
const value = await api.constants.SubtensorModule.InitialSubnetOwnerCut();
console.log("InitialSubnetOwnerCut:", value);

InitialTaoWeight

constant details

Initial weight of TAO in pool calculations.

Type: u64
Value: "971718665099567868"
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 InitialTaoWeight constant
const value = await api.constants.SubtensorModule.InitialTaoWeight();
console.log("InitialTaoWeight:", value);
// Balance: divide by 10^9 for TAO
const tao = value / 1_000_000_000n;

InitialTargetRegistrationsPerInterval

constant details

Target number of registrations per adjustment interval.

Type: u16
Value: 2
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 InitialTargetRegistrationsPerInterval constant
const value = await api.constants.SubtensorModule.InitialTargetRegistrationsPerInterval();
console.log("InitialTargetRegistrationsPerInterval:", value);

InitialTempo

constant details

Initial tempo (blocks between emissions) for new subnets.

Type: u16
Value: 360
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 InitialTempo constant
const value = await api.constants.SubtensorModule.InitialTempo();
console.log("InitialTempo:", value);

InitialTxChildKeyTakeRateLimit

constant details

Initial rate limit for child key take changes.

Type: u64
Value: "216000"
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 InitialTxChildKeyTakeRateLimit constant
const value = await api.constants.SubtensorModule.InitialTxChildKeyTakeRateLimit();
console.log("InitialTxChildKeyTakeRateLimit:", value);
// Balance: divide by 10^9 for TAO
const tao = value / 1_000_000_000n;

InitialTxDelegateTakeRateLimit

constant details

Initial rate limit for delegate take changes.

Type: u64
Value: "216000"
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 InitialTxDelegateTakeRateLimit constant
const value = await api.constants.SubtensorModule.InitialTxDelegateTakeRateLimit();
console.log("InitialTxDelegateTakeRateLimit:", value);
// Balance: divide by 10^9 for TAO
const tao = value / 1_000_000_000n;

InitialTxRateLimit

constant details

Initial blocks between allowed transactions for rate limiting.

Type: u64
Value: "1000"
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 InitialTxRateLimit constant
const value = await api.constants.SubtensorModule.InitialTxRateLimit();
console.log("InitialTxRateLimit:", value);
// Balance: divide by 10^9 for TAO
const tao = value / 1_000_000_000n;

InitialValidatorPruneLen

constant details

Initial number of validators considered for pruning.

Type: u64
Value: "1"
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 InitialValidatorPruneLen constant
const value = await api.constants.SubtensorModule.InitialValidatorPruneLen();
console.log("InitialValidatorPruneLen:", value);
// Balance: divide by 10^9 for TAO
const tao = value / 1_000_000_000n;

InitialWeightsVersionKey

constant details

Initial version key required for setting weights.

Type: u64
Value: "0"
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 InitialWeightsVersionKey constant
const value = await api.constants.SubtensorModule.InitialWeightsVersionKey();
console.log("InitialWeightsVersionKey:", value);
// Balance: divide by 10^9 for TAO
const tao = value / 1_000_000_000n;

KeySwapCost

constant details

Cost to swap a hotkey.

Type: TaoBalance
Value: "100000000"
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 KeySwapCost constant
const value = await api.constants.SubtensorModule.KeySwapCost();
console.log("KeySwapCost:", value);
// Balance: divide by 10^9 for TAO
const tao = value / 1_000_000_000n;

KeySwapOnSubnetCost

constant details

Cost to swap a hotkey on a specific subnet.

Type: TaoBalance
Value: "1000000"
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 KeySwapOnSubnetCost constant
const value = await api.constants.SubtensorModule.KeySwapOnSubnetCost();
console.log("KeySwapOnSubnetCost:", value);
// Balance: divide by 10^9 for TAO
const tao = value / 1_000_000_000n;

LeaseDividendsDistributionInterval

constant details

Blocks between lease dividend distributions.

Type: u32
Value: 100
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 LeaseDividendsDistributionInterval constant
const value = await api.constants.SubtensorModule.LeaseDividendsDistributionInterval();
console.log("LeaseDividendsDistributionInterval:", value);

LiquidAlphaOn

constant details

Flag indicating if Liquid Alpha is enabled.

Type: bool
Value: 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 LiquidAlphaOn constant
const value = await api.constants.SubtensorModule.LiquidAlphaOn();
console.log("LiquidAlphaOn:", value);

MaxActivityCutoffFactorMilli

constant details

Upper bound for the owner-set activity-cutoff factor, in per-mille.

Type: u32
Value: 50000
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 MaxActivityCutoffFactorMilli constant
const value = await api.constants.SubtensorModule.MaxActivityCutoffFactorMilli();
console.log("MaxActivityCutoffFactorMilli:", value);

MaxBurnLowerBound

constant details

Lower bound for maximum burn value.

Type: TaoBalance
Value: "100000000"
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 MaxBurnLowerBound constant
const value = await api.constants.SubtensorModule.MaxBurnLowerBound();
console.log("MaxBurnLowerBound:", value);
// Balance: divide by 10^9 for TAO
const tao = value / 1_000_000_000n;

MaxImmuneUidsPercentage

constant details

Maximum percentage of UIDs that can be immune.

Type: Percent
Value: 80
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 MaxImmuneUidsPercentage constant
const value = await api.constants.SubtensorModule.MaxImmuneUidsPercentage();
console.log("MaxImmuneUidsPercentage:", value);

MaxTempo

constant details

Upper bound for owner-set tempo, in blocks.

Type: u16
Value: 50400
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 MaxTempo constant
const value = await api.constants.SubtensorModule.MaxTempo();
console.log("MaxTempo:", value);

MinActivityCutoffFactorMilli

constant details

Lower bound for the owner-set activity-cutoff factor, in per-mille.

Type: u32
Value: 1000
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 MinActivityCutoffFactorMilli constant
const value = await api.constants.SubtensorModule.MinActivityCutoffFactorMilli();
console.log("MinActivityCutoffFactorMilli:", value);

MinBurnUpperBound

constant details

Upper bound for minimum burn value.

Type: TaoBalance
Value: "1000000000"
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 MinBurnUpperBound constant
const value = await api.constants.SubtensorModule.MinBurnUpperBound();
console.log("MinBurnUpperBound:", value);
// Balance: divide by 10^9 for TAO
const tao = value / 1_000_000_000n;

MinTempo

constant details

Lower bound for owner-set tempo, in blocks.

Type: u16
Value: 360
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 MinTempo constant
const value = await api.constants.SubtensorModule.MinTempo();
console.log("MinTempo:", value);

SubtensorPalletId

constant details

PalletId used to derive per-subnet sovereign account IDs (b"subtensr").

Type: PalletId
Value (hex): 0x73756274656e7372
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 SubtensorPalletId constant
const value = await api.constants.SubtensorModule.SubtensorPalletId();
console.log("SubtensorPalletId:", value);

Yuma3On

constant details

Flag indicating if Yuma3 consensus is enabled.

Type: bool
Value: 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 Yuma3On constant
const value = await api.constants.SubtensorModule.Yuma3On();
console.log("Yuma3On:", value);

Errors 207

RootNetworkDoesNotExist

error details #0

The root network (netuid 0) doesn't exist or isn't accessible.

Common Causes

  • Root network not initialized
  • Network configuration issue

How to Fix

This is typically a network-level issue,Verify you're on a properly configured network

Thrown by: root_register

InvalidIpType

error details #1

The user is trying to serve an axon which is not of type 4 (IPv4) or 6 (IPv6).

Common Causes

  • Using invalid IP type value
  • IP type must be 4 or 6

How to Fix

Use type 4 for IPv4 addresses,Use type 6 for IPv6 addresses,Only these two types are supported

InvalidIpAddress

error details #2

An invalid IP address was passed to the serve function.

Common Causes

  • Malformed IP address
  • Reserved or invalid IP range
  • IP does not match declared type

How to Fix

Provide a valid public IP address,Ensure IP format matches type (IPv4 or IPv6),Avoid reserved IP ranges

InvalidPort

error details #3

An invalid port was passed to the serve function.

Common Causes

  • Port number out of valid range (1-65535)
  • Using reserved port number
  • Port 0 not allowed

How to Fix

Use a valid port number (1-65535),Avoid commonly reserved ports,Ensure port is accessible

HotKeyNotRegisteredInSubNet

error details #4

The hotkey you're trying to interact with is not registered on the specified subnet.

Common Causes

  • Hotkey was never registered on this subnet
  • Hotkey was deregistered due to low stake/performance
  • Using wrong netuid for this hotkey

How to Fix

Check SubtensorModule.Uids to verify registration,Register the hotkey first using register or burned_register,Verify you're using the correct netuid

HotKeyAccountNotExists

error details #5

The hotkey account does not exist.

Common Causes

  • Using a hotkey that was never created
  • Typo in hotkey address
  • Account not funded/initialized

How to Fix

Verify the hotkey address is correct,Create/fund the hotkey account first,Check if hotkey is registered anywhere

HotKeyNotRegisteredInNetwork

error details #6

The hotkey is not registered in any subnet.

Common Causes

  • Hotkey was never registered
  • Hotkey was deregistered from all subnets

How to Fix

Register the hotkey on a subnet first,Check registration status across subnets

NonAssociatedColdKey

error details #7

The coldkey you're using is not associated with this hotkey for staking operations.

Common Causes

  • Trying to unstake from a hotkey you didn't stake to
  • Using the wrong coldkey for this operation
  • Stake relationship doesn't exist

How to Fix

Verify you're using the correct coldkey that originally staked,Check SubtensorModule.StakingHotkeys to see your stake relationships,Use the coldkey that has stake on this hotkey

NotEnoughStake

error details #8

The caller does not have enough stake to perform this action.

Common Causes

  • Insufficient stake for the operation
  • Stake was reduced below required threshold
  • Operation requires minimum stake

How to Fix

Add more stake to your hotkey,Check minimum stake requirements,Verify stake was not recently removed

NotEnoughStakeToWithdraw

error details #9

You're trying to unstake more TAO than you have staked to this hotkey.

Common Causes

  • Unstake amount exceeds your stake on this hotkey
  • Stake was already removed in a previous transaction
  • Checking the wrong hotkey or subnet

How to Fix

Query SubtensorModule.Stake to check your current stake,Verify you're using the correct hotkey and netuid,Reduce unstake amount to match available stake

NotEnoughStakeToSetWeights

error details #10

Your hotkey doesn't have enough stake to set weights on this subnet.

Common Causes

  • Stake below minimum required for validators
  • Recently unstaked and dropped below threshold
  • Different subnets have different stake requirements

How to Fix

Check your current stake with SubtensorModule.TotalHotkeyStake,Increase stake to meet validator requirements,Verify stake requirements for this specific subnet

NotEnoughStakeToSetChildkeys

error details #11

The parent hotkey needs more stake to set child keys.

Common Causes

  • Parent's own stake is below the required minimum
  • Stake from delegators doesn't count - only own stake

How to Fix

Increase stake on the parent hotkey,Check the minimum stake requirement for child keys

Thrown by: set_children

NotEnoughBalanceToStake

error details #12

Your coldkey doesn't have enough free TAO to complete the staking operation.

Common Causes

  • Trying to stake more TAO than your available balance
  • Not accounting for transaction fees (existential deposit)
  • Balance is locked in other stakes or reserves

How to Fix

Check your free balance with System.Account query,Ensure stake_amount + fees < free_balance,Check Balances.Locks to see if funds are locked elsewhere

BalanceWithdrawalError

error details #13

An error occurred while withdrawing balance.

Common Causes

  • Underlying balance operation failed
  • Insufficient funds or locked balance

How to Fix

Check your free balance,Verify no locks prevent withdrawal

Thrown by: add_stake

ZeroBalanceAfterWithdrawn

error details #14

Unsuccessfully withdraw, balance could be zero after withdrawal.

Common Causes

  • Withdrawal would leave account with zero balance
  • Account cannot exist with zero balance
  • Existential deposit violation

How to Fix

Leave minimum balance in account,Use transfer_allow_death if emptying intentionally,Check existential deposit requirements

NeuronNoValidatorPermit

error details #15

The caller is attempting to set non-self weights without being a permitted validator.

Common Causes

  • Not enough stake for validator status
  • Not in top N validators by stake
  • Trying to set weights without permit

How to Fix

Increase stake to get validator permit,Check MaxAllowedValidators for the subnet,Only top validators can set weights on others

Thrown by: set_weights

WeightVecNotEqualSize

error details #16

The caller is attempting to set weight keys and values but these vectors have different size.

Common Causes

  • UID array and weight array have different lengths
  • Mismatched input vectors

How to Fix

Ensure uid[] and weights[] arrays have same length,Each UID must have exactly one weight value

DuplicateUids

error details #17

The caller is attempting to set weights with duplicate UIDs.

Common Causes

  • Same UID appears multiple times in weight array
  • Duplicate entries in uid vector

How to Fix

Remove duplicate UIDs from the weight array,Ensure each UID appears only once,Deduplicate before submitting

UidVecContainInvalidOne

error details #18

The caller is attempting to set weight to at least one UID that does not exist.

Common Causes

  • UID not registered on subnet
  • UID was deregistered
  • Invalid UID in weight array

How to Fix

Verify all UIDs exist on the subnet,Remove invalid UIDs from weight array,Refresh UID list before setting weights

WeightVecLengthIsLow

error details #19

The dispatch is attempting to set weights on chain with fewer elements than allowed.

Common Causes

  • Weight array too small
  • Minimum weight entries required
  • Not enough UIDs in weight vector

How to Fix

Include more UIDs in weight array,Check minimum weight vector length,Set weights for more neurons

TooManyRegistrationsThisBlock

error details #20

The registration rate limit for this block has been exceeded.

Common Causes

  • Too many registrations happening network-wide
  • High demand period for this subnet
  • Bot activity consuming registration slots

How to Fix

Wait a few blocks and retry,Try during lower-activity periods,Consider using burned_register if available

HotKeyAlreadyRegisteredInSubNet

error details #21

This hotkey is already registered on the specified subnet.

Common Causes

  • Attempting to register a hotkey that's already registered
  • Previous registration succeeded but you didn't see confirmation

How to Fix

Check SubtensorModule.Uids to confirm registration status,If already registered, you can proceed with other operations,Use a different hotkey if you need another registration

NewHotKeyIsSameWithOld

error details #22

The new hotkey address is the same as the old hotkey.

Common Causes

  • Passing the same hotkey for both old and new parameters
  • Typo in hotkey addresses

How to Fix

Verify the new hotkey is different from the existing one,Generate a new hotkey if swapping is intended

Thrown by: swap_hotkey

NewHotKeyNotCleanForRootSwap

error details #23

The new hotkey has outstanding root claimable or non-zero root stake, so the root rate-book cannot be merged without misallocating dividends.

How to Fix

InvalidWorkBlock

error details #24

The supplied PoW hash block is in the future or negative.

Common Causes

  • Using block number from the future
  • PoW work expired (too old)
  • Block number invalid

How to Fix

Use current or recent block number,Regenerate PoW if expired,Check block number validity

InvalidDifficulty

error details #25

The supplied PoW hash block does not meet the network difficulty.

Common Causes

  • PoW solution below required difficulty
  • Difficulty increased since starting work
  • Invalid proof of work

How to Fix

Generate new PoW meeting current difficulty,Check current difficulty before submission,Use burned_register as alternative

InvalidSeal

error details #26

The supplied PoW hash seal does not match the supplied work.

Common Causes

  • PoW seal does not verify against submitted work
  • Tampered or incorrect seal
  • Mismatch between work and seal

How to Fix

Regenerate PoW with correct seal,Ensure seal matches the work exactly,Do not modify work after generating seal

MaxWeightExceeded

error details #27

Weight value exceeds the maximum limit (currently u16::MAX).

Common Causes

  • Individual weight value too high
  • Weight exceeds u16 maximum (65535)

How to Fix

Cap weight values at u16::MAX (65535),Normalize weights to fit within limits

HotKeyAlreadyDelegate

error details #28

This hotkey is already registered as a delegate.

Common Causes

  • Called become_delegate on an already-delegate hotkey
  • Previous delegate registration succeeded

How to Fix

Check SubtensorModule.Delegates to verify delegate status,If already a delegate, proceed with other operations,Use increase_take or decrease_take to modify existing delegate

SettingWeightsTooFast

error details #29

You're setting weights more frequently than the rate limit allows.

Common Causes

  • Called set_weights too soon after previous call
  • Rate limit is per-hotkey, per-subnet
  • Didn't wait enough blocks between updates

How to Fix

Check SubtensorModule.LastUpdate for your last update block,Check SubtensorModule.WeightsSetRateLimit for the limit,Wait the required number of blocks before retrying

IncorrectWeightVersionKey

error details #30

A validator is attempting to set weights with incorrect weight version.

Common Causes

  • Using outdated weight format
  • Weight version mismatch with subnet requirements

How to Fix

Update to current weight version,Check subnet weight version requirements

ServingRateLimitExceeded

error details #31

An axon or prometheus serving exceeded the rate limit for a registered neuron.

Common Causes

  • Updating axon/prometheus too frequently
  • Rate limit for serve operations exceeded

How to Fix

Wait for rate limit period to pass,Reduce frequency of serve updates

UidsLengthExceedUidsInSubNet

error details #32

The caller is attempting to set weights with more UIDs than allowed.

Common Causes

  • Weight array larger than subnet size
  • Including more UIDs than exist

How to Fix

Reduce weight array to subnet size,Check SubnetworkN for current neuron count,Only include existing UIDs

NetworkTxRateLimitExceeded

error details #33

Network creation is rate limited and you're creating too fast.

Common Causes

  • Created a network too recently
  • Must wait between network creations

How to Fix

Wait for NetworkRateLimit blocks to pass,Check SubtensorModule.NetworkLastRegistered for timing

DelegateTxRateLimitExceeded

error details #34

You're modifying delegate settings too frequently.

Common Causes

  • Called increase_take or decrease_take too soon
  • Rate limit applies per-hotkey

How to Fix

Wait for the rate limit period to pass,Check the rate limit constant for timing

Thrown by: increase_take

HotKeySetTxRateLimitExceeded

error details #35

A transactor exceeded the rate limit for setting or swapping hotkey.

Common Causes

  • Too many hotkey operations in a short period
  • Rapid hotkey changes triggered rate limit

How to Fix

Wait for rate limit period to pass,Reduce frequency of hotkey operations

Thrown by: set_children

StakingRateLimitExceeded

error details #36

A transactor exceeded the rate limit for staking.

Common Causes

  • Too many staking transactions in short period
  • Stake/unstake rate limit hit

How to Fix

Wait for rate limit to reset,Space out staking operations

SubNetRegistrationDisabled

error details #37

Registration is disabled on this subnet.

Common Causes

  • Subnet owner disabled registration
  • Subnet in maintenance mode
  • Registration temporarily closed

How to Fix

Wait for registration to be enabled,Contact subnet owner for status,Try a different subnet

TooManyRegistrationsThisInterval

error details #38

The number of registration attempts exceeded the allowed number in the interval.

Common Causes

  • Too many accounts trying to register
  • High demand for this subnet
  • Registration rush during launch

How to Fix

Wait for next interval,Try during lower-demand periods,Increase stake for priority

TransactorAccountShouldBeHotKey

error details #39

The hotkey is required to be the origin (signer).

Common Causes

  • Operation signed by coldkey instead of hotkey
  • Wrong key type for this operation

How to Fix

Sign the transaction with the hotkey,Some operations require hotkey signature

FaucetDisabled

error details #40

The faucet is disabled on this network.

Common Causes

  • Faucet only available on testnet
  • Network does not support faucet

How to Fix

Use testnet for faucet access,Acquire TAO through other means on mainnet

NotSubnetOwner

error details #41

You're not the owner of this subnet.

Common Causes

  • Trying to modify subnet you don't own
  • Using wrong coldkey
  • Ownership was transferred

How to Fix

Check SubtensorModule.SubnetOwner for the actual owner,Use the owner's coldkey for this operation

RegistrationNotPermittedOnRootSubnet

error details #42

Operation is not permitted on the root subnet.

Common Causes

  • Trying to register directly on root network
  • Root subnet has special registration rules

How to Fix

Register on regular subnets first,Root registration requires meeting special criteria,Use root-specific registration path

StakeTooLowForRoot

error details #43

Retired. Root admission is burn-based and no longer stake-gated, so the runtime does not raise this error.

Common Causes

  • Decoding a historical extrinsic from an era when root admission was stake-gated

How to Fix

For current root registration, pay the root burn price rather than meeting a stake minimum,Check the current root burn cost before calling root_register

AllNetworksInImmunity

error details #44

All subnets are in their immunity period, so none can be pruned.

Common Causes

  • Many new subnets created recently
  • Need to wait for immunity periods to expire

How to Fix

Wait for subnet immunity periods to expire,Check SubtensorModule.NetworkImmunityPeriod for duration

NotEnoughBalanceToPaySwapHotKey

error details #45

Insufficient balance to pay the hotkey swap fee.

Common Causes

  • Hotkey swap requires a fee payment
  • Balance too low after accounting for fee

How to Fix

Ensure sufficient free balance for the swap fee,Check KeySwapCost constant for the fee amount

Thrown by: swap_hotkey

NotRootSubnet

error details #46

Netuid does not match for setting root network weights.

Common Causes

  • Using root-specific call on non-root subnet
  • Wrong netuid for root operation

How to Fix

Use netuid 0 for root network operations,Use regular weight-setting for other subnets

Thrown by: root_register

CanNotSetRootNetworkWeights

error details #47

Cannot set weights for the root network with this method.

Common Causes

  • Using wrong extrinsic for root network weights
  • Root network has special weight-setting requirements

How to Fix

Use the dedicated root network weight-setting call,Check root network weight requirements

NoNeuronIdAvailable

error details #48

No neuron ID (UID) is available for registration.

Common Causes

  • Subnet is at capacity
  • All UIDs occupied
  • No slots for new registrations

How to Fix

Wait for deregistrations to free slots,Try a different subnet,Increase stake to replace weaker neurons

Thrown by: pow_register

DelegateTakeTooLow

error details #49

The delegate take rate is below the minimum allowed.

Common Causes

  • Take percentage below MinDelegateTake
  • Trying to set take to zero when minimum exists

How to Fix

Check SubtensorModule.MinDelegateTake for the minimum,Set take at or above the minimum allowed

Thrown by: decrease_take

DelegateTakeTooHigh

error details #50

The delegate take rate exceeds the maximum allowed.

Common Causes

  • Take percentage exceeds MaxDelegateTake
  • Trying to set take above network limit

How to Fix

Check SubtensorModule.MaxDelegateTake for the limit,Set take at or below the maximum allowed

Thrown by: increase_take

NoWeightsCommitFound

error details #51

You're trying to reveal weights, but no commit was found.

Common Causes

  • Never committed weights for this netuid
  • Commit expired before reveal
  • Wrong hotkey or netuid

How to Fix

Commit weights first using commit_weights,Make sure to reveal before commit expires,Verify hotkey and netuid match the commit

InvalidRevealCommitHashNotMatch

error details #52

The revealed weights don't match the committed hash.

Common Causes

  • Weights changed between commit and reveal
  • Wrong salt or nonce used
  • Hash calculation error

How to Fix

Ensure reveal data exactly matches what was committed,Use the same weights, salt, and nonce from commit,Regenerate commit if weights need to change

CommitRevealEnabled

error details #53

This subnet requires commit-reveal for weights, but you called set_weights directly.

Common Causes

  • Subnet has commit-reveal enabled
  • Must use commit_weights then reveal_weights

How to Fix

Use commit_weights to commit a hash of your weights,Then use reveal_weights after the commit period,Check CommitRevealWeightsEnabled for subnet setting

Thrown by: set_weights

CommitRevealDisabled

error details #54

Commit-reveal is disabled but you tried to use it.

Common Causes

  • Subnet doesn't use commit-reveal
  • Should use set_weights directly instead

How to Fix

Use set_weights instead of commit/reveal,Check CommitRevealWeightsEnabled to verify

LiquidAlphaDisabled

error details #55

Liquid Alpha feature is disabled on this subnet.

Common Causes

  • Trying to use alpha features when disabled
  • Subnet configuration doesn't support it

How to Fix

Check if LiquidAlphaOn is true for this subnet,Use a subnet with Liquid Alpha enabled

AlphaHighTooLow

error details #56

sudo_set_alpha_values was given an alpha_high below MIN_ALPHA_LOW (1639 on the u16 scale where 65535 = 1.0).

Common Causes

  • alpha_high below 1639
  • Passing a float such as 0.9 instead of its u16-normalized value

How to Fix

Pass alpha_high as a u16 in [1639, 65535],Keep alpha_low in [1639, alpha_high] in the same call

AlphaLowOutOfRange

error details #57

sudo_set_alpha_values was given an alpha_low outside [MIN_ALPHA_LOW, alpha_high]. MIN_ALPHA_LOW is 1639 on the u16 scale where 65535 = 1.0.

Common Causes

  • alpha_low below 1639
  • alpha_low greater than the alpha_high in the same call

How to Fix

Pass alpha_low as a u16 with 1639 <= alpha_low <= alpha_high,Check alpha_high first: it is validated before alpha_low

ColdKeyAlreadyAssociated

error details #58

Through v481: the coldkey swap destination already had staking associations. From v482 no call returns this error; a swap into an already-used coldkey merges.

Common Causes

  • Through v481, swapping into a coldkey with a non-empty StakingHotkeys list or HotkeySwapBasketCredits rows

How to Fix

On v481 and earlier, swap into an unused coldkey,On v482, the merge happens instead; check the destination opt-outs (AccountRejectsLockedAlpha, AccountRejectsStakingHotkeyGrowth) and ColdkeySwapTooHeavy

NotEnoughBalanceToPaySwapColdKey

error details #59

Insufficient balance to pay the coldkey swap fee.

Common Causes

  • Coldkey swap requires a fee payment
  • Balance too low after accounting for fee

How to Fix

Ensure sufficient free balance for the swap fee,Check KeySwapCost constant for the fee amount

InvalidChild

error details #60

The child hotkey specified is not valid for this relationship.

Common Causes

  • Child hotkey doesn't exist
  • Child would create circular relationship
  • Child is the same as parent

How to Fix

Verify the child hotkey address is correct,Ensure no circular parent-child relationships,Use a different hotkey as child

Thrown by: set_children

DuplicateChild

error details #61

The same child hotkey appears multiple times in the list.

Common Causes

  • Accidentally included same child twice
  • Copy-paste error in child array

How to Fix

Remove duplicate entries from children array,Each child should appear only once

Thrown by: set_children

ProportionOverflow

error details #62

Proportion overflow when setting children.

Common Causes

  • Childkey proportions sum exceeds 100%
  • Individual proportion too large

How to Fix

Ensure proportions sum to 100% or less,Reduce individual childkey proportions,Verify proportion calculations

TooManyChildren

error details #63

You've exceeded the maximum number of child hotkeys (5).

Common Causes

  • Trying to add more than 5 children
  • Maximum is a network-wide limit

How to Fix

Reduce the number of children to 5 or fewer,Remove some existing children before adding new ones

Thrown by: set_children

TxRateLimitExceeded

error details #64

You're sending transactions too frequently.

Common Causes

  • General rate limit on transactions
  • Per-account rate limiting

How to Fix

Wait a few blocks before retrying,Check TxRateLimit for the cooldown period

ColdkeySwapAnnouncementNotFound

error details #65

There is no pending swap announcement for this coldkey to act on.

Common Causes

  • Calling swap_coldkey_announced without announcing first
  • Calling dispute_coldkey_swap or clear_coldkey_swap_announcement with nothing pending
  • Retrying swap_coldkey_announced after it already succeeded, since a successful swap removes the announcement

How to Fix

Call announce_coldkey_swap first and wait out ColdkeySwapAnnouncementDelay,Check whether the swap already executed by looking for ColdkeySwapped,Read SubtensorModule.ColdkeySwapAnnouncements to confirm what is pending

ColdkeySwapTooEarly

error details #66

The announcement exists and the hash matches, but its waiting period has not elapsed.

Common Causes

  • Calling swap_coldkey_announced before the executable block
  • Computing the executable block from a stale ColdkeySwapAnnouncementDelay

How to Fix

Read the executable block from SubtensorModule.ColdkeySwapAnnouncements and wait for it,Do not recompute it from the delay constant; the stored tuple already holds the target block

ColdkeySwapReannouncedTooEarly

error details #67

You tried to replace a pending announcement before it became eligible for reannouncement.

Common Causes

  • Announcing a new destination while the previous announcement is still inside its window
  • Treating announce_coldkey_swap as freely repeatable

How to Fix

Wait until the executable block plus ColdkeySwapReannouncementDelay,Read both values from storage rather than assuming the genesis defaults

AnnouncedColdkeyHashDoesNotMatch

error details #68

The coldkey you passed to swap_coldkey_announced does not hash to the value you announced.

Common Causes

  • Passing a different destination account than the one announced
  • Hashing with something other than BlakeTwo256 when computing the announcement
  • Hashing an SS58 string rather than the SCALE-encoded account id

How to Fix

Pass the exact account whose BlakeTwo256 hash was announced,If the destination needs to change, reannounce once the reannouncement delay allows it,Read the stored hash from SubtensorModule.ColdkeySwapAnnouncements and compare

ColdkeySwapAlreadyDisputed

error details #69

This coldkey already has a dispute recorded, so it cannot be disputed again.

Common Causes

  • Calling dispute_coldkey_swap twice
  • Retrying a dispute whose first attempt actually succeeded

How to Fix

Read SubtensorModule.ColdkeySwapDisputes to confirm the dispute is recorded,Pursue a root-origin reset_coldkey_swap; a second dispute adds nothing

NewColdKeyIsHotkey

error details #70

The destination coldkey address is already used as a hotkey.

Common Causes

  • Trying to swap to an address that's a registered hotkey
  • Mixed up coldkey and hotkey addresses

How to Fix

Use a different destination address,Generate a new coldkey that isn't used as a hotkey

InvalidChildkeyTake

error details #71

The child key take rate is outside the allowed range.

Common Causes

  • Take below MinChildkeyTake
  • Take above MaxChildkeyTake

How to Fix

Check SubtensorModule.MinChildkeyTake and MaxChildkeyTake,Set take within the allowed range

TxChildkeyTakeRateLimitExceeded

error details #72

You're changing child key take too frequently.

Common Causes

  • Called set_childkey_take too soon after previous change

How to Fix

Wait for the rate limit period to pass

InvalidIdentity

error details #73

Invalid identity information provided.

Common Causes

  • Malformed identity data
  • Identity fields exceed limits
  • Invalid characters in identity

How to Fix

Check identity data format,Ensure fields meet length requirements,Use valid characters only

MechanismDoesNotExist

error details #74

Subnet mechanism does not exist.

Common Causes

  • Invalid mechanism type specified
  • Mechanism not supported on this subnet

How to Fix

Use a valid mechanism type,Check available mechanisms for the subnet

StakeUnavailable

error details #75

Trying to unstake or re-lock the locked amount.

How to Fix

SubnetNotExists

error details #76

The specified subnet (netuid) doesn't exist.

Common Causes

  • Typo in netuid
  • Subnet was dissolved
  • Using wrong network (mainnet vs testnet)

How to Fix

Check SubtensorModule.NetworksAdded for valid netuids,Verify you're on the correct network

TooManyUnrevealedCommits

error details #77

You have too many pending weight commits awaiting reveal.

Common Causes

  • Committed multiple times without revealing
  • Maximum pending commits limit reached

How to Fix

Reveal your pending commits before making new ones,Let expired commits clear out

ExpiredWeightCommit

error details #78

The weight commitment has expired before reveal.

Common Causes

  • Waited too long to reveal
  • Commit has a limited validity period

How to Fix

Commit again with fresh weights,Reveal sooner next time,Check RevealPeriodEpochs for timing

RevealTooEarly

error details #79

You're trying to reveal weights before the reveal period starts.

Common Causes

  • Must wait for commit period to end
  • Reveal window hasn't opened yet

How to Fix

Wait for the reveal period to start,Check when the commit was made and calculate reveal window

InputLengthsUnequal

error details #80

Attempted to batch reveal weights with mismatched vector input lengths.

Common Causes

  • UID array and weights array have different lengths
  • Mismatched input vectors in batch operation

How to Fix

Ensure all input arrays have the same length,Verify array alignment before submission

CommittingWeightsTooFast

error details #81

You're committing weights more frequently than allowed.

Common Causes

  • Rate limit on weight commits
  • Must wait between commits

How to Fix

Wait for the rate limit period to pass,Check WeightsSetRateLimit for timing

AmountTooLow

error details #82

The stake amount provided is too low.

Common Causes

  • Staking less than minimum required amount
  • Amount below dust threshold

How to Fix

Increase stake amount to meet minimum,Check minimum stake requirements for the operation

InsufficientLiquidity

error details #83

Not enough liquidity in the pool for this operation.

Common Causes

  • Pool doesn't have enough TAO or alpha
  • Large trade relative to pool size

How to Fix

Reduce the trade size,Check SubnetAlphaIn and SubnetTAO for pool state

SlippageTooHigh

error details #84

The price impact of your trade exceeds the allowed slippage.

Common Causes

  • Trade is too large for current liquidity
  • Price moved since you calculated

How to Fix

Use a higher limit_price if using limit orders,Reduce trade size to lower slippage,Set allow_partial=true for partial fills

TransferDisallowed

error details #85

Subnet disallows transfer.

Common Causes

  • Subnet has disabled transfers
  • Transfer restrictions in place

How to Fix

Check subnet transfer settings,Wait for transfers to be enabled,Contact subnet owner

ActivityCutoffTooLow

error details #86

The activity cutoff value being set is too low.

Common Causes

  • Trying to set activity cutoff below minimum allowed
  • Parameter value does not meet requirements

How to Fix

Increase the activity cutoff value,Check minimum allowed cutoff for the subnet

CallDisabled

error details #87

This call is currently disabled.

Common Causes

  • Feature not yet enabled on network
  • Call temporarily disabled for maintenance
  • Governance has disabled this functionality

How to Fix

Check if the feature is enabled for this network,Wait for the feature to be enabled,Use alternative methods if available

FirstEmissionBlockNumberAlreadySet

error details #88

FirstEmissionBlockNumber is already set.

Common Causes

  • Emission schedule already initialized
  • Attempting to re-set emission start

How to Fix

First emission block can only be set once,Check current emission configuration

Thrown by: start_call

NeedWaitingMoreBlocksToStarCall

error details #89

Need to wait for more blocks to accept the start call extrinsic.

Common Causes

  • Calling too soon after a previous operation
  • Block-based rate limiting in effect

How to Fix

Wait for required number of blocks,Check rate limit requirements

Thrown by: start_call

NotEnoughAlphaOutToRecycle

error details #90

There's not enough alpha in circulation to recycle.

Common Causes

  • Trying to recycle more than available
  • SubnetAlphaOut is too low

How to Fix

Check SubtensorModule.SubnetAlphaOut for available amount,Reduce recycle amount

Thrown by: recycle_alpha

CannotBurnOrRecycleOnRootSubnet

error details #91

Burn and recycle operations aren't allowed on the root subnet.

Common Causes

  • Trying to burn/recycle on netuid 0
  • Root subnet has different rules

How to Fix

Use a different subnet for burn/recycle operations,Root subnet uses TAO directly

UnableToRecoverPublicKey

error details #92

Public key cannot be recovered from the signature.

Common Causes

  • Invalid signature format
  • Corrupted signature data
  • Wrong signature algorithm

How to Fix

Verify signature format is correct,Regenerate signature,Check for data corruption

InvalidRecoveredPublicKey

error details #93

Recovered public key is invalid.

Common Causes

  • Signature recovery produced invalid key
  • Wrong message signed
  • Corrupted signature data

How to Fix

Verify signature and message match,Regenerate signature with correct data,Check for data corruption

SubtokenDisabled

error details #94

SubToken feature is currently disabled.

Common Causes

  • SubToken feature not enabled on network
  • Feature temporarily disabled

How to Fix

Wait for feature to be enabled,Use alternative methods

HotKeySwapOnSubnetIntervalNotPassed

error details #95

Not enough time has passed since the last hotkey swap on this subnet.

Common Causes

  • Swapped hotkey too recently on this subnet
  • Rate limit applies per-subnet

How to Fix

Wait for HotkeySwapOnSubnetInterval blocks to pass,Check the constant for the required wait time

Thrown by: swap_hotkey

KeepStakeBlockedByCollateral

error details #96

`keep_stake` hotkey swap refused because the old hotkey still has standing miner collateral. Stake would stay on the old key while the UID moves, stranding the bond. Swap with `keep_stake=false` so collateral migrates with the UID (lineage maps track the rename).

How to Fix

SameNetuid

error details #97

Invalid netuid duplication.

Common Causes

  • Using same netuid where different required
  • Duplicate netuid in list

How to Fix

Use different netuids for each entry,Remove duplicate netuids

InsufficientTaoBalance

error details #98

The caller does not have enough TAO balance for the operation.

How to Fix

InvalidLeaseBeneficiary

error details #99

Invalid lease beneficiary to register the leased network.

Common Causes

  • Beneficiary account invalid
  • Beneficiary does not meet lease requirements

How to Fix

Verify beneficiary account is valid,Check lease beneficiary requirements

LeaseCannotEndInThePast

error details #100

Lease cannot end in the past.

Common Causes

  • Setting lease end block before current block
  • Invalid lease duration

How to Fix

Set lease end block in the future,Use valid block number for lease duration

LeaseNetuidNotFound

error details #101

Couldn't find the lease netuid.

Common Causes

  • Invalid lease network ID
  • Lease network not created
  • Wrong netuid reference

How to Fix

Verify lease netuid is correct,Check if leased network exists

Thrown by: terminate_lease

LeaseDoesNotExist

error details #102

The lease does not exist.

Common Causes

  • Referencing non-existent lease
  • Lease already expired/dissolved
  • Wrong lease identifier

How to Fix

Verify lease exists,Check lease status and ID,Create lease first if needed

Thrown by: terminate_lease

LeaseHasNoEndBlock

error details #103

The lease has no end block defined.

Common Causes

  • Perpetual lease without end
  • Lease configuration issue

How to Fix

Check lease configuration,This may indicate a perpetual lease

Thrown by: terminate_lease

LeaseHasNotEnded

error details #104

The lease has not ended yet.

Common Causes

  • Trying to claim or dissolve before lease ends
  • Lease still active

How to Fix

Wait for lease to end,Check lease end block

Thrown by: terminate_lease

Overflow

error details #105

An arithmetic overflow occurred.

Common Causes

  • Calculation exceeded maximum value
  • Very large numbers in operation
  • Accumulator overflow

How to Fix

Reduce values to prevent overflow,Check for extremely large inputs,Report if unexpected

BeneficiaryDoesNotOwnHotkey

error details #106

The beneficiary does not own the specified hotkey.

Common Causes

  • Trying to claim benefits for a hotkey you do not control
  • Hotkey ownership mismatch

How to Fix

Use a hotkey that is owned by the beneficiary coldkey,Verify hotkey-coldkey ownership relationship

ExpectedBeneficiaryOrigin

error details #107

Expected beneficiary origin for this operation.

Common Causes

  • Wrong account signing the transaction
  • Operation requires specific beneficiary account

How to Fix

Sign with the beneficiary account,Verify the correct origin is being used

AdminActionProhibitedDuringWeightsWindow

error details #108

Admin operation is prohibited during the protected weights window.

Common Causes

  • Trying to perform admin action during weights setting period
  • Protected window prevents certain operations

How to Fix

Wait for the weights window to close,Perform admin operations outside the protected period

Thrown by: start_call

SymbolDoesNotExist

error details #109

The symbol does not exist.

Common Causes

  • Referencing unregistered symbol
  • Symbol not yet created

How to Fix

Register the symbol first,Verify symbol spelling

Thrown by: update_symbol

SymbolAlreadyInUse

error details #110

The symbol is already in use.

Common Causes

  • Trying to register existing symbol
  • Symbol already claimed by another subnet

How to Fix

Choose a different symbol,Check existing symbol registrations

IncorrectCommitRevealVersion

error details #111

Incorrect commit-reveal version.

Common Causes

  • Using wrong commit-reveal protocol version
  • Version mismatch with network

How to Fix

Use the correct commit-reveal version,Check network commit-reveal settings

InvalidRevealRound

error details #112

Reveal round is older than the most recently stored DRAND round.

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

RevealPeriodTooLarge

error details #113

The reveal period is too large.

Common Causes

  • Reveal period exceeds maximum allowed
  • Invalid reveal period configuration

How to Fix

Reduce reveal period to acceptable range,Check maximum reveal period limits

RevealPeriodTooSmall

error details #114

The reveal period is too small.

Common Causes

  • Reveal period below minimum required
  • Need more time for validators to reveal

How to Fix

Increase reveal period to minimum,Check minimum reveal period requirements

InvalidValue

error details #115

Generic error for out-of-range parameter value.

Common Causes

  • Parameter outside valid range
  • Invalid configuration value
  • Value does not meet requirements

How to Fix

Check parameter requirements,Ensure value is within valid range,Review documentation for valid values

SubnetLimitReached

error details #116

The maximum number of subnets has been reached.

Common Causes

  • Network at maximum subnet capacity
  • No eligible subnet to prune for new creation

How to Fix

Wait for a subnet to be dissolved,Check SubtensorModule.SubnetLimit for the maximum

CannotAffordLockCost

error details #117

Insufficient balance to pay the subnet lock cost.

Common Causes

  • Lock cost is higher than your balance
  • Lock cost varies based on demand

How to Fix

Check SubtensorModule.NetworkMinLockCost for current cost,Ensure sufficient TAO for the lock

EvmKeyAssociateRateLimitExceeded

error details #118

Exceeded the rate limit for associating an EVM key.

Common Causes

  • Too many EVM key association attempts in a short period
  • Rate limit for EVM operations exceeded

How to Fix

Wait for rate limit period to pass,Reduce frequency of EVM key operations

EvmKeyAssociationLimitExceeded

error details #119

The EVM address already has the maximum number of associated UIDs on this subnet.

Common Causes

  • Array/vector size limit exceeded in your transaction
  • Maximum entries for this storage item reached

How to Fix

Reduce the number of items in your array parameter,Split into multiple smaller transactions,Check the constant for maximum allowed size

SameAutoStakeHotkeyAlreadySet

error details #120

Same auto stake hotkey is already set.

Common Causes

  • Trying to set auto-stake to current hotkey
  • Duplicate auto-stake configuration

How to Fix

No action needed if already set correctly,Use different hotkey if change needed

UidMapCouldNotBeCleared

error details #121

The UID map for the subnet could not be cleared.

Common Causes

  • Internal error during UID cleanup
  • Storage operation failed

How to Fix

Retry the operation,Report if error persists

TrimmingWouldExceedMaxImmunePercentage

error details #122

Trimming would exceed the max immune neurons percentage.

Common Causes

  • Too many neurons marked immune
  • Pruning would violate immunity limits

How to Fix

Reduce immune neuron count,Adjust immunity configuration

ChildParentInconsistency

error details #123

Violating the rules of childkey-parentkey consistency.

Common Causes

  • Circular reference in parent-child relationship
  • Inconsistent childkey configuration

How to Fix

Review childkey configuration for consistency,Ensure no circular references exist,Reset and reconfigure childkeys if needed

Thrown by: set_children

InvalidRootClaimThreshold

error details #124

Invalid value of root claim threshold.

Common Causes

  • Threshold out of valid range
  • Invalid threshold configuration

How to Fix

Set threshold within valid range,Check threshold requirements

TooManyUIDsPerMechanism

error details #125

The maximum allowed UIDs times mechanism count should not exceed 256.

Common Causes

  • Array/vector size limit exceeded in your transaction
  • Maximum entries for this storage item reached

How to Fix

Reduce the number of items in your array parameter,Split into multiple smaller transactions,Check the constant for maximum allowed size

VotingPowerTrackingNotEnabled

error details #126

Voting power tracking is not enabled for this subnet.

How to Fix

InvalidVotingPowerEmaAlpha

error details #127

Invalid voting power EMA alpha value (must be <= 10^18).

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

Deprecated

error details #128

Deprecated call.

How to Fix

SubnetBuybackRateLimitExceeded

error details #129

Subnet buyback exceeded the operation rate limit

Common Causes

  • You called set_weights again before the rate limit window passed
  • The rate limit is WeightsSetRateLimit(netuid), which each subnet sets for itself
  • Your previous tx is still in the mempool (not yet included in a block)

How to Fix

Query SubtensorModule.LastUpdate(netuid, uid) to see your last update block,Query SubtensorModule.WeightsSetRateLimit(netuid) to get the minimum blocks between updates,Wait until: current_block > LastUpdate + WeightsSetRateLimit, then retry

NetworkDissolveAlreadyQueued

error details #130

Dissolution was requested for a netuid that is already sitting in the cleanup queue from an earlier removal.

Common Causes

  • Submitting dissolve_network twice for the same subnet
  • Retrying a dissolution that already succeeded, before its cleanup walk finished
  • Automation that treats a subnet as still live because if_subnet_exist was checked instead of DissolveCleanupQueue

How to Fix

Read SubtensorModule.DissolveCleanupQueue and check whether the netuid is already present,Wait for NetworkDissolveCleanupCompleted for that netuid instead of resubmitting,Treat the first dissolution as accepted; the removal already happened

AddStakeBurnRateLimitExceeded

error details #131

"Add stake and burn" exceeded the operation rate limit

Common Causes

  • You called set_weights again before the rate limit window passed
  • The rate limit is WeightsSetRateLimit(netuid), which each subnet sets for itself
  • Your previous tx is still in the mempool (not yet included in a block)

How to Fix

Query SubtensorModule.LastUpdate(netuid, uid) to see your last update block,Query SubtensorModule.WeightsSetRateLimit(netuid) to get the minimum blocks between updates,Wait until: current_block > LastUpdate + WeightsSetRateLimit, then retry

ColdkeySwapAnnounced

error details #132

Your call was rejected because this coldkey has an open swap announcement, or, from v482, a recovery lock left by reset_coldkey_swap_keep_locked. Such a coldkey can only run the swap lifecycle calls.

Common Causes

  • Staking, unstaking, transferring, registering or setting weights while a swap is pending
  • Automation that kept running after announce_coldkey_swap was called
  • A proxied call whose real origin is an announced coldkey

How to Fix

Read SubtensorModule.ColdkeySwapAnnouncements for this coldkey to get the executable block,Complete the rotation with swap_coldkey_announced once that block is reached,Or abandon it with clear_coldkey_swap_announcement once the reannouncement delay has passed,Wait for the account to unfreeze before retrying the original call

ColdkeySwapDisputed

error details #133

Your call was rejected because this coldkey has a disputed swap. A dispute blocks every call, including the swap calls themselves.

Common Causes

  • Any call at all from a coldkey that has called dispute_coldkey_swap
  • Trying to complete or clear a swap after it was disputed

How to Fix

Nothing can be done from the coldkey. A root-origin reset_coldkey_swap clears it, and from v482 reset_coldkey_swap_keep_locked replaces it with the recovery lock,Resolve the dispute through governance and wait for ColdkeySwapReset

ColdkeySwapClearTooEarly

error details #134

You tried to abandon a pending announcement before it became eligible to be cleared.

Common Causes

  • Calling clear_coldkey_swap_announcement straight after announcing
  • Expecting a cancel to be available immediately

How to Fix

Wait until the executable block plus ColdkeySwapReannouncementDelay,Read SubtensorModule.ColdkeySwapAnnouncements for the executable block

DisabledTemporarily

error details #135

Disabled temporarily.

How to Fix

RegistrationPriceLimitExceeded

error details #136

Registration Price Limit Exceeded

Common Causes

  • Array/vector size limit exceeded in your transaction
  • Maximum entries for this storage item reached

How to Fix

Reduce the number of items in your array parameter,Split into multiple smaller transactions,Check the constant for maximum allowed size

LockHotkeyMismatch

error details #137

Lock hotkey mismatch: existing lock is for a different hotkey.

How to Fix

InsufficientStakeForLock

error details #138

Insufficient stake on subnet to cover the lock amount.

How to Fix

NoExistingLock

error details #139

No existing lock found for the given coldkey and subnet.

How to Fix

ActiveLockExists

error details #140

There is already an active lock for the given coldkey.

How to Fix

CannotUseSystemAccount

error details #141

A system account cannot be used in this operation

How to Fix

Thrown by: pow_register

UnlockAmountTooHigh

error details #142

Trying to unlock more than locked

How to Fix

WaitingForDissolvedSubnetCleanup

error details #143

A reserved error for a subnet registration that cannot proceed until a dissolving subnet releases its netuid slot. It is declared in the runtime and is not returned by any dispatch as of v453.

Common Causes

  • No dispatch raises this error at v453. A registration that has to wait for a slot is queued instead of rejected

How to Fix

If you are handling the no-free-slot case, handle the NetworkRegistrationQueued event rather than this error,Read SubtensorModule.NetworkRegistrationQueue to find your pending registration,Wait for NetworkDissolveCleanupCompleted on a dissolving netuid, then for NetworkAdded

TempoOutOfBounds

error details #144

The supplied tempo is outside the allowed range.

How to Fix

ActivityCutoffFactorMilliOutOfBounds

error details #145

The supplied activity-cutoff factor is outside the allowed range.

How to Fix

EpochTriggerAlreadyPending

error details #146

An epoch trigger is already pending for this subnet; wait for it to fire before triggering again.

How to Fix

AutoEpochAlreadyImminent

error details #147

The next automatic epoch is already imminent; a manual trigger would have no effect.

How to Fix

DynamicTempoBlockedByCommitReveal

error details #148

`trigger_epoch` is blocked because commit-reveal is enabled for this subnet: an out-of-band epoch would desync the CRv3 reveal window from the wall-clock Drand schedule and silently drop committed weights.

How to Fix

AccountRejectsLockedAlpha

error details #149

The destination coldkey rejects incoming locked alpha.

How to Fix

LockIdOverFlow

error details #150

The coldkey has already registered too many subnets

Common Causes

  • Array/vector size limit exceeded in your transaction
  • Maximum entries for this storage item reached

How to Fix

Reduce the number of items in your array parameter,Split into multiple smaller transactions,Check the constant for maximum allowed size

StartCallNotReady

error details #151

Need to wait more blocks to do the start call.

How to Fix

InsufficientAlphaBalance

error details #152

The caller does not have enough Alpha stake for the operation.

How to Fix

ColdkeyCollateralIncomplete

error details #153

Coldkey swap could not fully migrate miner collateral: the old coldkey's [`ColdkeyMinerCollateral`] aggregate remained non-zero after migrating every indexed collateral hotkey. Failing closed avoids under-locking the destination unstake guard.

How to Fix

ColdkeyCollateralPositionsFull

error details #154

This coldkey already has the maximum number of distinct hotkeys with miner collateral on the subnet ([`crate::MAX_COLDKEY_COLLATERAL_HOTKEYS`]).

Common Causes

  • Array/vector size limit exceeded in your transaction
  • Maximum entries for this storage item reached

How to Fix

Reduce the number of items in your array parameter,Split into multiple smaller transactions,Check the constant for maximum allowed size

BasketHasNoWeights

error details #155

Retired. This variant is kept only so later error variants keep their SCALE indices.

Common Causes

  • Not raised by current runtime logic; direct deposits into an uncurated fund are held as the fund root (TAO) slot instead of erroring

How to Fix

No action applies. If you see this from an archived block, decode it against that runtime version

RootStakeLocked

error details #156

Root stake is still inside its hold window and cannot leave root yet.

Common Causes

  • A root stake add, remove, or claim happened fewer than RootStakeUnlockInterval blocks ago for this coldkey/hotkey pair
  • Attempting remove_stake, or a move/swap/transfer off root, inside that window

How to Fix

Read RootStakeUnlockInterval for the hold length in blocks,Wait out the remaining window and retry,Note that claiming without withdrawing is unaffected; only leaving root is held

BetaBasketSeedInProgress

error details #157

The beta basket seed migration has not finished, so basket-touching operations are paused.

Common Causes

  • The v441 upgrade seed or its per-hotkey deferred-dividend release is still running
  • Calling a basket deposit, claim, coldkey or root-touching hotkey swap, or root stake add/remove/transfer/swap during the seed

How to Fix

Wait for the migration to complete; it runs automatically and is not something you trigger,Retry the call afterwards

RootWeightSettingDisabled

error details #158

Through v459: set_root_weights was switched off network-wide, so no validator could set a basket distribution vector. From v464 the variant stays declared but nothing raises it: set_root_weights, RootWeightSettingEnabled and the toggle call were removed, and basket composition changes only through swap_basket.

Common Causes

  • Runtime v441 through v448, where RootWeightSettingEnabled was false
  • Runtime v450 through v459, after governance switched the setter off with sudo_set_root_weight_setting_enabled(false)
  • Not raised by any dispatch from v464

How to Fix

On v464 or later, use swap_basket; the network switch for that path is BasketTradingEnabled,On v450 through v459, read RootWeightSettingEnabled at that block and wait for RootWeightSettingToggled

RootClaimTooHeavy

error details #159

A coldkey-wide claim_root would process more work than the pre-dispatch weight envelope allows. Claim one validator at a time with claim_root_with_hotkey instead.

Common Causes

  • The coldkey root-stakes to enough validators, across enough fund holdings, that the blanket claim exceeds the admission limit
  • Holdings accumulated since the last claim, pushing the walk over the envelope
  • Treating claim_root as the default rather than the all-at-once option

How to Fix

Call claim_root_with_hotkey per validator, which admits on the holdings that validator actually has,Work through the validators the coldkey root-stakes to one by one,Claim more regularly so fewer holdings accumulate between claims

RootWeightCapExceeded

error details #160

Through v459: one destination in your set_root_weights vector took a larger share of the summed weight than the concentration cap allowed. From v464 the variant stays declared but nothing raises it: set_root_weights and RootWeightsCap were removed, and the concentration floor is enforced on swap_basket buys as BasketConcentrationCapExceeded instead.

Common Causes

  • A single subnet holds more than cap / u16::MAX of the vector total (1/16 at the default cap of 4096)
  • A short vector concentrates weight on too few destinations
  • Client-side validation used a stale cap after a RootWeightsCapSet change

How to Fix

On v464 or later, size swap_basket buys against BasketConcentrationCap; this error cannot occur,On v450 through v459, read RootWeightsCap for NetUid ROOT at that block and spread the vector across at least u16::MAX / cap destinations

BasketDepositPending

error details #161

From v488: the validator hotkey has queued root-dividend credits that the call could neither deposit into the basket nor snapshot as deferred dividends, so the call is refused before it changes root stake or the fund. From v452 through v486 the variant is declared and no dispatch path raises it.

Common Causes

  • From v488: the hotkey has more than 256 queued origins in PendingBasketDeposits (MAX_BASKET_ROWS), so the synchronous flush handles one chunk and reports the rest as pending
  • From v488: the deposit did not settle and the snapshot was refused, because the hotkey has more than 256 queued origins or already has 256 DeferredBasketRates rows (MAX_ROOT_CLAIM_WORK), or because a queued credit of a dissolved origin could not be closed
  • From v488: the coldkey DeferredBasketDebts row for the hotkey already holds 256 origins and a root stake change, a deferred claim or a coldkey swap needs to add one more
  • v452 through v486: not raised by runtime logic

How to Fix

Retry in a later block. The per-block drain processes one queued hotkey per block and resumes an oversized queue where it stopped,Read PendingBasketDeposits and DeferredBasketRates under the hotkey to count its queued origins,Read DeferredBasketDebts for (hotkey, coldkey) to count the origins the coldkey carries a debt for

InvalidBatchLength

error details #162

A per-subnet weight batch is empty or carries more items than there are networks.

Common Causes

  • batch_set_weights or batch_commit_weights with an empty netuids list
  • batch_reveal_weights with an empty uids_list
  • A batch longer than TotalNetworks, usually from duplicated entries

How to Fix

Send between one and TotalNetworks items per batch

TooManyStakingHotkeys

error details #163

Adding this hotkey would push the coldkey's StakingHotkeys list past its cap.

Common Causes

  • The signing coldkey already stakes through 256 hotkeys (MAX_STAKING_HOTKEYS) and is staking to a new one
  • A transfer_stake to another coldkey would append a new hotkey to a destination list already at 128 (MAX_THIRD_PARTY_STAKING_HOTKEYS)

How to Fix

Stake to a hotkey the coldkey already stakes through; that is always accepted,Consolidate: unstake or move stake off some hotkeys so the list shrinks below the cap

Thrown by: pow_register

ColdkeySwapTooHeavy

error details #164

The coldkey stakes through more hotkeys, or holds more stake positions, than one swap_coldkey call is priced to move. From v488 gamma deposits count as well.

Common Causes

  • More than 256 entries in StakingHotkeys (MAX_COLDKEY_SWAP_HOTKEYS)
  • More than 1024 (hotkey, netuid) stake positions (MAX_COLDKEY_SWAP_POSITIONS)
  • From v488: the old and the new coldkey together hold more than 128 gamma deposits across all subnets (MAX_COLDKEY_SWAP_GAMMA_DEPOSITS)

How to Fix

Consolidate first: unstake or move stake so both counts fall under the limits, then swap,From v488: empty gamma deposits with move_gamma and close them with close_gamma_deposit until both coldkeys together hold at most 128

BasketConcentrationCapExceeded

error details #165

After the buy, the destination holding would exceed BasketConcentrationCap of fund NAV.

Common Causes

  • Buying more of a holding that is already near the cap
  • A small fund with few holdings

How to Fix

Trade a smaller amount, or buy into a different holding

BasketTradingDisabled

error details #166

swap_basket is switched off network-wide: BasketTradingEnabled is false.

Common Causes

  • Basket trading has not been enabled since the v464 upgrade; it shipped closed
  • Governance disabled it during an incident

How to Fix

Wait for BasketTradingToggled with enabled = true. There is no per-caller workaround

BasketTradingFrozen

error details #167

Governance froze basket trading for this validator hotkey.

Common Causes

  • sudo_set_basket_trading_frozen was executed for the hotkey, for example after a suspected key compromise

How to Fix

Only root can lift the freeze. Deposits and claims still work meanwhile

BasketTurnoverBudgetExceeded

error details #168

The TAO through the middle of the trade is more than the fund turnover bucket currently holds.

Common Causes

  • Recent trades drained the bucket; it refills at BasketDailyTurnoverCap of NAV over 7200 blocks
  • A single trade larger than the bucket capacity

How to Fix

Trade a smaller amount, or wait for the bucket to refill. A full refill takes 7200 blocks

BasketSameSubnet

error details #169

origin_netuid and destination_netuid are the same subnet.

Common Causes

  • A client passed the same netuid for both sides

How to Fix

Pick two different subnets. Root (netuid 0) counts as a subnet here

BasketLiquidityCapExceeded

error details #170

After the buy, the fund would hold more of the destination subnet than BasketLiquidityCap allows as a share of that pool alpha reserve.

Common Causes

  • Buying into a thin pool
  • From v466, alpha bought into the pool over the last 7200 blocks (BasketLiquidityUsed) still counts against the cap even if part was sold back

How to Fix

Trade a smaller amount, or pick a deeper pool

BasketMinOutNotMet

error details #171

The buy leg credited less than the min_amount_out you passed. The whole trade rolled back.

Common Causes

  • The destination pool moved between quoting and inclusion
  • The floor was set from a quote that ignored the buy leg swap fee

How to Fix

Re-quote and resubmit, or lower min_amount_out. 0 removes the floor; the 200 basis point band still applies

BasketSwapBatchEmpty

error details #172

A swap_basket_many call contained no legs. Nothing was checked or traded, and no dividends were flushed.

Common Causes

  • The client built the leg list from a filter that matched nothing
  • An empty rebalance plan was submitted instead of being skipped

How to Fix

Submit at least one (origin_netuid, destination_netuid, amount, min_amount_out) leg, or do not submit the call

Thrown by: swap_basket_many

CommitPayloadTooLarge

error details #173

The timelocked weight commit's ciphertext is longer than the limit for the subnet's epoch consensus mode.

Common Causes

  • On a Yuma subnet, a commit longer than 5000 bytes (YUMA_COMMIT_SIZE_BYTES)
  • On a Null subnet, a commit longer than 32 KiB divided by the subnet mechanism count
  • A client that sizes commits for one mode submitting to a subnet that switched mode

How to Fix

Read SubnetEpochConsensus for the subnet and size the ciphertext for that mode,On a Null subnet with several mechanisms, keep each commit within 32768 / MechanismCountCurrent bytes

CommitQueueFull

error details #174

A Null subnet's shared timelock commit queue is over its budget even after evicting every lower-priority row.

Common Causes

  • The queue for the current epoch, summed across all mechanisms, holds more than 64 KiB of ciphertext or more than 64 rows
  • The submitting hotkey ranks below the rows already queued, so nothing can be evicted for it

How to Fix

Commit with a hotkey that has a validator permit, or is the subnet owner hotkey, and enough stake to outrank queued rows,Shrink the ciphertext so the queue fits without eviction,Commit in a later epoch: the queue is keyed by epoch, so each epoch has its own budget

AccountRejectsStakingHotkeyGrowth

error details #175

The destination coldkey has opted out of new staking hotkeys introduced by other accounts, and this transfer would add one.

Common Causes

  • transfer_stake or transfer_stake_and_hotkey to a coldkey that called set_reject_staking_hotkey_growth(true), landing on a hotkey that coldkey does not already stake through and does not own

How to Fix

Transfer onto a hotkey already in the destination coldkey StakingHotkeys list, or onto a hotkey the destination coldkey owns,Ask the recipient to call set_reject_staking_hotkey_growth(false) or to stake to that hotkey first

EmissionWeightsLengthMismatch

error details #176

sudo_set_subnet_emission_weights received a different number of uids and values.

Common Causes

  • A client built uids and values from different lists

How to Fix

Send one value per uid, in the same order

EmissionWeightIndexOutOfRange

error details #177

A uid in the update is not a slot of the emission vector. Valid slots are 0 burn, 1 recycle, 2 owner, 3 validator, 4 miner.

Common Causes

  • A uid of 5 or higher
  • Treating uids as neuron UIDs rather than vector slots

How to Fix

Use slot indices 0 to 4

EmissionWeightIndexDuplicated

error details #178

The same slot appears more than once in one update.

Common Causes

  • A client appended a correction without removing the first entry for that slot

How to Fix

Send each slot at most once per call

EmissionWeightsDoNotSumToOne

error details #179

After merging the update into the current vector, the five slots do not sum to exactly u64::MAX. From v490 the five slots plus the gamma shares in SubnetGammaEmission must sum to u64::MAX, so on a subnet with gamma shares the five slots sum to u64::MAX minus those shares.

Common Causes

  • Changing one slot without moving the same amount out of another
  • Rounding each slot separately from a percentage

How to Fix

Read SubnetEmissionWeights, apply the change, and put any rounding remainder in the miner slot,Send every slot you change in one call,From v490, on a subnet with gamma shares: subtract the sum of the SubnetGammaEmission shares from u64::MAX before dividing the rest among the five slots, or replace the whole split with sudo_set_subnet_emission_weights_v2

BurnEmissionMustBeZero

error details #180

The update gives slot 0 (burn) a non-zero share. Raised at v481 through v486, where burn is reserved and must be zero. From v488 no code path raises it: burn may be non-zero, and the combined burn plus recycle cap is reported as BurnRecycleEmissionAboveMaximum.

Common Causes

  • Sending uid 0 with a non-zero value on a runtime from v481 through v486

How to Fix

v481 through v486: omit uid 0 or send it with 0,From v488: not raised. Keep burn plus recycle at or below 33% of u64::MAX

RecycleEmissionMustBeZero

error details #181

The update gives slot 1 (recycle) a non-zero share. Raised at v481 through v486, where recycle is reserved and must be zero. From v488 no code path raises it: recycle may be non-zero, and the combined burn plus recycle cap is reported as BurnRecycleEmissionAboveMaximum.

Common Causes

  • Sending uid 1 with a non-zero value on a runtime from v481 through v486

How to Fix

v481 through v486: omit uid 1 or send it with 0,From v488: not raised. Keep burn plus recycle at or below 33% of u64::MAX

OwnerEmissionAboveMaximum

error details #182

The merged owner slot (2) is above MAX_OWNER_EMISSION, 33% of emission.

Common Causes

  • Asking for an owner cut above 33%

How to Fix

Keep the owner slot at or below 33% of u64::MAX

LeasedSubnetOwnerCutBelowMinimum

error details #183

The subnet was registered through a lease, and the merged owner slot is below the launch default (the InitialSubnetOwnerCut constant scaled to u64 parts).

Common Causes

  • A lease beneficiary lowering the owner cut
  • Root lowering the owner cut of a leased subnet

How to Fix

Keep the owner slot at or above the default owner share,Check SubnetCreatedViaLease before planning a lower cut

ValidatorEmissionAboveMaximum

error details #184

The merged validator slot (3) is above MAX_VALIDATOR_EMISSION, 50% of emission.

Common Causes

  • Moving most of the miner share to validators

How to Fix

Keep the validator slot at or below 50% of u64::MAX

ValidatorEmissionTooLowToPreserveRoot

error details #185

The merged validator slot (3) is at or below root baseline share for this subnet at this block, so alpha validators would receive nothing after root is paid.

Common Causes

  • Lowering the validator share on a subnet with high root proportion
  • Root stake rising, or the subnet alpha issuance falling, since the owner last checked

How to Fix

Raise the validator value to at least the current baseline plus one part,Read the baseline before submitting; it is recomputed from live state every block

MinerEmissionBelowMinimum

error details #186

The merged miner slot (4) is below MIN_MINER_EMISSION, 33% of emission.

Common Causes

  • Moving too much of the miner share to the owner or validator slot

How to Fix

Keep the miner slot at or above 33% of u64::MAX

EmissionWeightsNotSettableOnRoot

error details #187

The update targets netuid 0. The root subnet has no emission vector.

Common Causes

  • Passing netuid 0

How to Fix

Target a non-root subnet

ColdkeySwapDestinationReserved

error details #188

The account is reserved as the destination of another coldkey live announce_coldkey_swap_v2 announcement, so it cannot become a hotkey, receive stake or locks from another coldkey, or be named by a different announcer.

Common Causes

  • Registering the account as a hotkey (burned_register, pow_register, register_network, try_associate_hotkey, root_register) while it is reserved
  • Naming it as the new hotkey of swap_hotkey
  • Transferring stake or locks to it from another coldkey
  • Announcing a swap to it, or executing one into it, from a coldkey that does not hold the reservation

How to Fix

Read SubtensorModule.ColdkeySwapDestinationReservations for the account to find the announcer,Wait for the swap to execute or the reservation to expire (announcement executable block plus ColdkeySwapReannouncementDelay),If the account is yours and you did not ask for the swap, call release_own_coldkey_swap_destination_reservation from it

ColdkeySwapDestinationReservationNotFound

error details #189

release_own_coldkey_swap_destination_reservation found no reservation naming the signing account.

Common Causes

  • The account was never reserved, or the announcer already executed, cleared or reannounced to a different destination
  • The announcer reannounced with announce_coldkey_swap, which drops any V2 reservation
  • Signing with the announcer coldkey instead of the reserved destination account

How to Fix

Read SubtensorModule.ColdkeySwapDestinationReservations for the signing account before calling,Sign with the reserved destination account, not the announcer

HotkeyOwnerPolicyViolation

error details #190

The coldkey that would own a hotkey, or the destination of a coldkey swap, uses a weaker authentication scheme than the account it would control. A hashed (committed-key) account can be owned or replaced only by another protected account, and a post-quantum account only by another post-quantum account.

Common Causes

  • Registering or associating a hotkey that is a HashedAccounts account under an ordinary coldkey: neuron registration (check_registration_inner, do_pow_register), root_register, register_network, try_associate_hotkey
  • swap_hotkey or swap_hotkey_v2 naming a protected account as the new hotkey while the coldkey is ordinary
  • announce_coldkey_swap_v2, or the execution of any coldkey swap, from a protected coldkey to an ordinary destination
  • A hotkey registered with ML-DSA or as a derived post-quantum authority paired with a coldkey that is only a V1 hashed account

How to Fix

Read HashedAccounts.Accounts, HashedAccounts.MlDsaAccounts and HashedAccounts.DerivedAuthorities for both accounts to find each one authentication kind,Register the coldkey (or the swap destination) as a protected account of at least the same kind before retrying,Or use an ordinary hotkey: an ordinary hotkey accepts any coldkey

TaoUsdPriceUnavailable

error details #191

A gamma mint needs a TAO/USD price and none is usable: no price is stored, or the latest feed is more than 300 blocks old.

Common Causes

  • The oracle has not fed a price in the last TAO_USD_PRICE_MAX_AGE = 300 blocks
  • Root called sudo_set_tao_usd_price_oracle, which clears the stored price, and the oracle has not fed since
  • No oracle has ever been set

How to Fix

Read SubtensorModule.TaoUsdPrice and compare fed_at with the current block,Retry after the next SubtensorModule.TaoUsdPriceFed event,If SubtensorModule.TaoUsdPriceOracle is empty, minting stays unavailable until root sets one

GammaDisabled

error details #192

Gamma cannot be minted on this subnet because the network-wide flag or the subnet flag is false.

Common Causes

  • SubtensorModule.GammaEnabled is false (source default)
  • SubtensorModule.SubnetGammaEnabled is false for the netuid (source default, and reset when a subnet is dissolved)
  • From v490, in AdminUtils.sudo_set_subnet_emission_weights_v2: a gamma slot names a target whose SubnetGammaEnabled is false. This site reads the subnet flag only

How to Fix

Read both flags,The subnet owner or root sets the subnet flag with AdminUtils.sudo_set_subnet_gamma_enabled,Only root sets the network flag, with AdminUtils.sudo_set_gamma_enabled,For the v2 emission-weights call, drop the gamma slot or have the target enable gamma first

TooManyGammaDeposits

error details #193

The coldkey would hold more than MAX_GAMMA_DEPOSITS = 64 gamma deposits on one subnet.

Common Causes

  • A mint or move_gamma opening a new deposit when the coldkey already has 64 on that subnet
  • A coldkey swap where the old and new coldkey together hold more than 64 deposits on one subnet

How to Fix

Read SubtensorModule.ColdkeyGammaHotkeys for (netuid, coldkey) to list the deposits,Consolidate with move_gamma, which closes an emptied origin, or close empty deposits with close_gamma_deposit,Mint into an existing deposit instead of a new hotkey

GammaDepositDoesNotExist

error details #194

No gamma deposit exists at this (netuid, hotkey).

Common Causes

  • move_gamma, close_gamma_deposit, set_gamma_deposit_spender or set_gamma_deposit_daily_spend_cap naming a hotkey with no deposit on that subnet
  • The deposit was closed, or emptied by a move_gamma, earlier
  • The deposit is on a different netuid

How to Fix

Read SubtensorModule.GammaDeposits for (netuid, hotkey),List a coldkey deposits with SubtensorModule.ColdkeyGammaHotkeys or the GammaRuntimeApi get_gamma_deposits_for_coldkey

GammaDepositNotEmpty

error details #195

close_gamma_deposit was called on a deposit that still holds gamma.

Common Causes

  • The deposit balance is above zero

How to Fix

Move the balance to another of your deposits with move_gamma; a move of the whole balance closes the origin by itself,Or wait until the spender has spent the balance, then close

GammaDepositSpenderMismatch

error details #196

A mint named a spender, and the existing deposit at that hotkey has a different spender.

Common Causes

  • mint_gamma or mint_gamma_with_stake with spender Some(x) into a deposit whose spender is not x
  • The deposit spender was changed since the caller last read it

How to Fix

Pass spender None to top up whatever spender the deposit has,Or call set_gamma_deposit_spender first, then mint with the same spender

GammaDepositDailySpendCapMismatch

error details #197

A mint named a daily spend cap, and the existing deposit at that hotkey has a different cap or none.

Common Causes

  • mint_gamma or mint_gamma_with_stake with daily_spend_cap Some(x) into a deposit whose cap is not exactly x
  • The deposit has no cap

How to Fix

Pass daily_spend_cap None to top up without asserting a cap,Or call set_gamma_deposit_daily_spend_cap first, then mint with the same value

NotGammaDepositSpender

error details #198

The signer of spend_gamma is not the spender stored on the deposit.

Common Causes

  • The deposit owner changed the spender with set_gamma_deposit_spender
  • The deposit opened with the subnet default spender and the service uses another account
  • The hotkey or the owning coldkey tried to spend; neither has spending authority

How to Fix

Read GammaDeposits[netuid, hotkey].spender,The customer names the service spender with set_gamma_deposit_spender,Sign spend_gamma with the stored spender, or through its GammaSpend proxy

InsufficientGammaBalance

error details #199

A spend_gamma entry asked for more gamma than the deposit holds.

Common Causes

  • The customer balance is below the charge
  • An earlier entry in the same call already spent from the same deposit

How to Fix

Read GammaDeposits[netuid, hotkey].balance and charge at most that,The customer tops up with mint_gamma or mint_gamma_with_stake

GammaDepositDailySpendCapExceeded

error details #200

A spend_gamma entry asked for more than the deposit's daily spend cap allows at this block.

Common Causes

  • The deposit has a cap and recent spends drained its bucket
  • The charge is larger than the cap itself, which can never be spent in one entry
  • The owner set the cap to zero

How to Fix

Read the GammaRuntimeApi get_gamma_deposit spendable field, or compute the allowance from GammaDeposits,Charge at most the allowance, or wait for the refill: the cap per 7200 blocks, linear,The deposit owner can raise or remove the cap with set_gamma_deposit_daily_spend_cap

BurnRecycleEmissionAboveMaximum

error details #201

The emission split gives slot 0 (burn) and slot 1 (recycle) more than 33% of emission together. The limit is burn + recycle <= MAX_BURN_RECYCLE_EMISSION = floor(u64::MAX x 33 / 100) in u64::MAX parts.

Common Causes

  • Sending burn and recycle values that are each under 33% but exceed it combined
  • With sudo_set_subnet_emission_weights, raising one of the two slots while the other keeps a stored non-zero value

How to Fix

Read SubnetEmissionWeights[netuid] slots 0 and 1,Lower burn, recycle or both so their sum is at most 6087425544324152032 parts,Rebalance the other slots so the split still sums to exactly u64::MAX

EmissionSlotsNotAscending

error details #202

The split passed to sudo_set_subnet_emission_weights_v2 does not list its slots in strictly ascending order, or lists a slot twice.

Common Causes

  • Fixed slots out of the order Burn, Recycle, Owner, Validator, Miner
  • A Gamma slot placed before a fixed slot
  • Gamma slots not sorted by ascending target netuid
  • The same slot, or the same gamma target, appearing twice

How to Fix

Sort the entries by slot: Burn, Recycle, Owner, Validator, Miner, then Gamma { netuid } by ascending netuid,Merge duplicate entries into one

GammaEmissionAboveMaximum

error details #203

A Gamma slot in the split asks for more than 10% of emission. The limit per target is MAX_GAMMA_EMISSION = floor(u64::MAX x 10 / 100) = 1844674407370955161 parts of u64::MAX.

Common Causes

  • A single gamma share above 10%
  • Computing 10% with rounding up, which exceeds the floored constant by one part

How to Fix

Lower the share to at most 1844674407370955161,Spread a larger total across several whitelisted targets; the limit is per share, with up to 16 shares

GammaEmissionTargetNotWhitelisted

error details #204

A Gamma slot in the split names a target subnet for which SubnetGammaEmissionWhitelisted is false.

Common Causes

  • Root has not whitelisted the target with sudo_set_subnet_gamma_emission_whitelisted
  • The target was removed from the whitelist, or was dissolved, after the split was prepared
  • A wrong or non-existent target netuid: a missing key reads false

How to Fix

Read SubtensorModule.SubnetGammaEmissionWhitelisted for the target,Choose a whitelisted target, or ask root to whitelist it,Remove the Gamma slot from the split, including a slot sent with share 0

TooManyGammaShares

error details #205

The split holds more than 16 non-zero gamma shares. SubnetGammaEmission is a BoundedVec of at most MAX_GAMMA_SHARES = 16 entries.

Common Causes

  • A split that omits fixed slots to fit 17 or more Gamma slots within the 21-entry limit of EmissionSplit

How to Fix

Reduce the split to at most 16 non-zero Gamma slots,Drop Gamma slots sent with share 0; they are not stored but are still validated

GammaEmissionNotSettableOnLeasedSubnet

error details #206

The split contains at least one non-zero gamma share and the subnet still has a lease record: SubnetUidToLeaseId has an entry for the netuid.

Common Causes

  • The subnet was registered through a crowdloan lease that is still running
  • The lease has ended and been terminated but is still settling: unpaid contributor dividends or residual lease stake keep SubnetUidToLeaseId in place

How to Fix

Send the split without Gamma slots; the five fixed slots can still be set on a leased subnet,For an ended lease, call terminate_lease and wait for SubnetLeaseUnpaidDividends to clear and the lease position to empty, after which the mapping is removed