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
Calls 98
Sets validator weights for neurons on a subnet.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
dests | Vec<u16> | Array of Integer (0-65535) | dests (Vec<u16>) |
weights | Vec<u16> | Array of Integer (0-65535) | weights (Vec<u16>) |
version_key | u64 | Integer | version_key (u64) |
import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add sub -w wss://entrypoint-finney.opentensor.ai:443
const client = createClient(getWsProvider("wss://entrypoint-finney.opentensor.ai:443"));
const api = client.getTypedApi(sub);
// Build 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,
});Transfers TAO from coldkey's free balance to stake on a hotkey.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
amount_staked | TaoBalance | — | 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,
});Withdraws staked TAO from a hotkey back to the coldkey.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
amount_unstaked | AlphaBalance | — | 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,
});Registers axon server endpoint for a neuron.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
version | u32 | Integer | version (u32) |
ip | u128 | Large Integer | ip (u128) |
port | u16 | Integer (0-65535) | port (u16) |
ip_type | u8 | Integer (0-255) | ip_type (u8) |
protocol | u8 | Integer (0-255) | protocol (u8) |
placeholder1 | u8 | Integer (0-255) | placeholder1 (u8) |
placeholder2 | u8 | Integer (0-255) | placeholder2 (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 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,
});Registers Prometheus metrics endpoint.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
version | u32 | Integer | version (u32) |
ip | u128 | Large Integer | ip (u128) |
port | u16 | Integer (0-65535) | port (u16) |
ip_type | u8 | Integer (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,
});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
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
block_number | u64 | Integer | block_number (u64) |
nonce | u64 | Integer | nonce (u64) |
work | Vec<u8> | Array of Integer (0-255) | work (Vec<u8>) |
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
coldkey | AccountId | SS58 Address | 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 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,
});Registers a neuron by paying TAO instead of solving POW.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
hotkey | AccountId | SS58 Address | 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);
// Build burned_register call (typed, named args)
const netuid = 1;
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const tx = api.tx.SubtensorModule.burned_register({
netuid,
hotkey,
});Registers TLS-enabled axon server endpoint.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
version | u32 | Integer | version (u32) |
ip | u128 | Large Integer | ip (u128) |
port | u16 | Integer (0-65535) | port (u16) |
ip_type | u8 | Integer (0-255) | ip_type (u8) |
protocol | u8 | Integer (0-255) | protocol (u8) |
placeholder1 | u8 | Integer (0-255) | placeholder1 (u8) |
placeholder2 | u8 | Integer (0-255) | placeholder2 (u8) |
certificate | Vec<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,
});Creates a new subnet on the Bittensor network.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
hotkey | AccountId | SS58 Address | 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);
// Build register_network call (typed, named args)
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const tx = api.tx.SubtensorModule.register_network({
hotkey,
});Removes a subnet from the network.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
coldkey | AccountId | SS58 Address | coldkey: Account address (32 bytes, SS58-encoded) |
netuid | NetUid | — | 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,
});Registers a validator on the root network (subnet 0).
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
hotkey | AccountId | SS58 Address | 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);
// Build root_register call (typed, named args)
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const tx = api.tx.SubtensorModule.root_register({
hotkey,
});Decreases the delegate's commission rate.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
take | PerU16 | — | 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,
});Increases the delegate's commission rate.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
take | PerU16 | — | 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,
});Sets child hotkeys for stake distribution.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
children | Vec<(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,
});Sets on-chain identity for a hotkey.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
name | Vec<u8> | Array of Integer (0-255) | name (Vec<u8>) |
url | Vec<u8> | Array of Integer (0-255) | url (Vec<u8>) |
github_repo | Vec<u8> | Array of Integer (0-255) | github_repo (Vec<u8>) |
image | Vec<u8> | Array of Integer (0-255) | image (Vec<u8>) |
discord | Vec<u8> | Array of Integer (0-255) | discord (Vec<u8>) |
description | Vec<u8> | Array of Integer (0-255) | description (Vec<u8>) |
additional | Vec<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,
});Sets rate limit for child key take changes (admin).
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
tx_rate_limit | u64 | Integer | tx_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,
});Swaps hotkey to a new address.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
new_hotkey | AccountId | SS58 Address | new_hotkey: Account address (32 bytes, SS58-encoded) |
netuid | Option | — | 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,
});Root-only immediate coldkey swap: moves everything from old_coldkey to new_coldkey with no announcement or delay.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
old_coldkey | AccountId | SS58 Address | old_coldkey: Account address (32 bytes, SS58-encoded) |
new_coldkey | AccountId | SS58 Address | new_coldkey: Account address (32 bytes, SS58-encoded) |
swap_cost | TaoBalance | — | 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,
});---- The extrinsic for user to change its hotkey in subnet or all subnets. This extrinsic is
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
new_hotkey | AccountId | SS58 Address | new_hotkey: Account address (32 bytes, SS58-encoded) |
netuid | Option | — | netuid: optional Subnet ID (u16, 0-65535) |
keep_stake | bool | Boolean (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,
});Deprecated since v385: returns Deprecated and changes nothing. Use announce_coldkey_swap or announce_coldkey_swap_v2.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
new_coldkey | AccountId | SS58 Address | new_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 schedule_swap_coldkey call (typed, named args)
const new_coldkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const tx = api.tx.SubtensorModule.schedule_swap_coldkey({
new_coldkey,
});Sets the take rate for a child hotkey.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
take | PerU16 | — | 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,
});Sets minimum child key take rate (admin).
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
take | PerU16 | — | take (PerU16) |
// ----------------------------------------------------------------------
// HEADS UP: 1 arg below has a complex type with no usable default.
// Look for `undefined as any` and replace it with real value
// before running — the snippet compiles, but will fail at runtime as-is.
// ----------------------------------------------------------------------
import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add sub -w wss://entrypoint-finney.opentensor.ai:443
const client = createClient(getWsProvider("wss://entrypoint-finney.opentensor.ai:443"));
const api = client.getTypedApi(sub);
// Build sudo_set_min_childkey_take 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,
});Sets maximum child key take rate (admin).
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
take | PerU16 | — | take (PerU16) |
// ----------------------------------------------------------------------
// HEADS UP: 1 arg below has a complex type with no usable default.
// Look for `undefined as any` and replace it with real value
// before running — the snippet compiles, but will fail at runtime as-is.
// ----------------------------------------------------------------------
import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add sub -w wss://entrypoint-finney.opentensor.ai:443
const client = createClient(getWsProvider("wss://entrypoint-finney.opentensor.ai:443"));
const api = client.getTypedApi(sub);
// Build sudo_set_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,
});Sets identity metadata for a subnet.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
subnet_name | Vec<u8> | Array of Integer (0-255) | subnet_name (Vec<u8>) |
github_repo | Vec<u8> | Array of Integer (0-255) | github_repo (Vec<u8>) |
subnet_contact | Vec<u8> | Array of Integer (0-255) | subnet_contact (Vec<u8>) |
subnet_url | Vec<u8> | Array of Integer (0-255) | subnet_url (Vec<u8>) |
discord | Vec<u8> | Array of Integer (0-255) | discord (Vec<u8>) |
description | Vec<u8> | Array of Integer (0-255) | description (Vec<u8>) |
logo_url | Vec<u8> | Array of Integer (0-255) | logo_url (Vec<u8>) |
additional | Vec<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,
});Creates a new subnet with identity metadata.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
identity | Option | — | 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,
});Sets weights on multiple subnets in a single transaction.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
netuids | Vec<Compact<NetUid>> | Array of NetUid | netuids: list of compact-encoded Subnet ID (u16, 0-65535) |
weights | Vec<Vec<(Compact<u16>, Compact<u16>)>> | Array of Array of (Compact<u16>, Compact<u16>) | weights (Vec<Vec<(Compact<u16>, Compact<u16>)>>) |
version_keys | Vec<Compact<u64>> | Array of Integer | version_keys (Vec<Compact<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_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,
});Removes all stake from a hotkey back to the coldkey.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
hotkey | AccountId | SS58 Address | 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);
// Build unstake_all call (typed, named args)
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const tx = api.tx.SubtensorModule.unstake_all({
hotkey,
});Removes all alpha stake from a hotkey back to the coldkey.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
hotkey | AccountId | SS58 Address | 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);
// Build unstake_all_alpha call (typed, named args)
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const tx = api.tx.SubtensorModule.unstake_all_alpha({
hotkey,
});Moves stake from one hotkey/subnet to another.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
origin_hotkey | AccountId | SS58 Address | origin_hotkey: Account address (32 bytes, SS58-encoded) |
destination_hotkey | AccountId | SS58 Address | destination_hotkey: Account address (32 bytes, SS58-encoded) |
origin_netuid | NetUid | — | origin_netuid: Subnet ID (u16, 0-65535) |
destination_netuid | NetUid | — | destination_netuid: Subnet ID (u16, 0-65535) |
alpha_amount | AlphaBalance | — | 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,
});Transfers stake from one coldkey to another on the same hotkey.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
destination_coldkey | AccountId | SS58 Address | destination_coldkey: Account address (32 bytes, SS58-encoded) |
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
origin_netuid | NetUid | — | origin_netuid: Subnet ID (u16, 0-65535) |
destination_netuid | NetUid | — | destination_netuid: Subnet ID (u16, 0-65535) |
alpha_amount | AlphaBalance | — | 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,
});Swaps stake between subnets for the same coldkey-hotkey pair.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
origin_netuid | NetUid | — | origin_netuid: Subnet ID (u16, 0-65535) |
destination_netuid | NetUid | — | destination_netuid: Subnet ID (u16, 0-65535) |
alpha_amount | AlphaBalance | — | 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,
});Adds stake with a price limit for slippage protection.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
amount_staked | TaoBalance | — | amount_staked: TAO amount in RAO (÷10⁹ for TAO) |
limit_price | TaoBalance | — | limit_price: TAO amount in RAO (÷10⁹ for TAO) |
allow_partial | bool | Boolean (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,
});Removes stake with a price limit for slippage protection.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
amount_unstaked | AlphaBalance | — | amount_unstaked: Alpha amount in alpha-RAO (÷10⁹ for alpha) |
limit_price | TaoBalance | — | limit_price: TAO amount in RAO (÷10⁹ for TAO) |
allow_partial | bool | Boolean (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,
});Swaps stake between subnets with price limit protection.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
origin_netuid | NetUid | — | origin_netuid: Subnet ID (u16, 0-65535) |
destination_netuid | NetUid | — | destination_netuid: Subnet ID (u16, 0-65535) |
alpha_amount | AlphaBalance | — | alpha_amount: Alpha amount in alpha-RAO (÷10⁹ for alpha) |
limit_price | TaoBalance | — | limit_price: TAO amount in RAO (÷10⁹ for TAO) |
allow_partial | bool | Boolean (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,
});Attempts to associate a hotkey with a coldkey.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
hotkey | AccountId | SS58 Address | 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);
// Build try_associate_hotkey call (typed, named args)
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const tx = api.tx.SubtensorModule.try_associate_hotkey({
hotkey,
});Starts subnet operations/emissions.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | 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,
});Associates an EVM key with a Substrate account.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
evm_key | H160 | 160-bit Hash | evm_key: 20-byte address (Ethereum-style) |
block_number | u64 | Integer | block_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,
});Commits a hash of weights for later reveal.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
commit_hash | H256 | 256-bit Hash | commit_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,
});Reveals previously committed weights.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
uids | Vec<u16> | Array of Integer (0-65535) | uids (Vec<u16>) |
values | Vec<u16> | Array of Integer (0-65535) | values (Vec<u16>) |
salt | Vec<u16> | Array of Integer (0-65535) | salt (Vec<u16>) |
version_key | u64 | Integer | version_key (u64) |
import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add sub -w wss://entrypoint-finney.opentensor.ai:443
const client = createClient(getWsProvider("wss://entrypoint-finney.opentensor.ai:443"));
const api = client.getTypedApi(sub);
// Build 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,
});Reveals committed weights on multiple subnets in a single transaction.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
uids_list | Vec<Vec<u16>> | Array of Array of Integer (0-65535) | uids_list (Vec<Vec<u16>>) |
values_list | Vec<Vec<u16>> | Array of Array of Integer (0-65535) | values_list (Vec<Vec<u16>>) |
salts_list | Vec<Vec<u16>> | Array of Array of Integer (0-65535) | salts_list (Vec<Vec<u16>>) |
version_keys | Vec<u64> | Array of Integer | version_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,
});Commits weights on multiple subnets in a single transaction.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
netuids | Vec<Compact<NetUid>> | Array of NetUid | netuids: list of compact-encoded Subnet ID (u16, 0-65535) |
commit_hashes | Vec<H256> | Array of 256-bit Hash | commit_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,
});Recycles alpha tokens back to subnet pool.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
amount | AlphaBalance | — | amount: Alpha amount in alpha-RAO (÷10⁹ for alpha) |
netuid | NetUid | — | 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,
});Permanently burns alpha tokens.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
amount | AlphaBalance | — | amount: Alpha amount in alpha-RAO (÷10⁹ for alpha) |
netuid | NetUid | — | 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,
});Removes all stake from a subnet with optional price limit.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
limit_price | Option | — | 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,
});Sets the cooldown period for pending child key changes.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
cooldown | u64 | Integer | cooldown (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,
});Creates a new subnet under lease terms.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
emissions_share | Percent | — | emissions_share: Percentage (0..100) |
end_block | Option | — | 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,
});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
| Name | Type | Format | Description |
|---|---|---|---|
lease_id | u32 | Integer | lease_id: Lease identifier |
hotkey | AccountId | SS58 Address | 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);
// Build terminate_lease call (typed, named args)
const lease_id = 0;
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const tx = api.tx.SubtensorModule.terminate_lease({
lease_id,
hotkey,
});Updates the token symbol for a subnet.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
symbol | Vec<u8> | Array of Integer (0-255) | symbol (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 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,
});Commits weights with a specific reveal round.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
commit | BoundedVec | — | commit (BoundedVec) |
reveal_round | u64 | Integer | reveal_round (u64) |
commit_reveal_version | u16 | Integer (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,
});Sets the auto-stake destination for a coldkey.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
hotkey | AccountId | SS58 Address | 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);
// 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,
});Commits weights using the standard mechanism.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
mecid | MechId | — | mecid: Mechanism identifier |
commit_hash | H256 | 256-bit Hash | commit_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,
});Reveals weights committed via mechanism commit.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
mecid | MechId | — | mecid: Mechanism identifier |
uids | Vec<u16> | Array of Integer (0-65535) | uids (Vec<u16>) |
values | Vec<u16> | Array of Integer (0-65535) | values (Vec<u16>) |
salt | Vec<u16> | Array of Integer (0-65535) | salt (Vec<u16>) |
version_key | u64 | Integer | version_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,
});Commits weights using CRV3 (commit-reveal v3) mechanism.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
mecid | MechId | — | mecid: Mechanism identifier |
commit | BoundedVec | — | commit (BoundedVec) |
reveal_round | u64 | Integer | reveal_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,
});Commits mechanism weights with timelock.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
mecid | MechId | — | mecid: Mechanism identifier |
commit | BoundedVec | — | commit (BoundedVec) |
reveal_round | u64 | Integer | reveal_round (u64) |
commit_reveal_version | u16 | Integer (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,
});Directly sets mechanism weights without commit-reveal.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
mecid | MechId | — | mecid: Mechanism identifier |
dests | Vec<u16> | Array of Integer (0-65535) | dests (Vec<u16>) |
weights | Vec<u16> | Array of Integer (0-65535) | weights (Vec<u16>) |
version_key | u64 | Integer | version_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 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,
});Dissolves a network using root authority.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | 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,
});Redeems accrued basket entitlement across every validator the coldkey root-stakes to. The subnets argument is ignored.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
subnets | BTreeSet | — | 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,
});Sets threshold for root claims (admin).
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
new_value | u64 | Integer | new_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,
});Announces a coldkey swap using BlakeTwo256 hash of the new coldkey.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
new_coldkey_hash | H256 | 256-bit Hash | new_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,
});Performs a coldkey swap if an announcement has been made.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
new_coldkey | AccountId | SS58 Address | new_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 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 a coldkey swap by clearing the announcement and dispute status.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
coldkey | AccountId | SS58 Address | 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 reset_coldkey_swap call (typed, named args)
const coldkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const tx = api.tx.SubtensorModule.reset_coldkey_swap({
coldkey,
});Enables voting power tracking for a subnet.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | 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,
});Schedules disabling of voting power tracking for a subnet.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | 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,
});Sets the EMA alpha value for voting power calculation on a subnet.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
alpha | u64 | Integer | alpha (u64) |
import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add sub -w wss://entrypoint-finney.opentensor.ai:443
const client = createClient(getWsProvider("wss://entrypoint-finney.opentensor.ai:443"));
const api = client.getTypedApi(sub);
// Build sudo_set_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,
});The extrinsic is a combination of add_stake(add_stake_limit) and burn_alpha. We buy
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
amount | TaoBalance | — | amount: TAO amount in RAO (÷10⁹ for TAO) |
limit | Option | — | 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,
});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();User register a new subnetwork via burning token, but only if the
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
limit_price | u64 | Integer | limit_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,
});--- Allows a root validator to toggle auto parent delegation
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
enabled | bool | Boolean (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,
});Locks alpha stake on a hotkey/subnet to build conviction. Locks decay over time unless set perpetual.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
amount | AlphaBalance | — | 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,
});Moves an existing lock to a new destination hotkey on the same subnet, preserving locked mass but resetting conviction.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
destination_hotkey | AccountId | SS58 Address | destination_hotkey: Account address (32 bytes, SS58-encoded) |
netuid | NetUid | — | 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 move_lock call (typed, named args)
const destination_hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const netuid = 1;
const tx = api.tx.SubtensorModule.move_lock({
destination_hotkey,
netuid,
});Toggles whether the caller's individual lock on a subnet is perpetual (never decays) or returns to normal decay.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
enabled | bool | Boolean (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,
});Deprecated compatibility entry point retained for call-index stability.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
tempo | u16 | Integer (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,
});Deprecated compatibility entry point retained for call-index stability.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
factor_milli | u32 | Integer | factor_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,
});Owner-side `trigger_epoch`. Schedules an epoch to fire after `AdminFreezeWindow`
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | 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,
});Sets or clears whether the caller rejects incoming locked alpha.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
enabled | bool | Boolean (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,
});Transfers a specified amount of stake from one coldkey to another, landing it
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
destination_coldkey | AccountId | SS58 Address | destination_coldkey: Account address (32 bytes, SS58-encoded) |
origin_hotkey | AccountId | SS58 Address | origin_hotkey: Account address (32 bytes, SS58-encoded) |
destination_hotkey | AccountId | SS58 Address | destination_hotkey: Account address (32 bytes, SS58-encoded) |
origin_netuid | NetUid | — | origin_netuid: Subnet ID (u16, 0-65535) |
destination_netuid | NetUid | — | destination_netuid: Subnet ID (u16, 0-65535) |
alpha_amount | AlphaBalance | — | 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,
});Locks additional miner collateral (in alpha) on the signer's own
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
alpha | AlphaBalance | — | alpha: Alpha amount in alpha-RAO (÷10⁹ for alpha) |
limit_price | TaoBalance | — | 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,
});Sets the self-maintaining collateral floor for the signer's hotkey
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
min_locked | AlphaBalance | — | 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,
});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
| Name | Type | Format | Description |
|---|---|---|---|
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
amount_staked | TaoBalance | — | 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,
});Redeems the coldkey's accrued basket entitlement on one validator hotkey.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
hotkey | AccountId | SS58 Address | 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);
// Build claim_root_with_hotkey call (typed, named args)
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const tx = api.tx.SubtensorModule.claim_root_with_hotkey({
hotkey,
});Moves stake from one hotkey to another and, when the subnets differ, protects the move with a relative price limit.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
origin_hotkey | AccountId | SS58 Address | origin_hotkey: Account address (32 bytes, SS58-encoded) |
destination_hotkey | AccountId | SS58 Address | destination_hotkey: Account address (32 bytes, SS58-encoded) |
origin_netuid | NetUid | — | origin_netuid: Subnet ID (u16, 0-65535) |
destination_netuid | NetUid | — | destination_netuid: Subnet ID (u16, 0-65535) |
alpha_amount | AlphaBalance | — | alpha_amount: Alpha amount in alpha-RAO (÷10⁹ for alpha) |
limit_price | TaoBalance | — | limit_price: TAO amount in RAO (÷10⁹ for TAO) |
allow_partial | bool | Boolean (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,
});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
| Name | Type | Format | Description |
|---|---|---|---|
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
origin_netuid | NetUid | — | origin_netuid: Subnet ID (u16, 0-65535) |
destination_netuid | NetUid | — | destination_netuid: Subnet ID (u16, 0-65535) |
amount | AlphaBalance | — | amount: Alpha amount in alpha-RAO (÷10⁹ for alpha) |
min_amount_out | u64 | Integer | min_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,
});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
| Name | Type | Format | Description |
|---|---|---|---|
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
legs | BoundedVec | — | 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,
});Registers a hotkey on a subnet with a proof-of-work seal, with no TAO burn, no collateral purchase and no transaction fee.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
work_block | u64 | Integer | work_block (u64) |
nonce | u64 | Integer | nonce (u64) |
work | [u8; 32] | — | work ([u8; 32]) |
hotkey | AccountId | SS58 Address | 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);
// 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,
});Opts the signing coldkey in or out of new StakingHotkeys entries created by other accounts' actions.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
enabled | bool | Boolean (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_staking_hotkey_growth call (typed, named args)
const enabled = true;
const tx = api.tx.SubtensorModule.set_reject_staking_hotkey_growth({
enabled,
});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();Announces a coldkey swap naming the destination in cleartext; validates and reserves the destination before the delay.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
new_coldkey | AccountId | SS58 Address | new_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,
});Root clears a coldkey announcement and dispute but leaves the coldkey restricted under a recovery lock.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
coldkey | AccountId | SS58 Address | 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 reset_coldkey_swap_keep_locked call (typed, named args)
const coldkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const tx = api.tx.SubtensorModule.reset_coldkey_swap_keep_locked({
coldkey,
});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
| Name | Type | Format | Description |
|---|---|---|---|
price | u64 | Integer | 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 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,
});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
| Name | Type | Format | Description |
|---|---|---|---|
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
amount | TaoBalance | — | amount: TAO amount in RAO (÷10⁹ for TAO) |
min_amount_out | GammaBalance | — | min_amount_out: Gamma amount in gamma units (÷10⁹ for US dollars of service credit) |
spender | Option | — | spender: optional Account address (32 bytes, SS58-encoded) |
daily_spend_cap | Option | — | 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,
});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
| Name | Type | Format | Description |
|---|---|---|---|
origin_hotkey | AccountId | SS58 Address | origin_hotkey: Account address (32 bytes, SS58-encoded) |
destination_hotkey | AccountId | SS58 Address | destination_hotkey: Account address (32 bytes, SS58-encoded) |
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
alpha_amount | AlphaBalance | — | alpha_amount: Alpha amount in alpha-RAO (÷10⁹ for alpha) |
min_amount_out | GammaBalance | — | min_amount_out: Gamma amount in gamma units (÷10⁹ for US dollars of service credit) |
spender | Option | — | spender: optional Account address (32 bytes, SS58-encoded) |
daily_spend_cap | Option | — | 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,
});Moves gamma between two deposits the signer owns on one subnet, opening the destination if needed and closing the origin if emptied.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
origin_hotkey | AccountId | SS58 Address | origin_hotkey: Account address (32 bytes, SS58-encoded) |
destination_hotkey | AccountId | SS58 Address | destination_hotkey: Account address (32 bytes, SS58-encoded) |
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
amount | GammaBalance | — | 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,
});Closes the signer's empty gamma deposit at a hotkey, freeing the (netuid, hotkey) slot.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
netuid | NetUid | — | 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,
});Sets the account that may spend the signer's gamma deposit at a hotkey; None resets it to the subnet's default spender.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
spender | Option | — | spender: optional Account address (32 bytes, SS58-encoded) |
import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add sub -w wss://entrypoint-finney.opentensor.ai:443
const client = createClient(getWsProvider("wss://entrypoint-finney.opentensor.ai:443"));
const api = client.getTypedApi(sub);
// Build 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,
});Sets or removes the daily spend cap on the signer's gamma deposit at a hotkey, in gamma units per 7200 blocks.
Parameters
| Name | Type | Format | Description |
|---|---|---|---|
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
daily_spend_cap | Option | — | 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 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,
});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
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
spends | BoundedVec | — | spends (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 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,
});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
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
url | BoundedVec | — | url (BoundedVec) |
spender | AccountId | SS58 Address | spender: Account address (32 bytes, SS58-encoded) |
// ----------------------------------------------------------------------
// 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
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
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Unique identifier for the new subnet (0-65535) |
modality | u16 | Integer (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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
coldkey | AccountId | SS58 Address | Coldkey funding the stake (or destination coldkey on transfer) |
hotkey | AccountId | SS58 Address | Hotkey receiving the stake (or destination hotkey on transfer) |
tao_amount | TaoBalance | — | 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_received | AlphaBalance | — | 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. |
netuid | NetUid | — | Subnet ID |
fee_paid_tao | u64 | Integer | Swap 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
coldkey | AccountId | SS58 Address | Coldkey receiving the unstaked TAO (or origin coldkey on transfer) |
hotkey | AccountId | SS58 Address | Hotkey from which alpha was removed |
tao_amount | TaoBalance | — | 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_unstaked | AlphaBalance | — | 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. |
netuid | NetUid | — | Subnet ID |
fee_paid_alpha | u64 | Integer | Swap 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
coldkey | AccountId | SS58 Address | Coldkey owning both origin and destination stake (move keeps same coldkey) |
origin_hotkey | AccountId | SS58 Address | Hotkey the stake is moved FROM |
origin_netuid | NetUid | — | Subnet the stake is moved FROM |
destination_hotkey | AccountId | SS58 Address | Hotkey the stake is moved TO |
destination_netuid | NetUid | — | Subnet the stake is moved TO |
amount | TaoBalance | — | 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUidStorageIndex | — | Subnet ID |
uid | u16 | Integer (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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
uid | u16 | Integer (0-65535) | UID on the root subnet (netuid 0) of the validator whose basket distribution vector was set. Not a 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);
// 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet ID where neuron registered |
uid | u16 | Integer (0-65535) | Unique identifier within subnet |
hotkey | AccountId | SS58 Address | Hotkey 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
arg0 | u16 | Integer (0-65535) | Event field #0 (u16) |
arg1 | u16 | Integer (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);
}
});Emitted when balances are bulk-set (admin operation).
When it fires
- Caller has admin/sudo privileges
- Valid account-balance pairs
Fields
| Name | Type | Format | Description |
|---|---|---|---|
arg0 | u16 | Integer (0-65535) | Event field #0 (u16) |
arg1 | u16 | Integer (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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet ID (u16, 0-65535) |
arg1 | u16 | Integer (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);
}
});Emitted when maximum weight limit is changed.
When it fires
- Caller has admin/sudo privileges
- New limit is within valid range
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet ID (u16, 0-65535) |
arg1 | u16 | Integer (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);
}
});Emitted when POW registration difficulty is changed.
When it fires
- Caller has admin/sudo privileges
- New difficulty within MinDifficulty and MaxDifficulty bounds
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet ID (u16, 0-65535) |
arg1 | u64 | Integer | Event 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);
}
});Emitted when difficulty adjustment interval is changed.
When it fires
- Caller has admin/sudo privileges
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet ID (u16, 0-65535) |
arg1 | u16 | Integer (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);
}
});Emitted when target registrations per interval is changed.
When it fires
- Caller has admin/sudo privileges
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet ID (u16, 0-65535) |
arg1 | u16 | Integer (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);
}
});Emitted when maximum registrations per block is changed.
When it fires
- Caller has admin/sudo privileges
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet ID (u16, 0-65535) |
arg1 | u16 | Integer (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);
}
});Emitted when activity cutoff threshold is changed.
When it fires
- Caller has admin/sudo privileges
- New cutoff is within valid range
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet ID (u16, 0-65535) |
arg1 | u16 | Integer (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);
}
});Emitted when rho parameter is changed.
When it fires
- Caller has admin/sudo privileges
- New rho is within valid range
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet ID (u16, 0-65535) |
arg1 | u16 | Integer (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);
}
});Emitted when alpha sigmoid steepness parameter is changed.
When it fires
- Caller has admin/sudo privileges
- Valid steepness value within allowed range
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet ID (u16, 0-65535) |
arg1 | i16 | Signed Integer | Event 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);
}
});Emitted when kappa parameter is changed.
When it fires
- Caller has admin/sudo privileges
- New kappa is within valid range (typically 0-65535)
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet ID (u16, 0-65535) |
arg1 | u16 | Integer (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);
}
});Emitted when minimum required weights per validator is changed.
When it fires
- Caller has admin/sudo privileges
- New minimum is within valid range
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet ID (u16, 0-65535) |
arg1 | u16 | Integer (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);
}
});Emitted when validator prune length is changed.
When it fires
- Caller has admin/sudo privileges
- New length is within valid range
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet ID (u16, 0-65535) |
arg1 | u64 | Integer | Event 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);
}
});Emitted when scaling law power parameter is changed.
When it fires
- Caller has admin/sudo privileges
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet ID (u16, 0-65535) |
arg1 | u16 | Integer (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);
}
});Emitted when the rate limit for setting weights is changed.
When it fires
- Caller has admin/sudo privileges
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet ID (u16, 0-65535) |
arg1 | u64 | Integer | Event 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);
}
});Emitted when neuron immunity period is changed.
When it fires
- Caller has admin/sudo privileges
- New period is within valid range
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet ID (u16, 0-65535) |
arg1 | u16 | Integer (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);
}
});Emitted when bonds moving average parameter is changed.
When it fires
- Caller has admin/sudo privileges
- New value is within valid range
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet ID (u16, 0-65535) |
arg1 | u64 | Integer | Event 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);
}
});Emitted when bonds penalty parameter is changed.
When it fires
- Caller has admin/sudo privileges
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet ID (u16, 0-65535) |
arg1 | u16 | Integer (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);
}
});Emitted when bonds reset behavior is toggled.
When it fires
- Caller has admin/sudo privileges
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet ID (u16, 0-65535) |
arg1 | bool | Boolean (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);
}
});Emitted when maximum validators allowed is changed.
When it fires
- Caller has admin/sudo privileges
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet ID (u16, 0-65535) |
arg1 | u16 | Integer (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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet ID (u16, 0-65535) |
account | AccountId | SS58 Address | 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 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet ID (u16, 0-65535) |
account | AccountId | SS58 Address | 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 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
coldkey | AccountId | SS58 Address | Coldkey that owns the hotkey and made it a delegate |
hotkey | AccountId | SS58 Address | Hotkey that became a delegate |
take | PerU16 | — | Delegate take set at registration, u16-normalized: 65535 = 100%. Bounded by MinDelegateTake..=MaxDelegateTake. Not an amount. |
import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi 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);
}
});Emitted when the default delegate take rate is changed.
When it fires
- Caller has admin/sudo privileges
- New default is within valid range
Fields
| Name | Type | Format | Description |
|---|---|---|---|
arg0 | PerU16 | — | 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);
}
});Emitted when the required weights version key is updated.
When it fires
- Caller has admin/sudo privileges
- New version key is valid
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet ID (u16, 0-65535) |
arg1 | u64 | Integer | Event 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);
}
});Emitted when minimum POW difficulty is changed.
When it fires
- Caller has admin/sudo privileges
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet ID (u16, 0-65535) |
arg1 | u64 | Integer | Event 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);
}
});Emitted when maximum POW difficulty is changed.
When it fires
- Caller has admin/sudo privileges
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet ID (u16, 0-65535) |
arg1 | u64 | Integer | Event 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);
}
});Emitted when serving rate limit is changed.
When it fires
- Caller has admin/sudo privileges
- New rate limit is within valid range
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet ID (u16, 0-65535) |
arg1 | u64 | Integer | Event 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);
}
});Emitted when burn registration cost is changed.
When it fires
- Caller has admin/sudo privileges
- New burn within MinBurn and MaxBurn bounds
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet ID (u16, 0-65535) |
tao_amount | TaoBalance | — | 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);
}
});Emitted when maximum burn for registration is changed.
When it fires
- Caller has admin/sudo privileges
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet ID (u16, 0-65535) |
tao_amount | TaoBalance | — | 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);
}
});Emitted when minimum burn for registration is changed.
When it fires
- Caller has admin/sudo privileges
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet ID (u16, 0-65535) |
tao_amount | TaoBalance | — | 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);
}
});setting the per-block epoch cap (dynamic tempo throttle).
When it fires
- Caller authorized to make changes
Fields
| Name | Type | Format | Description |
|---|---|---|---|
arg0 | u8 | Integer (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);
}
});Emitted when general transaction rate limit is changed.
When it fires
- Caller has admin/sudo privileges
- New rate limit is within valid range
Fields
| Name | Type | Format | Description |
|---|---|---|---|
arg0 | u64 | Integer | Event 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);
}
});Emitted when delegate take rate limit is changed.
When it fires
- Caller has admin/sudo privileges
Fields
| Name | Type | Format | Description |
|---|---|---|---|
arg0 | u64 | Integer | Event 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);
}
});Emitted when child key take rate limit is changed.
When it fires
- Caller has admin/sudo privileges
Fields
| Name | Type | Format | Description |
|---|---|---|---|
arg0 | u64 | Integer | Event 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);
}
});Emitted when admin freeze window is changed.
When it fires
- Caller has admin/sudo privileges
Fields
| Name | Type | Format | Description |
|---|---|---|---|
arg0 | u16 | Integer (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);
}
});Emitted when subnet owner hyperparameter rate limit is changed.
When it fires
- Caller has admin/sudo privileges
Fields
| Name | Type | Format | Description |
|---|---|---|---|
arg0 | u16 | Integer (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);
}
});Emitted when minimum child key take rate is changed.
When it fires
- Caller has admin/sudo privileges
Fields
| Name | Type | Format | Description |
|---|---|---|---|
arg0 | PerU16 | — | 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);
}
});Emitted when a subnet's minimum child-key take floor is updated.
When it fires
- sudo_set_min_childkey_take_per_subnet succeeded
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet whose minimum child-key take was updated |
take | PerU16 | — | 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);
}
});Emitted when maximum child key take rate is changed.
When it fires
- Caller has admin/sudo privileges
Fields
| Name | Type | Format | Description |
|---|---|---|---|
arg0 | PerU16 | — | 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
account | AccountId | SS58 Address | Account address (32 bytes, SS58-encoded) |
arg1 | PerU16 | — | 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);
}
});Emitted when a sudo operation is executed.
When it fires
- Caller is sudo key holder
Fields
| Name | Type | Format | Description |
|---|---|---|---|
arg0 | Result | — | 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);
}
});Emitted when registration is enabled or disabled for a subnet.
When it fires
- Caller has admin/sudo privileges
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet ID (u16, 0-65535) |
arg1 | bool | Boolean (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);
}
});Emitted when proof-of-work registration is toggled for a subnet.
When it fires
- Caller has admin/sudo privileges
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet ID (u16, 0-65535) |
arg1 | bool | Boolean (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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet ID (u16, 0-65535) |
arg1 | u16 | Integer (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);
}
});Emitted when the RAO recycled amount for registration is changed.
When it fires
- Caller has admin/sudo privileges
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet ID (u16, 0-65535) |
tao_amount | TaoBalance | — | 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);
}
});Emitted when the minimum stake threshold for validators is updated.
When it fires
- Caller has admin/sudo privileges
- New threshold is valid
Fields
| Name | Type | Format | Description |
|---|---|---|---|
arg0 | u64 | Integer | Event 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);
}
});Emitted when difficulty adjustment alpha parameter is changed.
When it fires
- Caller has admin/sudo privileges
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet ID (u16, 0-65535) |
arg1 | u64 | Integer | Event 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);
}
});Emitted when testnet faucet dispenses tokens.
When it fires
- Faucet is enabled (testnet only)
- Caller meets faucet requirements
Fields
| Name | Type | Format | Description |
|---|---|---|---|
account | AccountId | SS58 Address | Account address (32 bytes, SS58-encoded) |
arg1 | u64 | Integer | Event 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
arg0 | u16 | Integer (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);
}
});Emitted when network rate limit is changed.
When it fires
- Caller has admin/sudo privileges
Fields
| Name | Type | Format | Description |
|---|---|---|---|
arg0 | u64 | Integer | Event 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);
}
});Emitted when network immunity period is changed.
When it fires
- Caller has admin/sudo privileges
Fields
| Name | Type | Format | Description |
|---|---|---|---|
arg0 | u64 | Integer | Event 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);
}
});Emitted when start call delay is changed.
When it fires
- Caller has admin/sudo privileges
Fields
| Name | Type | Format | Description |
|---|---|---|---|
arg0 | u64 | Integer | Event 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);
}
});Emitted when minimum subnet lock cost is changed.
When it fires
- Caller has admin/sudo privileges
Fields
| Name | Type | Format | Description |
|---|---|---|---|
tao_amount | TaoBalance | — | 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);
}
});Emitted when the maximum number of subnets is changed.
When it fires
- Caller has admin/sudo privileges
Fields
| Name | Type | Format | Description |
|---|---|---|---|
arg0 | u16 | Integer (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);
}
});Emitted when lock cost reduction interval is changed.
When it fires
- Caller has admin/sudo privileges
Fields
| Name | Type | Format | Description |
|---|---|---|---|
arg0 | u64 | Integer | Event 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
account | AccountId | SS58 Address | Account address (32 bytes, SS58-encoded) |
account | AccountId | SS58 Address | Account address (32 bytes, SS58-encoded) |
arg2 | PerU16 | — | 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
account | AccountId | SS58 Address | Account address (32 bytes, SS58-encoded) |
account | AccountId | SS58 Address | Account address (32 bytes, SS58-encoded) |
arg2 | PerU16 | — | 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
coldkey | AccountId | SS58 Address | coldkey: Account address (32 bytes, SS58-encoded) |
old_hotkey | AccountId | SS58 Address | old_hotkey: Account address (32 bytes, SS58-encoded) |
new_hotkey | AccountId | SS58 Address | new_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);
}
});Emitted when the maximum allowed delegate take is changed.
When it fires
- Caller has admin/sudo privileges
- New max is valid percentage
Fields
| Name | Type | Format | Description |
|---|---|---|---|
arg0 | PerU16 | — | 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);
}
});Emitted when the minimum allowed delegate take is changed.
When it fires
- Caller has admin/sudo privileges
- New min is valid percentage
Fields
| Name | Type | Format | Description |
|---|---|---|---|
arg0 | PerU16 | — | 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
who | AccountId | SS58 Address | who: Account address (32 bytes, SS58-encoded) |
new_coldkey_hash | H256 | 256-bit Hash | new_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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
who | AccountId | SS58 Address | who: 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
old_coldkey | AccountId | SS58 Address | old_coldkey: Account address (32 bytes, SS58-encoded) |
new_coldkey | AccountId | SS58 Address | new_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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
coldkey | AccountId | SS58 Address | 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 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
current_coldkey | AccountId | SS58 Address | current_coldkey: Account address (32 bytes, SS58-encoded) |
new_coldkey | AccountId | SS58 Address | new_coldkey: Account address (32 bytes, SS58-encoded) |
total_balance | TaoBalance | — | 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);
}
});Emitted when a coldkey swap arbitration period is extended due to dispute.
When it fires
- Coldkey swap is pending
- Dispute raised during arbitration
Fields
| Name | Type | Format | Description |
|---|---|---|---|
coldkey | AccountId | SS58 Address | 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 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
account | AccountId | SS58 Address | Account address (32 bytes, SS58-encoded) |
netuid | NetUid | — | Subnet ID (u16, 0-65535) |
arg2 | u64 | Integer | Event field #2 (u64) |
arg3 | Vec<(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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
account | AccountId | SS58 Address | Account address (32 bytes, SS58-encoded) |
netuid | NetUid | — | Subnet ID (u16, 0-65535) |
arg2 | Vec<(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);
}
});Emitted when on-chain identity is set for a hotkey.
When it fires
- Caller owns the hotkey
- Valid identity data provided
Fields
| Name | Type | Format | Description |
|---|---|---|---|
account | AccountId | SS58 Address | 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 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);
}
});Emitted when a subnet's identity metadata is set or updated.
When it fires
- Caller is subnet owner
- Valid identity data provided
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 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);
}
});Emitted when a subnet's identity metadata is removed.
When it fires
- Caller is subnet owner
- Subnet has existing identity
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
account | AccountId | SS58 Address | account: Account address (32 bytes, SS58-encoded) |
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
execution_block | u32 | Integer | execution_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);
}
});Emitted when governance changes how long a coldkey swap announcement must wait.
When it fires
- Root or sudo origin
Fields
| Name | Type | Format | Description |
|---|---|---|---|
delay_blocks | u32 | Integer | New 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);
}
});Emitted when governance changes how long a coldkey must wait before reannouncing or clearing a swap.
When it fires
- Root or sudo origin
Fields
| Name | Type | Format | Description |
|---|---|---|---|
delay_blocks | u32 | Integer | New 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);
}
});Emitted when dissolve network schedule duration is changed.
When it fires
- Caller has admin/sudo privileges
Fields
| Name | Type | Format | Description |
|---|---|---|---|
duration_blocks | u32 | Integer | New 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
account | AccountId | SS58 Address | Account address (32 bytes, SS58-encoded) |
netuid_storage_index | NetUidStorageIndex | — | Storage-index variant of subnet ID (used in storage layout) |
h256 | H256 | 256-bit 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);
// 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
account | AccountId | SS58 Address | Account address (32 bytes, SS58-encoded) |
netuid_storage_index | NetUidStorageIndex | — | Storage-index variant of subnet ID (used in storage layout) |
h256 | H256 | 256-bit 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);
// 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
account | AccountId | SS58 Address | Account address (32 bytes, SS58-encoded) |
netuid_storage_index | NetUidStorageIndex | — | Storage-index variant of subnet ID (used in storage layout) |
h256 | H256 | 256-bit 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);
// 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
account | AccountId | SS58 Address | Account address (32 bytes, SS58-encoded) |
netuid | NetUid | — | Subnet ID (u16, 0-65535) |
list_of_h256 | Vec<H256> | Array of 256-bit Hash | 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);
// 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
list_of_compact_netuid | Vec<Compact<NetUid>> | Array of NetUid | list of compact-encoded Subnet ID (u16, 0-65535) |
account | AccountId | SS58 Address | 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 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);
}
});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);
}
});Emitted when an individual weight set within a batch fails.
When it fires
- Batch weight operation in progress
- Individual item encountered error
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet ID (u16, 0-65535) |
arg1 | DispatchError | Dispatch Error | Event 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
origin_coldkey | AccountId | SS58 Address | Source coldkey (signer of transfer_stake) |
destination_coldkey | AccountId | SS58 Address | Receiving coldkey |
hotkey | AccountId | SS58 Address | Hotkey (held constant — transfer moves between coldkeys, same hotkey) |
origin_netuid | NetUid | — | Subnet stake moved FROM |
destination_netuid | NetUid | — | Subnet stake moved TO |
amount | TaoBalance | — | 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
coldkey | AccountId | SS58 Address | Coldkey performing the swap (held constant) |
hotkey | AccountId | SS58 Address | Hotkey (held constant — swap only changes netuid) |
origin_netuid | NetUid | — | Subnet swapped FROM |
destination_netuid | NetUid | — | Subnet swapped TO |
amount_tao | TaoBalance | — | 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);
}
});Emitted when transfer functionality is toggled.
When it fires
- Caller has admin/sudo privileges
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet ID (u16, 0-65535) |
arg1 | bool | Boolean (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);
}
});Emitted when a subnet's owner hotkey is changed.
When it fires
- Caller is current subnet owner
- New hotkey is valid
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet ID (u16, 0-65535) |
account | AccountId | SS58 Address | 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 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet ID (u16, 0-65535) |
arg1 | u64 | Integer | Event 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
coldkey | AccountId | SS58 Address | Coldkey whose stake was reduced |
hotkey | AccountId | SS58 Address | Hotkey whose stake position was decreased |
amount_alpha | AlphaBalance | — | 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. |
netuid | NetUid | — | 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
coldkey | AccountId | SS58 Address | Coldkey whose stake was reduced |
hotkey | AccountId | SS58 Address | Hotkey whose stake position was decreased |
amount_alpha | AlphaBalance | — | 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. |
netuid | NetUid | — | 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);
}
});Emitted when an EVM key is associated with a Substrate account.
When it fires
- Valid EVM key provided
- Association is authorized
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
evm_key | H160 | 160-bit Hash | evm_key: 20-byte address (Ethereum-style) |
block_associated | u64 | Integer | block_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);
}
});Emitted when CRV3 committed weights are revealed.
When it fires
- CRV3 commit exists for this validator
- Reveal matches commitment
- Reveal period has started
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet ID (u16, 0-65535) |
account | AccountId | SS58 Address | 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 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);
}
});Emitted when the commit-reveal period length is changed.
When it fires
- Caller has admin/sudo privileges
- Valid period value
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet ID (u16, 0-65535) |
arg1 | u64 | Integer | Event 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);
}
});Emitted when commit-reveal mode is toggled for a subnet.
When it fires
- Caller has admin/sudo privileges for subnet
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet ID (u16, 0-65535) |
arg1 | bool | Boolean (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);
}
});Emitted for each subnet when a hotkey swap occurs.
When it fires
- Hotkey swap is in progress
- Hotkey was registered on this subnet
Fields
| Name | Type | Format | Description |
|---|---|---|---|
coldkey | AccountId | SS58 Address | coldkey: Account address (32 bytes, SS58-encoded) |
old_hotkey | AccountId | SS58 Address | old_hotkey: Account address (32 bytes, SS58-encoded) |
new_hotkey | AccountId | SS58 Address | new_hotkey: Account address (32 bytes, SS58-encoded) |
netuid | NetUid | — | 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);
}
});Emitted when a new subnet lease is created.
When it fires
- Subnet exists
- Lease terms agreed upon
- Required deposits/payments made
Fields
| Name | Type | Format | Description |
|---|---|---|---|
beneficiary | AccountId | SS58 Address | beneficiary: Account address (32 bytes, SS58-encoded) |
lease_id | u32 | Integer | lease_id: Lease identifier |
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
end_block | Option | — | 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
beneficiary | AccountId | SS58 Address | beneficiary: Account address (32 bytes, SS58-encoded) |
netuid | NetUid | — | 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);
}
});Emitted when a subnet's token symbol is updated.
When it fires
- Caller is subnet owner or admin
- Valid symbol provided
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
symbol | Vec<u8> | Array of Integer (0-255) | symbol (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);
// 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);
}
});Emitted when the required commit-reveal version is updated.
When it fires
- Caller has admin/sudo privileges
Fields
| Name | Type | Format | Description |
|---|---|---|---|
arg0 | u16 | Integer (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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
account | AccountId | SS58 Address | Account address (32 bytes, SS58-encoded) |
netuid_storage_index | NetUidStorageIndex | — | Storage-index variant of subnet ID (used in storage layout) |
h256 | H256 | 256-bit Hash | 32-byte hash (Ethereum-compatible) |
arg3 | u64 | Integer | Event 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);
}
});Emitted when timelocked weights are revealed after their round.
When it fires
- Current round >= reveal round
- Valid timelocked commit exists
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid_storage_index | NetUidStorageIndex | — | Storage-index variant of subnet ID (used in storage layout) |
account | AccountId | SS58 Address | 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 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet on which the incentive was earned and auto-staked |
destination_hotkey | AccountId | SS58 Address | Hotkey 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_hotkey | AccountId | SS58 Address | Hotkey that earned the miner incentive; the source of the auto-staked alpha |
owner_coldkey | AccountId | SS58 Address | Coldkey owning the earning hotkey (Owner storage). The stake position credited is (destination, owner, netuid), so this is the coldkey leg of that position. |
alpha_staked | AlphaBalance | — | 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUidStorageIndex | — | netuid: Storage-index variant of subnet ID (used in storage layout) |
emissions | Vec<AlphaBalance> | Array of AlphaBalance | emissions: 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);
}
});Emitted when minimum allowed UIDs is changed.
When it fires
- Caller has admin/sudo privileges
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet ID (u16, 0-65535) |
arg1 | u16 | Integer (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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
coldkey | AccountId | SS58 Address | coldkey: Account address (32 bytes, SS58-encoded) |
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
hotkey | AccountId | SS58 Address | 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 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);
}
});Emitted when minimum non-immune UIDs is changed.
When it fires
- Caller has admin/sudo privileges
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet ID (u16, 0-65535) |
arg1 | u16 | Integer (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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
coldkey | AccountId | SS58 Address | coldkey: Account address (32 bytes, SS58-encoded) |
tao | TaoBalance | — | 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
tao | TaoBalance | — | tao: TAO amount in RAO (÷10⁹ for TAO) |
shares | u64 | Integer | shares (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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
coldkey | AccountId | SS58 Address | coldkey: Account address (32 bytes, SS58-encoded) |
tao | TaoBalance | — | tao: TAO amount in RAO (÷10⁹ for TAO) |
value | TaoBalance | — | value: TAO amount in RAO (÷10⁹ for TAO) |
shares | u64 | Integer | shares (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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
coldkey | AccountId | SS58 Address | coldkey: Account address (32 bytes, SS58-encoded) |
tao | TaoBalance | — | 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
tao | TaoBalance | — | 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);
}
});Voting power tracking has been enabled for a subnet.
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | 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);
}
});Voting power tracking has been scheduled for disabling.
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
disable_at_block | u64 | Integer | disable_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);
}
});Voting power tracking has been fully disabled and entries cleared.
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | 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);
}
});Voting power EMA alpha has been set for a subnet.
When it fires
- Caller authorized to make changes
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
alpha | u64 | Integer | alpha (u64) |
import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add sub -w wss://entrypoint-finney.opentensor.ai:443
const client = createClient(getWsProvider("wss://entrypoint-finney.opentensor.ai:443"));
const api = client.getTypedApi(sub);
// 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);
}
});Emitted when lease dividends are distributed to stakeholders.
When it fires
- Active lease exists
- Dividend distribution block reached
Fields
| Name | Type | Format | Description |
|---|---|---|---|
lease_id | u32 | Integer | lease_id: Lease identifier |
contributor | AccountId | SS58 Address | contributor: Account address (32 bytes, SS58-encoded) |
alpha | AlphaBalance | — | 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);
}
});"Add stake and burn" event: alpha token was purchased and burned.
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
amount | TaoBalance | — | amount: TAO amount in RAO (÷10⁹ for TAO) |
alpha | AlphaBalance | — | 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
who | AccountId | SS58 Address | who: 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
who | AccountId | SS58 Address | who: Account address (32 bytes, SS58-encoded) |
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
alpha_fee | AlphaBalance | — | alpha_fee: Alpha amount in alpha-RAO (÷10⁹ for alpha) |
tao_amount | TaoBalance | — | 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);
}
});Burn half-life set for neuron registration.
When it fires
- Caller authorized to make changes
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
burn_half_life | u16 | Integer (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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
burn_increase_mult | FixedU128 | — | 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);
}
});A root validator toggled the "auto parent delegation" flag.
When it fires
- Caller authorized to make changes
Fields
| Name | Type | Format | Description |
|---|---|---|---|
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
enabled | bool | Boolean (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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
coldkey | AccountId | SS58 Address | Coldkey that locked the stake |
hotkey | AccountId | SS58 Address | Hotkey the stake is locked to |
netuid | NetUid | — | Subnet the lock is on |
alpha_amount | AlphaBalance | — | Alpha amount locked (in alpha-RAO; 1 alpha = 10^9 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 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
coldkey | AccountId | SS58 Address | Coldkey whose stake was unlocked |
hotkey | AccountId | SS58 Address | Hotkey the stake was locked to |
netuid | NetUid | — | Subnet the lock was on |
alpha_amount | AlphaBalance | — | 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
coldkey | AccountId | SS58 Address | Coldkey that moved the lock |
origin_hotkey | AccountId | SS58 Address | Hotkey the lock was previously attributed to |
destination_hotkey | AccountId | SS58 Address | Hotkey the lock is now attributed to |
netuid | NetUid | — | Subnet the lock is on |
import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi 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);
}
});Activity-cutoff factor (per-mille) set on a subnet by its owner.
When it fires
- Caller authorized to make changes
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
factor_milli | u32 | Integer | factor_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);
}
});Owner manually triggered an epoch for their subnet.
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
by | AccountId | SS58 Address | by: Account address (32 bytes, SS58-encoded) |
fires_at | u64 | Integer | fires_at (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 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);
}
});An epoch slot was deferred to the next block due to the per-block epoch cap.
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
from_block | u64 | Integer | from_block (u64) |
to_block | u64 | Integer | to_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);
}
});Epoch execution skipped by `is_epoch_input_state_consistent` returned false or other errors.
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
block | u64 | Integer | 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 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet whose ownership transferred |
old_coldkey | AccountId | SS58 Address | Previous subnet owner coldkey |
new_coldkey | AccountId | SS58 Address | New 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
coldkey | AccountId | SS58 Address | Coldkey whose perpetual-lock flag was toggled |
netuid | NetUid | — | Subnet the flag was toggled on |
enabled | bool | Boolean (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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
coldkey | AccountId | SS58 Address | coldkey: Account address (32 bytes, SS58-encoded) |
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
mechid | u16 | Integer (0-65535) | mechid (u16) |
identity | Option | — | identity (Option) |
lock_amount | TaoBalance | — | lock_amount: TAO amount in RAO (÷10⁹ for TAO) |
median_subnet_alpha_price | FixedU128 | — | 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_block | u64 | Integer | registration_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);
}
});A coldkey's reject locked alpha account flag was updated.
When it fires
- Caller authorized to make changes
Fields
| Name | Type | Format | Description |
|---|---|---|---|
coldkey | AccountId | SS58 Address | coldkey: Account address (32 bytes, SS58-encoded) |
enabled | bool | Boolean (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);
}
});Stake has been transferred from one coldkey to another, landing on a
Fields
| Name | Type | Format | Description |
|---|---|---|---|
origin_coldkey | AccountId | SS58 Address | Coldkey the stake left; the signer of transfer_stake_and_hotkey |
destination_coldkey | AccountId | SS58 Address | Coldkey that now owns the stake |
origin_hotkey | AccountId | SS58 Address | Hotkey the stake left |
destination_hotkey | AccountId | SS58 Address | Hotkey the stake landed on |
origin_netuid | NetUid | — | Subnet the stake left |
destination_netuid | NetUid | — | Subnet the stake landed on; equal to origin_netuid on a same-subnet transfer |
tao_equivalent | TaoBalance | — | 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);
}
});Miner collateral was staked and locked (at registration or via
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
locked | AlphaBalance | — | locked: Alpha amount in alpha-RAO (÷10⁹ for alpha) |
total_locked | AlphaBalance | — | 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);
}
});A miner set the self-maintaining collateral floor for a hotkey.
When it fires
- Caller authorized to make changes
Fields
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
min_locked | AlphaBalance | — | 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet whose liquid-alpha consensus mode changed |
mode | ConsensusMode | — | 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
hotkey | AccountId | SS58 Address | 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 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
alpha | AlphaBalance | — | 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
lease_id | u32 | Integer | lease_id: Lease identifier |
contributor | AccountId | SS58 Address | contributor: Account address (32 bytes, SS58-encoded) |
alpha | AlphaBalance | — | 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
origin_netuid | NetUid | — | origin_netuid: Subnet ID (u16, 0-65535) |
destination_netuid | NetUid | — | destination_netuid: Subnet ID (u16, 0-65535) |
alpha_sold | AlphaBalance | — | alpha_sold: Alpha amount in alpha-RAO (÷10⁹ for alpha) |
tao_mid | TaoBalance | — | tao_mid: TAO amount in RAO (÷10⁹ for TAO) |
alpha_bought | AlphaBalance | — | 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
coldkey | AccountId | SS58 Address | coldkey: Account address (32 bytes, SS58-encoded) |
rows | u32 | Integer | rows (u32) |
forfeited_tao_est | TaoBalance | — | 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
coldkey | AccountId | SS58 Address | coldkey: Account address (32 bytes, SS58-encoded) |
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
lock_id | u32 | Integer | lock_id (u32) |
error | DispatchError | Dispatch Error | error (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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | Subnet whose epoch reward algorithm was written |
mode | EpochConsensus | — | 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
target | u16 | Integer (0-65535) | target (u16) |
remaining | u16 | Integer (0-65535) | remaining (u16) |
removed | u16 | Integer (0-65535) | removed (u16) |
cleared_commits | u32 | Integer | cleared_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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
coldkey | AccountId | SS58 Address | coldkey: Account address (32 bytes, SS58-encoded) |
enabled | bool | Boolean (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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
coldkey | AccountId | SS58 Address | coldkey: Account address (32 bytes, SS58-encoded) |
old_hotkey | AccountId | SS58 Address | old_hotkey: Account address (32 bytes, SS58-encoded) |
new_hotkey | AccountId | SS58 Address | new_hotkey: Account address (32 bytes, SS58-encoded) |
netuid | NetUid | — | 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
weights | Vec<u64> | Array of Integer | weights (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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
tao_usd_price | u64 | Integer | The 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. |
import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
coldkey | AccountId | SS58 Address | coldkey: Account address (32 bytes, SS58-encoded) |
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
spender | AccountId | SS58 Address | spender: Account address (32 bytes, SS58-encoded) |
daily_spend_cap | Option | — | Daily spend cap of the credited deposit after the mint, in gamma units (10^9 units = 1 US dollar); None is no cap. |
tao_spent | TaoBalance | — | 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_burned | AlphaBalance | — | 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_value | TaoBalance | — | 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_amount | GammaBalance | — | 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
coldkey | AccountId | SS58 Address | coldkey: Account address (32 bytes, SS58-encoded) |
origin_hotkey | AccountId | SS58 Address | origin_hotkey: Account address (32 bytes, SS58-encoded) |
destination_hotkey | AccountId | SS58 Address | destination_hotkey: Account address (32 bytes, SS58-encoded) |
gamma_amount | GammaBalance | — | 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
coldkey | AccountId | SS58 Address | coldkey: Account address (32 bytes, SS58-encoded) |
hotkey | AccountId | SS58 Address | 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 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
coldkey | AccountId | SS58 Address | coldkey: Account address (32 bytes, SS58-encoded) |
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
spender | AccountId | SS58 Address | spender: 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
coldkey | AccountId | SS58 Address | coldkey: Account address (32 bytes, SS58-encoded) |
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
daily_spend_cap | Option | — | 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
coldkey | AccountId | SS58 Address | coldkey: Account address (32 bytes, SS58-encoded) |
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
spender | AccountId | SS58 Address | spender: Account address (32 bytes, SS58-encoded) |
gamma_amount | GammaBalance | — | 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. |
import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
spender | AccountId | SS58 Address | spender: Account address (32 bytes, SS58-encoded) |
gamma_amount | GammaBalance | — | 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. |
reason | DispatchError | Dispatch Error | The SubtensorModule error that skipped the entry: GammaDepositDoesNotExist, NotGammaDepositSpender, AmountTooLow, InsufficientGammaBalance or GammaDepositDailySpendCapExceeded. |
import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
url | BoundedVec | — | url (BoundedVec) |
spender | AccountId | SS58 Address | spender: 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 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
hotkey | AccountId | SS58 Address | 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 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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | netuid: Subnet ID (u16, 0-65535) |
gamma_shares | Vec<(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);
}
});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
| Name | Type | Format | Description |
|---|---|---|---|
paying_netuid | NetUid | — | Subnet whose emission paid: its alpha was sold. |
target_netuid | NetUid | — | Subnet whose alpha was bought and burned and on which the gamma deposit was credited. |
coldkey | AccountId | SS58 Address | coldkey: Account address (32 bytes, SS58-encoded) |
hotkey | AccountId | SS58 Address | hotkey: Account address (32 bytes, SS58-encoded) |
spender | AccountId | SS58 Address | spender: Account address (32 bytes, SS58-encoded) |
alpha_sold | AlphaBalance | — | Alpha of the paying subnet taken by the sale, in alpha-RAO, swap fee included. UnconvertedGammaEmission[netuid][target] fell by this amount. |
tao_converted | TaoBalance | — | 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_burned | AlphaBalance | — | Alpha of the target subnet bought with tao and burned, in alpha-RAO. |
burned_alpha_tao_value | TaoBalance | — | 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_amount | GammaBalance | — | 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
MAP ( coldkey ) --> flags | Account-level flags. Defaults to zero.
u128 (Large Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
coldkey | 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 AccountFlags storage
const coldkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.AccountFlags.getValue(coldkey);
console.log("AccountFlags:", result);Accumulated dividends pending distribution for subnet leases.
AlphaBalance Keys
| Name | Type | Format | Description |
|---|---|---|---|
lease_id | 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 AccumulatedLeaseDividends storage
const lease_id = 0;
const result = await api.query.SubtensorModule.AccumulatedLeaseDividends.getValue(lease_id);
console.log("AccumulatedLeaseDividends:", result);Whether neurons are active on a subnet.
Vec<bool> (Array of Boolean (true/false))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 Active storage
const netuid = 1;
const result = await api.query.SubtensorModule.Active.getValue(netuid);
console.log("Active:", result);Blocks of inactivity before pruning.
u16 (Integer (0-65535))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 ActivityCutoff storage
const netuid = 1;
const result = await api.query.SubtensorModule.ActivityCutoff.getValue(netuid);
console.log("ActivityCutoff:", result);MAP ( netuid ) --> activity-cutoff factor in per-mille epochs (1/1000 granularity).
u32 (Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 ActivityCutoffFactorMilli storage
const netuid = 1;
const result = await api.query.SubtensorModule.ActivityCutoffFactorMilli.getValue(netuid);
console.log("ActivityCutoffFactorMilli:", result);Alpha for difficulty adjustment algorithm.
u64 (Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 AdjustmentAlpha storage
const netuid = 1;
const result = await api.query.SubtensorModule.AdjustmentAlpha.getValue(netuid);
console.log("AdjustmentAlpha:", result);Blocks between difficulty adjustments.
u16 (Integer (0-65535))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 AdjustmentInterval storage
const netuid = 1;
const result = await api.query.SubtensorModule.AdjustmentInterval.getValue(netuid);
console.log("AdjustmentInterval:", result);Window length at tempo end during which admin operations are frozen.
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);Nominator share of alpha dividends per hotkey per subnet at the last epoch, net of the validator take.
AlphaBalance Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | — |
hotkey | 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 AlphaDividendsPerSubnet storage
const netuid = 1;
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.AlphaDividendsPerSubnet.getValue(netuid, hotkey);
console.log("AlphaDividendsPerSubnet:", result);Steepness parameter for the alpha sigmoid function per subnet.
i16 (Signed Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 AlphaSigmoidSteepness storage
const netuid = 1;
const result = await api.query.SubtensorModule.AlphaSigmoidSteepness.getValue(netuid);
console.log("AlphaSigmoidSteepness:", result);V2 alpha stake per (hotkey, coldkey, netuid), stored as SafeFloat { mantissa, exponent }. Supersedes Alpha at v401.
SafeFloat Keys
| Name | Type | Format | Description |
|---|---|---|---|
hot | AccountId | SS58 Address | — |
cold | AccountId | SS58 Address | — |
netuid | 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 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);Contains last AlphaV2 storage map key to iterate (check first)
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);Alpha low and high bounds per subnet.
(u16, u16) Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 AlphaValues storage
const netuid = 1;
const result = await api.query.SubtensorModule.AlphaValues.getValue(netuid);
console.log("AlphaValues:", result);EVM address associated with a neuron position.
(H160, u64) Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | — |
uid | 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 AssociatedEvmAddress storage
const netuid = 1;
const uid = 0;
const result = await api.query.SubtensorModule.AssociatedEvmAddress.getValue(netuid, uid);
console.log("AssociatedEvmAddress:", result);DMAP (netuid, H160) --> associated UIDs and last block where ownership was proven.
BoundedVec Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | — |
H160 | H160 | 160-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);--- MAP ( hotkey ) --> parent_delegation_enabled
bool (Boolean (true/false))Keys
| Name | Type | Format | Description |
|---|---|---|---|
hotkey | 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 AutoParentDelegationEnabled storage
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.AutoParentDelegationEnabled.getValue(hotkey);
console.log("AutoParentDelegationEnabled:", result);Hotkey that receives a coldkey's miner incentive on a subnet, instead of the mining hotkey.
AccountId (SS58 Address)Keys
| Name | Type | Format | Description |
|---|---|---|---|
cold | AccountId | SS58 Address | — |
netuid | 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 AutoStakeDestination storage
const cold = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const netuid = 1;
const result = await api.query.SubtensorModule.AutoStakeDestination.getValue(cold, netuid);
console.log("AutoStakeDestination:", result);Coldkeys using auto-stake on a subnet.
Vec<AccountId> (Array of SS58 Address)Keys
| Name | Type | Format | Description |
|---|---|---|---|
hot | AccountId | SS58 Address | — |
netuid | 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 AutoStakeDestinationColdkeys storage
const hot = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const netuid = 1;
const result = await api.query.SubtensorModule.AutoStakeDestinationColdkeys.getValue(hot, netuid);
console.log("AutoStakeDestinationColdkeys:", result);Axon server info for neurons.
AxonInfo Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | — |
hotkey | 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 Axons storage
const netuid = 1;
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.Axons.getValue(netuid, hotkey);
console.log("Axons:", result);Double map (validator_hotkey, staker_coldkey) to the claimed watermark used to net off entitlement.
i128 (Large Signed Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
validator_hotkey | AccountId | SS58 Address | — |
staker_coldkey | 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 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);Hard bound, in rao, on what any one skipped slice may be worth.
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);Relative part of the row-dust floor, in basis points of the fund anchored NAV.
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);Absolute cap, in rao, on the row-dust floor of a root claim.
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);Rao value below which a root claim leaves its own slice of a row unsold.
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);Largest u16-normalized share of fund NAV one holding may reach through a swap_basket buy.
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);Capacity of each fund swap_basket turnover bucket as a u16-normalized share of NAV.
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);Map (validator_hotkey) to lifetime TAO deposited into the basket.
TaoBalance Keys
| Name | Type | Format | Description |
|---|---|---|---|
validator_hotkey | 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 BasketDepositedTao storage
const validator_hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.BasketDepositedTao.getValue(validator_hotkey);
console.log("BasketDepositedTao:", result);Largest u16-normalized share of a subnet alpha reserve a fund may hold there after a swap_basket buy.
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);Alpha a fund bought into a subnet within the current refill window, decaying to zero.
(u64, u64) Keys
| Name | Type | Format | Description |
|---|---|---|---|
validator_hotkey | AccountId | SS58 Address | — |
netuid | 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 BasketLiquidityUsed storage
const validator_hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const netuid = 1;
const result = await api.query.SubtensorModule.BasketLiquidityUsed.getValue(validator_hotkey, netuid);
console.log("BasketLiquidityUsed:", result);Minimum TAO value in rao through the middle of each swap_basket leg.
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);Map (validator_hotkey) to the cumulative fund-shares-per-root-stake accumulator.
FixedI128 Keys
| Name | Type | Format | Description |
|---|---|---|---|
validator_hotkey | 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 BasketRate storage
const validator_hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.BasketRate.getValue(validator_hotkey);
console.log("BasketRate:", result);Map (validator_hotkey) to lifetime TAO redeemed out of the basket.
TaoBalance Keys
| Name | Type | Format | Description |
|---|---|---|---|
validator_hotkey | 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 BasketRedeemedTao storage
const validator_hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.BasketRedeemedTao.getValue(validator_hotkey);
console.log("BasketRedeemedTao:", result);Per-fund swap_basket turnover bucket: TAO available and the block it was last refilled.
(u64, u64) Keys
| Name | Type | Format | Description |
|---|---|---|---|
validator_hotkey | 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 BasketTradeBucket storage
const validator_hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.BasketTradeBucket.getValue(validator_hotkey);
console.log("BasketTradeBucket:", result);Master switch for validator basket trading (swap_basket).
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);Validator hotkeys whose basket trading governance has frozen.
() Keys
| Name | Type | Format | Description |
|---|---|---|---|
key1 | 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 BasketTradingFrozen storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.BasketTradingFrozen.getValue(key1);
console.log("BasketTradingFrozen:", result);Map (validator_hotkey) to the fund staker total-return accumulator, the canonical root-staker return series.
FixedU128 Keys
| Name | Type | Format | Description |
|---|---|---|---|
validator_hotkey | 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 BasketTwr storage
const validator_hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.BasketTwr.getValue(validator_hotkey);
console.log("BasketTwr:", result);Map (validator_hotkey) to the frozen display baseline splicing the fund onto the basket index.
BetaBaselineOf Keys
| Name | Type | Format | Description |
|---|---|---|---|
validator_hotkey | 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 BetaBaseline storage
const validator_hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.BetaBaseline.getValue(validator_hotkey);
console.log("BetaBaseline:", result);Map (validator_hotkey) to the fund last completed index-sweep sample: NAV, display price, and stake price.
BetaIndexFundSampleOf Keys
| Name | Type | Format | Description |
|---|---|---|---|
validator_hotkey | 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 BetaIndexFundSample storage
const validator_hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.BetaIndexFundSample.getValue(validator_hotkey);
console.log("BetaIndexFundSample:", result);The latest published beta-index levels: display, stake, and the completing block.
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);In-progress state of the paged beta-index sweep; present only mid-pass.
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);Block number when a neuron registered.
u64 (Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | — |
uid | 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 BlockAtRegistration storage
const netuid = 1;
const uid = 0;
const result = await api.query.SubtensorModule.BlockAtRegistration.getValue(netuid, uid);
console.log("BlockAtRegistration:", result);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.
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);Blocks since the last successful epoch run, capped at tempo + 1.
u64 (Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 BlocksSinceLastStep storage
const netuid = 1;
const result = await api.query.SubtensorModule.BlocksSinceLastStep.getValue(netuid);
console.log("BlocksSinceLastStep:", result);Bond values between neurons.
Vec<(u16, u16)> (Array of (u16, u16))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUidStorageIndex | — | — |
uid | 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 Bonds storage
const netuid = 1;
const uid = 0;
const result = await api.query.SubtensorModule.Bonds.getValue(netuid, uid);
console.log("Bonds:", result);Moving average period for bonds.
u64 (Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 BondsMovingAverage storage
const netuid = 1;
const result = await api.query.SubtensorModule.BondsMovingAverage.getValue(netuid);
console.log("BondsMovingAverage:", result);Penalty factor applied to bonds per subnet.
u16 (Integer (0-65535))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 BondsPenalty storage
const netuid = 1;
const result = await api.query.SubtensorModule.BondsPenalty.getValue(netuid);
console.log("BondsPenalty:", result);Whether bonds reset is enabled for a subnet.
bool (Boolean (true/false))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 BondsResetOn storage
const netuid = 1;
const result = await api.query.SubtensorModule.BondsResetOn.getValue(netuid);
console.log("BondsResetOn:", result);Burn amount for registration.
TaoBalance Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 Burn storage
const netuid = 1;
const result = await api.query.SubtensorModule.Burn.getValue(netuid);
console.log("Burn:", result);MAP ( netuid ) --> BurnHalfLife (blocks)
u16 (Integer (0-65535))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 BurnHalfLife storage
const netuid = 1;
const result = await api.query.SubtensorModule.BurnHalfLife.getValue(netuid);
console.log("BurnHalfLife:", result);MAP ( netuid ) --> BurnIncreaseMult
FixedU128 Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 BurnIncreaseMult storage
const netuid = 1;
const result = await api.query.SubtensorModule.BurnIncreaseMult.getValue(netuid);
console.log("BurnIncreaseMult:", result);Burn registrations in current interval.
u16 (Integer (0-65535))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 BurnRegistrationsThisInterval storage
const netuid = 1;
const result = await api.query.SubtensorModule.BurnRegistrationsThisInterval.getValue(netuid);
console.log("BurnRegistrationsThisInterval:", result);Child hotkeys and proportions for a parent hotkey on a subnet.
Vec<(u64, AccountId)> (Array of (u64, AccountId))Keys
| Name | Type | Format | Description |
|---|---|---|---|
parent | AccountId | SS58 Address | — |
netuid | 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 ChildKeys storage
const parent = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const netuid = 1;
const result = await api.query.SubtensorModule.ChildKeys.getValue(parent, netuid);
console.log("ChildKeys:", result);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).
PerU16 Keys
| Name | Type | Format | Description |
|---|---|---|---|
hot | AccountId | SS58 Address | — |
netuid | 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 ChildkeyTake storage
const hot = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const netuid = 1;
const result = await api.query.SubtensorModule.ChildkeyTake.getValue(hot, netuid);
console.log("ChildkeyTake:", result);Queue of parent hotkeys whose stake just changed and need a childkey threshold re-check.
() Keys
| Name | Type | Format | Description |
|---|---|---|---|
parent | 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 ChildkeyThresholdChecks storage
const parent = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.ChildkeyThresholdChecks.getValue(parent);
console.log("ChildkeyThresholdChecks:", result);Parent hotkeys whose total stake is below StakeThreshold, with their child relations inert.
() Keys
| Name | Type | Format | Description |
|---|---|---|---|
parent | 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 ChildkeyThresholdSuspended storage
const parent = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.ChildkeyThresholdSuspended.getValue(parent);
console.log("ChildkeyThresholdSuspended:", result);Fraction of a parent dividend share recycled when parent and child hotkeys have different coldkeys, as u64 / u64::MAX.
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);DMAP ( netuid, coldkey ) --> BoundedVec of hotkeys
BoundedVec Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | — |
coldkey | 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 ColdkeyCollateralHotkeys storage
const netuid = 1;
const coldkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.ColdkeyCollateralHotkeys.getValue(netuid, coldkey);
console.log("ColdkeyCollateralHotkeys:", result);The hotkeys at which a coldkey holds gamma deposits on a subnet. DMAP (netuid, coldkey) → BoundedVec of up to 64 hotkeys.
BoundedVec Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | — |
coldkey | 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 ColdkeyGammaHotkeys storage
const netuid = 1;
const coldkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.ColdkeyGammaHotkeys.getValue(netuid, coldkey);
console.log("ColdkeyGammaHotkeys:", result);MAP ( netuid, coldkey ) --> total locked miner collateral
AlphaBalance Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | — |
coldkey | 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 ColdkeyMinerCollateral storage
const netuid = 1;
const coldkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.ColdkeyMinerCollateral.getValue(netuid, coldkey);
console.log("ColdkeyMinerCollateral:", result);Global map from any coldkey to the first coldkey in its swap lineage.
AccountId (SS58 Address)Keys
| Name | Type | Format | Description |
|---|---|---|---|
coldkey | 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 ColdkeyRoot storage
const coldkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.ColdkeyRoot.getValue(coldkey);
console.log("ColdkeyRoot:", result);Global map from an old coldkey to the coldkey that replaced it.
AccountId (SS58 Address)Keys
| Name | Type | Format | Description |
|---|---|---|---|
old_coldkey | 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 ColdkeySuccessor storage
const old_coldkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.ColdkeySuccessor.getValue(old_coldkey);
console.log("ColdkeySuccessor:", result);Blocks a coldkey swap announcement must wait before it can be executed.
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);Pending coldkey swap announcements, keyed by the coldkey being replaced.
(u32, H256) Keys
| Name | Type | Format | Description |
|---|---|---|---|
key1 | 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 ColdkeySwapAnnouncements storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.ColdkeySwapAnnouncements.getValue(key1);
console.log("ColdkeySwapAnnouncements:", result);Accounts reserved as the destination of an in-flight announce_coldkey_swap_v2 announcement. MAP (destination) → announcer coldkey.
AccountId (SS58 Address)Keys
| Name | Type | Format | Description |
|---|---|---|---|
key1 | 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 ColdkeySwapDestinationReservations storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.ColdkeySwapDestinationReservations.getValue(key1);
console.log("ColdkeySwapDestinationReservations:", result);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.
u32 (Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
key1 | 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 ColdkeySwapDisputes storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.ColdkeySwapDisputes.getValue(key1);
console.log("ColdkeySwapDisputes:", result);Blocks after an announcement becomes executable before it may be reannounced or cleared.
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);Reverse index of ColdkeySwapDestinationReservations. MAP (announcer coldkey) → reserved destination.
AccountId (SS58 Address)Keys
| Name | Type | Format | Description |
|---|---|---|---|
key1 | 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 ColdkeySwapReservedDestination storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.ColdkeySwapReservedDestination.getValue(key1);
console.log("ColdkeySwapReservedDestination:", result);Per announcing coldkey, whether its V2 swap may import the source auto-stake policy, decided at announcement. MAP (coldkey) → bool.
bool (Boolean (true/false))Keys
| Name | Type | Format | Description |
|---|---|---|---|
key1 | 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 ColdkeySwapV2PolicySnapshots storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.ColdkeySwapV2PolicySnapshots.getValue(key1);
console.log("ColdkeySwapV2PolicySnapshots:", result);MAP ( netuid ) --> CollateralDrainRatio (k)
FixedU128 Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 CollateralDrainRatio storage
const netuid = 1;
const result = await api.query.SubtensorModule.CollateralDrainRatio.getValue(netuid);
console.log("CollateralDrainRatio:", result);Whether commit-reveal weights is enabled per subnet.
bool (Boolean (true/false))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 CommitRevealWeightsEnabled storage
const netuid = 1;
const result = await api.query.SubtensorModule.CommitRevealWeightsEnabled.getValue(netuid);
console.log("CommitRevealWeightsEnabled:", result);Current version of the commit-reveal weights protocol.
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 scores for neurons on a subnet.
Vec<PerU16> (Array of PerU16)Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 Consensus storage
const netuid = 1;
const result = await api.query.SubtensorModule.Consensus.getValue(netuid);
console.log("Consensus:", result);The previous epoch's consensus vector, held per subnet mechanism.
Vec<PerU16> (Array of PerU16)Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid storage index | NetUidStorageIndex | — | — |
import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add 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);Commit-reveal v3 weight commits storage (deprecated, empty at v411).
Vec<(AccountId, BoundedVec, u64)> (Array of (AccountId, BoundedVec, u64))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUidStorageIndex | — | — |
epoch | 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 CRV3WeightCommits storage
const netuid = 1;
const epoch = 0n;
const result = await api.query.SubtensorModule.CRV3WeightCommits.getValue(netuid, epoch);
console.log("CRV3WeightCommits:", result);Commit-reveal v3.2 weight commits storage (deprecated, empty at v411).
Vec<(AccountId, u64, BoundedVec, u64)> (Array of (AccountId, u64, BoundedVec, u64))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUidStorageIndex | — | — |
epoch | 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 CRV3WeightCommitsV2 storage
const netuid = 1;
const epoch = 0n;
const result = await api.query.SubtensorModule.CRV3WeightCommitsV2.getValue(netuid, epoch);
console.log("CRV3WeightCommitsV2:", result);Cursor for the in-progress subnet dissolution cleanup walk.
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);Total decaying (non-perpetual) lock per hotkey per subnet. DMAP (netuid, hotkey) → LockState.
LockState Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | — |
hotkey | 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 DecayingHotkeyLock storage
const netuid = 1;
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.DecayingHotkeyLock.getValue(netuid, hotkey);
console.log("DecayingHotkeyLock:", result);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.
bool (Boolean (true/false))Keys
| Name | Type | Format | Description |
|---|---|---|---|
coldkey | AccountId | SS58 Address | — |
netuid | 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 DecayingLock storage
const coldkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const netuid = 1;
const result = await api.query.SubtensorModule.DecayingLock.getValue(coldkey, netuid);
console.log("DecayingLock:", result);Total decaying lock to the owner hotkey for a subnet. MAP (netuid) → LockState.
LockState Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 DecayingOwnerLock storage
const netuid = 1;
const result = await api.query.SubtensorModule.DecayingOwnerLock.getValue(netuid);
console.log("DecayingOwnerLock:", result);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.
i128 (Large Signed Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
key1 | AccountId | SS58 Address | — |
key2 | 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 DeferredBasketCashClaimed storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const key2 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.DeferredBasketCashClaimed.getValue(key1, key2);
console.log("DeferredBasketCashClaimed:", result);Map (validator_hotkey) to the cumulative TAO per unit of root stake from deferred dividends sold at subnet dissolution, as a signed I64F64.
FixedI128 Keys
| Name | Type | Format | Description |
|---|---|---|---|
key1 | 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 DeferredBasketCashRate storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.DeferredBasketCashRate.getValue(key1);
console.log("DeferredBasketCashRate:", result);Map (validator_hotkey) to the TAO, in RAO (u64), from sold deferred dividends that is still owed to the validator root stakers.
u64 (Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
key1 | 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 DeferredBasketCashReserve storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.DeferredBasketCashReserve.getValue(key1);
console.log("DeferredBasketCashReserve:", result);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.
DeferredBasketConversion Keys
| Name | Type | Format | Description |
|---|---|---|---|
key1 | AccountId | SS58 Address | — |
key2 | NetUid | — | — |
key3 | u64 | Integer | — |
// ----------------------------------------------------------------------
// 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);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.
BoundedBTreeMap Keys
| Name | Type | Format | Description |
|---|---|---|---|
key1 | AccountId | SS58 Address | — |
key2 | 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 DeferredBasketDebts storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const key2 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.DeferredBasketDebts.getValue(key1, key2);
console.log("DeferredBasketDebts:", result);Map (validator_hotkey) to the last generation number (u64) assigned to a deferred dividend batch of that hotkey.
u64 (Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
key1 | 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 DeferredBasketGeneration storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.DeferredBasketGeneration.getValue(key1);
console.log("DeferredBasketGeneration:", result);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.
DeferredBasketState Keys
| Name | Type | Format | Description |
|---|---|---|---|
key1 | AccountId | SS58 Address | — |
key2 | NetUid | — | — |
// ----------------------------------------------------------------------
// 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);Delegation take for a hotkey, as PerU16 (parts per 65535).
PerU16 Keys
| Name | Type | Format | Description |
|---|---|---|---|
hot | 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 Delegates storage
const hot = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.Delegates.getValue(hot);
console.log("Delegates:", result);POW difficulty for registration.
u64 (Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 Difficulty storage
const netuid = 1;
const result = await api.query.SubtensorModule.Difficulty.getValue(netuid);
console.log("Difficulty:", result);Netuids that have been removed but whose storage cleanup has not finished.
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);Block-count setting that no runtime path reads since v315. Reads 36000 at v454.
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);Dividend scores for neurons on a subnet.
Vec<PerU16> (Array of PerU16)Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 Dividends storage
const netuid = 1;
const result = await api.query.SubtensorModule.Dividends.getValue(netuid);
console.log("Dividends:", result);Blocks for EMA price to halve per subnet.
u64 (Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 EMAPriceHalvingBlocks storage
const netuid = 1;
const result = await api.query.SubtensorModule.EMAPriceHalvingBlocks.getValue(netuid);
console.log("EMAPriceHalvingBlocks:", result);Per-uid emission record of a subnet's last epoch, in alpha rao: MAP (netuid) → Vec<AlphaBalance>.
Vec<AlphaBalance> (Array of AlphaBalance)Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 Emission storage
const netuid = 1;
const result = await api.query.SubtensorModule.Emission.getValue(netuid);
console.log("Emission:", result);q, the demand-mass fraction used to place the emission gate bar when EmissionBarRank is zero. ITEM, U64F64.
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);Emission bar rank N. When non-zero, the gate bar θ is set to the Nth-largest positive demand share at each recompute.
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);θ, the demand-share threshold the Hill emission gate is centred on. ITEM, U64F64. Zero means not yet computed and disables the gate.
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);h, the steepness of the Hill emission gate. ITEM, U64F64. Governance-set.
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);Block number of first emission for a subnet.
u64 (Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 FirstEmissionBlockNumber storage
const netuid = 1;
const result = await api.query.SubtensorModule.FirstEmissionBlockNumber.getValue(netuid);
console.log("FirstEmissionBlockNumber:", result);EMA weight for the TAO-flow accumulators, as u64 / i64::MAX. Unread on the emission path since v421.
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);Power exponent p of the TAO-flow allocator. Present since v334; unread on the emission path since v421.
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);Gamma balances. DMAP (netuid, hotkey) → GammaDeposit { coldkey, spender, balance, daily_spend_cap }. One deposit per hotkey per subnet.
GammaDeposit Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | — |
hotkey | 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 GammaDeposits storage
const netuid = 1;
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.GammaDeposits.getValue(netuid, hotkey);
console.log("GammaDeposits:", result);Network-wide switch for gamma minting. ITEM bool, source default false.
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);Tracks which migrations have been executed.
bool (Boolean (true/false))Keys
| Name | Type | Format | Description |
|---|---|---|---|
key1 | 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 HasMigrationRun storage
const key1 = Binary.fromOpaque(new Uint8Array(0));
const result = await api.query.SubtensorModule.HasMigrationRun.getValue(key1);
console.log("HasMigrationRun:", result);Total non-owner lock per hotkey per subnet. DMAP (subnet, hotkey) → LockState.
LockState Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | — |
hotkey | 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 HotkeyLock storage
const netuid = 1;
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.HotkeyLock.getValue(netuid, hotkey);
console.log("HotkeyLock:", result);DMap ( netuid, hotkey ) --> root_hotkey | first hotkey in this subnet's
AccountId (SS58 Address)Keys
| Name | Type | Format | Description |
|---|---|---|---|
key1 | NetUid | — | — |
key2 | AccountId | SS58 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);DMap ( netuid, old_hotkey ) --> new_hotkey | hotkey swap successor on a subnet.
AccountId (SS58 Address)Keys
| Name | Type | Format | Description |
|---|---|---|---|
key1 | NetUid | — | — |
key2 | AccountId | SS58 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);Set of (coldkey, hotkey) root fund associations a single-subnet root hotkey swap left behind, claimable without a StakingHotkeys entry.
() Keys
| Name | Type | Format | Description |
|---|---|---|---|
key1 | AccountId | SS58 Address | — |
key2 | 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 HotkeySwapBasketCredits storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const key2 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.HotkeySwapBasketCredits.getValue(key1, key2);
console.log("HotkeySwapBasketCredits:", result);Identity metadata for coldkey accounts (v2).
ChainIdentityV2 Keys
| Name | Type | Format | Description |
|---|---|---|---|
key1 | 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 IdentitiesV2 storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.IdentitiesV2.getValue(key1);
console.log("IdentitiesV2:", result);Maximum UIDs a subnet owner can make immune from pruning.
u16 (Integer (0-65535))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 ImmuneOwnerUidsLimit storage
const netuid = 1;
const result = await api.query.SubtensorModule.ImmuneOwnerUidsLimit.getValue(netuid);
console.log("ImmuneOwnerUidsLimit:", result);Immunity period for new neurons (blocks).
u16 (Integer (0-65535))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 ImmunityPeriod storage
const netuid = 1;
const result = await api.query.SubtensorModule.ImmunityPeriod.getValue(netuid);
console.log("ImmunityPeriod:", result);Incentive scores for neurons on a subnet.
Vec<PerU16> (Array of PerU16)Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUidStorageIndex | — | — |
import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add 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);Whether a hotkey is registered on a subnet.
bool (Boolean (true/false))Keys
| Name | Type | Format | Description |
|---|---|---|---|
hotkey | AccountId | SS58 Address | — |
netuid | 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 IsNetworkMember storage
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const netuid = 1;
const result = await api.query.SubtensorModule.IsNetworkMember.getValue(hotkey, netuid);
console.log("IsNetworkMember:", result);Kappa parameter for consensus.
u16 (Integer (0-65535))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 Kappa storage
const netuid = 1;
const result = await api.query.SubtensorModule.Kappa.getValue(netuid);
console.log("Kappa:", result);Hotkey at a specific UID on a subnet.
AccountId (SS58 Address)Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | — |
uid | 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 Keys storage
const netuid = 1;
const uid = 0;
const result = await api.query.SubtensorModule.Keys.getValue(netuid, uid);
console.log("Keys:", result);Per-subnet u64 written only at genesis and removed on dissolution. Reads 0 on subnets 1, 3, 64 and 100 at v454.
u64 (Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 LargestLocked storage
const netuid = 1;
const result = await api.query.SubtensorModule.LargestLocked.getValue(netuid);
console.log("LargestLocked:", result);Block of last difficulty/burn adjustment per subnet.
u64 (Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 LastAdjustmentBlock storage
const netuid = 1;
const result = await api.query.SubtensorModule.LastAdjustmentBlock.getValue(netuid);
console.log("LastAdjustmentBlock:", result);Block when stake was last added/removed for a coldkey-hotkey pair.
u64 (Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
coldkey | AccountId | SS58 Address | — |
hotkey | 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 LastColdkeyHotkeyStakeBlock storage
const coldkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.LastColdkeyHotkeyStakeBlock.getValue(coldkey, hotkey);
console.log("LastColdkeyHotkeyStakeBlock:", result);Block at which the subnet last consumed an epoch slot, run or skipped.
u64 (Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 LastEpochBlock storage
const netuid = 1;
const result = await api.query.SubtensorModule.LastEpochBlock.getValue(netuid);
console.log("LastEpochBlock:", result);Block of last emission received by a hotkey on a subnet.
AlphaBalance Keys
| Name | Type | Format | Description |
|---|---|---|---|
key1 | AccountId | SS58 Address | — |
key2 | NetUid | — | — |
// ----------------------------------------------------------------------
// 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);Block of last hotkey swap on a subnet.
u64 (Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
key1 | NetUid | — | — |
key2 | AccountId | SS58 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 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);Last block when emission mechanism stepped.
u64 (Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 LastMechansimStepBlock storage
const netuid = 1;
const result = await api.query.SubtensorModule.LastMechansimStepBlock.getValue(netuid);
console.log("LastMechansimStepBlock:", result);Per hotkey, the work_block of its last accepted pow_register proof.
u64 (Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
key1 | 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 LastPowRegistrationBlock storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.LastPowRegistrationBlock.getValue(key1);
console.log("LastPowRegistrationBlock:", result);Block of last rate-limited operation by key type.
u64 (Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
RateLimitKey | RateLimitKey | — | — |
// ----------------------------------------------------------------------
// 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);Block of last transaction for an account.
u64 (Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
key1 | 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 LastTxBlock storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.LastTxBlock.getValue(key1);
console.log("LastTxBlock:", result);Block of last childkey take change for an account.
u64 (Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
key | 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 LastTxBlockChildKeyTake storage
const key = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.LastTxBlockChildKeyTake.getValue(key);
console.log("LastTxBlockChildKeyTake:", result);Block of last delegate take change for an account.
u64 (Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
key1 | 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 LastTxBlockDelegateTake storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.LastTxBlockDelegateTake.getValue(key1);
console.log("LastTxBlockDelegateTake:", result);Block number of last weight update for a neuron.
Vec<u64> (Array of Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUidStorageIndex | — | — |
import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add 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);Per subnet, the block of the last epoch step that ran Yuma and updated bonds.
u64 (Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
key1 | 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 LastYumaStepBlock storage
const key1 = 0;
const result = await api.query.SubtensorModule.LastYumaStepBlock.getValue(key1);
console.log("LastYumaStepBlock:", result);Which consensus vector liquid alpha uses when it prices bonds on a subnet.
ConsensusMode Keys
| Name | Type | Format | Description |
|---|---|---|---|
key1 | 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 LiquidAlphaConsensusMode storage
const key1 = 0;
const result = await api.query.SubtensorModule.LiquidAlphaConsensusMode.getValue(key1);
console.log("LiquidAlphaConsensusMode:", result);Whether Liquid Alpha is enabled per subnet.
bool (Boolean (true/false))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 LiquidAlphaOn storage
const netuid = 1;
const result = await api.query.SubtensorModule.LiquidAlphaOn.getValue(netuid);
console.log("LiquidAlphaOn:", result);Preloaded emission data for a subnet.
Vec<(AccountId, u64, u64)> (Array of (AccountId, u64, u64))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 LoadedEmission storage
const netuid = 1;
const result = await api.query.SubtensorModule.LoadedEmission.getValue(netuid);
console.log("LoadedEmission:", result);Per-coldkey per-subnet per-hotkey lock state. DMAP (coldkey, subnet, hotkey) → LockState.
LockState Keys
| Name | Type | Format | Description |
|---|---|---|---|
coldkey | AccountId | SS58 Address | — |
netuid | NetUid | — | — |
hotkey | 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 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);NMAP ( netuid, hotkey, coldkey ) --> () | Reverse index for non-zero locks targeting this hotkey on this subnet.
() Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | — |
hotkey | AccountId | SS58 Address | — |
coldkey | 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 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);Decay timescale in blocks for lock conviction. ITEM, default ~90 days.
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);Maximum neurons allowed on subnet.
u16 (Integer (0-65535))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 MaxAllowedUids storage
const netuid = 1;
const result = await api.query.SubtensorModule.MaxAllowedUids.getValue(netuid);
console.log("MaxAllowedUids:", result);Maximum validators on a subnet.
u16 (Integer (0-65535))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 MaxAllowedValidators storage
const netuid = 1;
const result = await api.query.SubtensorModule.MaxAllowedValidators.getValue(netuid);
console.log("MaxAllowedValidators:", result);Maximum burn for registration.
TaoBalance Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 MaxBurn storage
const netuid = 1;
const result = await api.query.SubtensorModule.MaxBurn.getValue(netuid);
console.log("MaxBurn:", result);Maximum allowed child key take rate.
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);Maximum allowed delegate take rate.
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);Maximum POW difficulty.
u64 (Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 MaxDifficulty storage
const netuid = 1;
const result = await api.query.SubtensorModule.MaxDifficulty.getValue(netuid);
console.log("MaxDifficulty:", result);Cap on how many subnet epochs may run in a single block.
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);ITEM( max_mechanism_count )
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);Maximum registrations allowed per block.
u16 (Integer (0-65535))Keys
| Name | Type | Format | Description |
|---|---|---|---|
key1 | 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 MaxRegistrationsPerBlock storage
const key1 = 0;
const result = await api.query.SubtensorModule.MaxRegistrationsPerBlock.getValue(key1);
console.log("MaxRegistrationsPerBlock:", result);Per-subnet u16 that no runtime path reads or writes since v334. Reads 65535 on subnet 1 at v454.
u16 (Integer (0-65535))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 MaxWeightsLimit storage
const netuid = 1;
const result = await api.query.SubtensorModule.MaxWeightsLimit.getValue(netuid);
console.log("MaxWeightsLimit:", result);Current number of mechanisms active on a subnet.
MechId Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 MechanismCountCurrent storage
const netuid = 1;
const result = await api.query.SubtensorModule.MechanismCountCurrent.getValue(netuid);
console.log("MechanismCountCurrent:", result);Emission distribution ratios between mechanisms per subnet.
Vec<u16> (Array of Integer (0-65535))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 MechanismEmissionSplit storage
const netuid = 1;
const result = await api.query.SubtensorModule.MechanismEmissionSplit.getValue(netuid);
console.log("MechanismEmissionSplit:", result);Minimum activity required for neurons to remain registered.
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);Minimum UIDs a subnet must maintain.
u16 (Integer (0-65535))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 MinAllowedUids storage
const netuid = 1;
const result = await api.query.SubtensorModule.MinAllowedUids.getValue(netuid);
console.log("MinAllowedUids:", result);Minimum weights a validator must set.
u16 (Integer (0-65535))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 MinAllowedWeights storage
const netuid = 1;
const result = await api.query.SubtensorModule.MinAllowedWeights.getValue(netuid);
console.log("MinAllowedWeights:", result);Minimum burn for registration.
TaoBalance Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 MinBurn storage
const netuid = 1;
const result = await api.query.SubtensorModule.MinBurn.getValue(netuid);
console.log("MinBurn:", result);Minimum allowed child key take rate.
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);Per-subnet minimum child-key take floor. MAP (netuid) → u16.
PerU16 Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 MinChildkeyTakePerSubnet storage
const netuid = 1;
const result = await api.query.SubtensorModule.MinChildkeyTakePerSubnet.getValue(netuid);
console.log("MinChildkeyTakePerSubnet:", result);Minimum allowed delegate take rate.
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);Minimum POW difficulty.
u64 (Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 MinDifficulty storage
const netuid = 1;
const result = await api.query.SubtensorModule.MinDifficulty.getValue(netuid);
console.log("MinDifficulty:", result);Fraction of the last epoch miner incentive withheld from miners because it was assigned to owner hotkeys.
FixedU128 Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 MinerBurned storage
const netuid = 1;
const result = await api.query.SubtensorModule.MinerBurned.getValue(netuid);
console.log("MinerBurned:", result);Registration collateral state for a (netuid, hotkey, coldkey) stake position.
MinerCollateralState Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | — |
hotkey | AccountId | SS58 Address | — |
coldkey | 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 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);Minimum non-immune UIDs required per subnet.
u16 (Integer (0-65535))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 MinNonImmuneUids storage
const netuid = 1;
const result = await api.query.SubtensorModule.MinNonImmuneUids.getValue(netuid);
console.log("MinNonImmuneUids:", result);Global toggle for net TAO flow accounting. ITEM, bool. Read only by dead code since v421.
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);Immunity period for new subnets.
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);Last subnet creation lock cost.
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);Blocks between lock cost reductions.
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);Minimum TAO lock to create subnet.
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);Whether PoW registration is allowed per subnet.
bool (Boolean (true/false))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 NetworkPowRegistrationAllowed storage
const netuid = 1;
const result = await api.query.SubtensorModule.NetworkPowRegistrationAllowed.getValue(netuid);
console.log("NetworkPowRegistrationAllowed:", result);Blocks between allowed subnet creations.
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);Block when subnet was registered.
u64 (Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 NetworkRegisteredAt storage
const netuid = 1;
const result = await api.query.SubtensorModule.NetworkRegisteredAt.getValue(netuid);
console.log("NetworkRegisteredAt:", result);Whether registration is allowed per subnet.
bool (Boolean (true/false))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 NetworkRegistrationAllowed storage
const netuid = 1;
const result = await api.query.SubtensorModule.NetworkRegistrationAllowed.getValue(netuid);
console.log("NetworkRegistrationAllowed:", result);The escrow behind each subnet registration queued from v472: lock_id to (registrant coldkey, amount).
(AccountId, TaoBalance) Keys
| Name | Type | Format | Description |
|---|---|---|---|
key1 | 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 NetworkRegistrationEscrow storage
const key1 = 0;
const result = await api.query.SubtensorModule.NetworkRegistrationEscrow.getValue(key1);
console.log("NetworkRegistrationEscrow:", result);MAP ( coldkey ) --> lock_id
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);Subnet registrations that have been paid for but not yet assigned a netuid.
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);Block when network registration opens.
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);Whether a subnet with given netuid exists.
bool (Boolean (true/false))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 NetworksAdded storage
const netuid = 1;
const result = await api.query.SubtensorModule.NetworksAdded.getValue(netuid);
console.log("NetworksAdded:", result);TLS/SSL certificates for neurons.
NeuronCertificate Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | — |
hotkey | 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 NeuronCertificates storage
const netuid = 1;
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.NeuronCertificates.getValue(netuid, hotkey);
console.log("NeuronCertificates:", result);Unused counter left from the aggregated-unstake job queue. Reads 0.
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);Next ID for subnet lease creation.
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);Minimum stake required for nominators.
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);Per subnet, the final UID target of an unfinished sudo_trim_null_uids_batch operation.
u16 (Integer (0-65535))Keys
| Name | Type | Format | Description |
|---|---|---|---|
key1 | 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 NullPruningTarget storage
const key1 = 0;
const result = await api.query.SubtensorModule.NullPruningTarget.getValue(key1);
console.log("NullPruningTarget:", result);Total count of unique coldkeys with stake.
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);List of hotkeys owned by a coldkey.
Vec<AccountId> (Array of SS58 Address)Keys
| Name | Type | Format | Description |
|---|---|---|---|
key1 | 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 OwnedHotkeys storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.OwnedHotkeys.getValue(key1);
console.log("OwnedHotkeys:", result);Coldkey owner of a hotkey.
AccountId (SS58 Address)Keys
| Name | Type | Format | Description |
|---|---|---|---|
key1 | 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 Owner storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.Owner.getValue(key1);
console.log("Owner:", result);Per-subnet flag controlling whether owner cut auto-locks into OwnerLock. MAP (netuid) → bool, default true.
bool (Boolean (true/false))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 OwnerCutAutoLockEnabled storage
const netuid = 1;
const result = await api.query.SubtensorModule.OwnerCutAutoLockEnabled.getValue(netuid);
console.log("OwnerCutAutoLockEnabled:", result);Per-subnet flag that controlled whether the owner cut was paid, v411 through v479. MAP (netuid) → bool.
bool (Boolean (true/false))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 OwnerCutEnabled storage
const netuid = 1;
const result = await api.query.SubtensorModule.OwnerCutEnabled.getValue(netuid);
console.log("OwnerCutEnabled:", result);Rate limit for owner hyperparameter changes in epochs.
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);Total perpetual lock attributed to the owner hotkey for a subnet. MAP (netuid) → LockState.
LockState Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 OwnerLock storage
const netuid = 1;
const result = await api.query.SubtensorModule.OwnerLock.getValue(netuid);
console.log("OwnerLock:", result);Parent hotkeys for a child hotkey on a subnet.
Vec<(u64, AccountId)> (Array of (u64, AccountId))Keys
| Name | Type | Format | Description |
|---|---|---|---|
child | AccountId | SS58 Address | — |
netuid | 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 ParentKeys storage
const child = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const netuid = 1;
const result = await api.query.SubtensorModule.ParentKeys.getValue(child, netuid);
console.log("ParentKeys:", result);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.
AlphaBalance Keys
| Name | Type | Format | Description |
|---|---|---|---|
hotkey | AccountId | SS58 Address | — |
netuid | 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 PendingBasketDeposits storage
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const netuid = 1;
const result = await api.query.SubtensorModule.PendingBasketDeposits.getValue(hotkey, netuid);
console.log("PendingBasketDeposits:", result);Round-robin cursor of the per-block pending-basket-deposit flush over PendingBasketDeposits.
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);Cooldown period for pending childkey operations.
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);Scheduled child key changes awaiting execution.
(Vec<(u64, AccountId)>, u64) Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | — |
parent | 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 PendingChildKeys storage
const netuid = 1;
const parent = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.PendingChildKeys.getValue(netuid, parent);
console.log("PendingChildKeys:", result);Block at which a manually triggered or deferred epoch should fire; 0 means none pending.
u64 (Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 PendingEpochAt storage
const netuid = 1;
const result = await api.query.SubtensorModule.PendingEpochAt.getValue(netuid);
console.log("PendingEpochAt:", result);Map (netuid) to the alpha, in alpha-RAO (u64), accrued to the subnet gamma shares since they were last allotted.
AlphaBalance Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 PendingGammaEmission storage
const netuid = 1;
const result = await api.query.SubtensorModule.PendingGammaEmission.getValue(netuid);
console.log("PendingGammaEmission:", result);Owner cut of alpha emission per subnet, accumulated per block and paid at the epoch.
AlphaBalance Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 PendingOwnerCut storage
const netuid = 1;
const result = await api.query.SubtensorModule.PendingOwnerCut.getValue(netuid);
console.log("PendingOwnerCut:", result);Root share of alpha emission per subnet, accumulated per block and drained at the epoch.
AlphaBalance Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 PendingRootAlphaDivs storage
const netuid = 1;
const result = await api.query.SubtensorModule.PendingRootAlphaDivs.getValue(netuid);
console.log("PendingRootAlphaDivs:", result);Pending miner (server) emissions per subnet — accumulates, reset at tempo.
AlphaBalance Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 PendingServerEmission storage
const netuid = 1;
const result = await api.query.SubtensorModule.PendingServerEmission.getValue(netuid);
console.log("PendingServerEmission:", result);Pending validator emissions per subnet — accumulates, reset at tempo.
AlphaBalance Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 PendingValidatorEmission storage
const netuid = 1;
const result = await api.query.SubtensorModule.PendingValidatorEmission.getValue(netuid);
console.log("PendingValidatorEmission:", result);POW registrations in current interval.
u16 (Integer (0-65535))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 POWRegistrationsThisInterval storage
const netuid = 1;
const result = await api.query.SubtensorModule.POWRegistrationsThisInterval.getValue(netuid);
console.log("POWRegistrationsThisInterval:", result);Prometheus endpoint info for neurons.
PrometheusInfo Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | — |
hotkey | 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 Prometheus storage
const netuid = 1;
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.Prometheus.getValue(netuid, hotkey);
console.log("Prometheus:", result);RAO recycled from registration burns per subnet.
TaoBalance Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 RAORecycledForRegistration storage
const netuid = 1;
const result = await api.query.SubtensorModule.RAORecycledForRegistration.getValue(netuid);
console.log("RAORecycledForRegistration:", result);Per-subnet choice of whether miner incentive withheld from owner hotkeys is recycled or burned.
RecycleOrBurnEnum Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 RecycleOrBurn storage
const netuid = 1;
const result = await api.query.SubtensorModule.RecycleOrBurn.getValue(netuid);
console.log("RecycleOrBurn:", result);MAP ( netuid ) --> registered_subnet_counter
u64 (Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 RegisteredSubnetCounter storage
const netuid = 1;
const result = await api.query.SubtensorModule.RegisteredSubnetCounter.getValue(netuid);
console.log("RegisteredSubnetCounter:", result);Registrations in current block.
u16 (Integer (0-65535))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 RegistrationsThisBlock storage
const netuid = 1;
const result = await api.query.SubtensorModule.RegistrationsThisBlock.getValue(netuid);
console.log("RegistrationsThisBlock:", result);Registrations in current adjustment interval.
u16 (Integer (0-65535))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 RegistrationsThisInterval storage
const netuid = 1;
const result = await api.query.SubtensorModule.RegistrationsThisInterval.getValue(netuid);
console.log("RegistrationsThisInterval:", result);Epochs allowed for weight reveal after commit.
u64 (Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
key1 | 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 RevealPeriodEpochs storage
const key1 = 0;
const result = await api.query.SubtensorModule.RevealPeriodEpochs.getValue(key1);
console.log("RevealPeriodEpochs:", result);Rho parameter for emissions.
u16 (Integer (0-65535))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 Rho storage
const netuid = 1;
const result = await api.query.SubtensorModule.Rho.getValue(netuid);
console.log("Rho:", result);Root-weighted alpha dividend per hotkey per subnet at the last epoch, net of the validator take.
AlphaBalance Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | — |
hotkey | 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 RootAlphaDividendsPerSubnet storage
const netuid = 1;
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.RootAlphaDividendsPerSubnet.getValue(netuid, hotkey);
console.log("RootAlphaDividendsPerSubnet:", result);LEGACY per-subnet root claimable rates per hotkey, BTreeMap<NetUid, I96F32>. Superseded by BasketRate at v441; no longer written by the coinbase.
BTreeMap Keys
| Name | Type | Format | Description |
|---|---|---|---|
key1 | 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 RootClaimable storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.RootClaimable.getValue(key1);
console.log("RootClaimable:", result);Minimum TAO value for a root dividend deposit or claim to proceed. MAP (netuid) → I64F64, but only the netuid 0 entry is consulted.
FixedI128 Keys
| Name | Type | Format | Description |
|---|---|---|---|
key1 | 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 RootClaimableThreshold storage
const key1 = 0;
const result = await api.query.SubtensorModule.RootClaimableThreshold.getValue(key1);
console.log("RootClaimableThreshold:", result);LEGACY per-subnet claimed watermark per (netuid, hotkey, coldkey). Superseded by BasketClaimed at v441; no longer written by claims.
u128 (Large Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
key1 | NetUid | — | — |
key2 | AccountId | SS58 Address | — |
key3 | AccountId | SS58 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 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);Per-subnet root proportion as computed in the last block: TaoWeight-scaled root TAO over that plus the subnet alpha issuance.
FixedU128 Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 RootProp storage
const netuid = 1;
const result = await api.query.SubtensorModule.RootProp.getValue(netuid);
console.log("RootProp:", result);Minimum number of blocks root (netuid 0) stake must be held before it can leave root.
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);Per subnet, the MaxAllowedValidators value saved when the subnet switched to Null, restored on return to Yuma.
u16 (Integer (0-65535))Keys
| Name | Type | Format | Description |
|---|---|---|---|
key1 | 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 SavedYumaMaxAllowedValidators storage
const key1 = 0;
const result = await api.query.SubtensorModule.SavedYumaMaxAllowedValidators.getValue(key1);
console.log("SavedYumaMaxAllowedValidators:", result);Scaling law exponent per subnet.
u16 (Integer (0-65535))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 ScalingLawPower storage
const netuid = 1;
const result = await api.query.SubtensorModule.ScalingLawPower.getValue(netuid);
console.log("ScalingLawPower:", result);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.
ServiceInfo Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | — |
hotkey | 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 Services storage
const netuid = 1;
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.Services.getValue(netuid, hotkey);
console.log("Services:", result);Blocks between allowed serving updates.
u64 (Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 ServingRateLimit storage
const netuid = 1;
const result = await api.query.SubtensorModule.ServingRateLimit.getValue(netuid);
console.log("ServingRateLimit:", result);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.
u64 (Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
key1 | NetUid | — | — |
key2 | AccountId | SS58 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 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);Minimum stake required to set weights.
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);Stake-based weights per UID per subnet.
Vec<u16> (Array of Integer (0-65535))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 StakeWeight storage
const netuid = 1;
const result = await api.query.SubtensorModule.StakeWeight.getValue(netuid);
console.log("StakeWeight:", result);Reverse index mapping coldkey to its position.
u64 (Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
key1 | 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 StakingColdkeys storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.StakingColdkeys.getValue(key1);
console.log("StakingColdkeys:", result);Index mapping for iterating staking coldkeys.
AccountId (SS58 Address)Keys
| Name | Type | Format | Description |
|---|---|---|---|
key1 | 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 StakingColdkeysByIndex storage
const key1 = 0n;
const result = await api.query.SubtensorModule.StakingColdkeysByIndex.getValue(key1);
console.log("StakingColdkeysByIndex:", result);List of hotkeys a coldkey has staked to.
Vec<AccountId> (Array of SS58 Address)Keys
| Name | Type | Format | Description |
|---|---|---|---|
key1 | 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 StakingHotkeys storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.StakingHotkeys.getValue(key1);
console.log("StakingHotkeys:", result);Delay before subnet can call start.
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);Alpha tokens in the subnet liquidity pool.
AlphaBalance Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 SubnetAlphaIn storage
const netuid = 1;
const result = await api.query.SubtensorModule.SubnetAlphaIn.getValue(netuid);
console.log("SubnetAlphaIn:", result);Alpha added to the pool reserve as price-active liquidity in the last block. MAP (netuid), overwritten every block.
AlphaBalance Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 SubnetAlphaInEmission storage
const netuid = 1;
const result = await api.query.SubtensorModule.SubnetAlphaInEmission.getValue(netuid);
console.log("SubnetAlphaInEmission:", result);Alpha tokens distributed to stakers.
AlphaBalance Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 SubnetAlphaOut storage
const netuid = 1;
const result = await api.query.SubtensorModule.SubnetAlphaOut.getValue(netuid);
console.log("SubnetAlphaOut:", result);Alpha minted for participants in the last block, before the owner cut. MAP (netuid), overwritten every block.
AlphaBalance Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 SubnetAlphaOutEmission storage
const netuid = 1;
const result = await api.query.SubtensorModule.SubnetAlphaOutEmission.getValue(netuid);
console.log("SubnetAlphaOutEmission:", result);True for a subnet registered through a crowdloan lease. Persists after the lease ends.
bool (Boolean (true/false))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 SubnetCreatedViaLease storage
const netuid = 1;
const result = await api.query.SubtensorModule.SubnetCreatedViaLease.getValue(netuid);
console.log("SubnetCreatedViaLease:", result);EMA of protocol TAO flow per subnet, as (last block, I64F64). Frozen since v421.
(u64, FixedI128) Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 SubnetEmaProtocolFlow storage
const netuid = 1;
const result = await api.query.SubtensorModule.SubnetEmaProtocolFlow.getValue(netuid);
console.log("SubnetEmaProtocolFlow:", result);EMA of user TAO flow per subnet, as (last block, I64F64). Frozen since v421.
(u64, FixedI128) Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 SubnetEmaTaoFlow storage
const netuid = 1;
const result = await api.query.SubtensorModule.SubnetEmaTaoFlow.getValue(netuid);
console.log("SubnetEmaTaoFlow:", result);Per-subnet switch for TAO-side emission. MAP (netuid) → bool, default true. False sets the subnet TAO share to zero and renormalises the rest.
bool (Boolean (true/false))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 SubnetEmissionEnabled storage
const netuid = 1;
const result = await api.query.SubtensorModule.SubnetEmissionEnabled.getValue(netuid);
console.log("SubnetEmissionEnabled:", result);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.
BoundedVec Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 SubnetEmissionWeights storage
const netuid = 1;
const result = await api.query.SubtensorModule.SubnetEmissionWeights.getValue(netuid);
console.log("SubnetEmissionWeights:", result);Per subnet, the epoch reward algorithm: Yuma or Null.
EpochConsensus Keys
| Name | Type | Format | Description |
|---|---|---|---|
key1 | 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 SubnetEpochConsensus storage
const key1 = 0;
const result = await api.query.SubtensorModule.SubnetEpochConsensus.getValue(key1);
console.log("SubnetEpochConsensus:", result);Monotonic count of epoch slots consumed by a subnet.
u64 (Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 SubnetEpochIndex storage
const netuid = 1;
const result = await api.query.SubtensorModule.SubnetEpochIndex.getValue(netuid);
console.log("SubnetEpochIndex:", result);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.
TaoBalance Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 SubnetExcessTao storage
const netuid = 1;
const result = await api.query.SubtensorModule.SubnetExcessTao.getValue(netuid);
console.log("SubnetExcessTao:", result);Fast EMA of a subnet spot price, the trading anchor for swap_basket.
FixedU128 Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 SubnetFastMovingPrice storage
const netuid = 1;
const result = await api.query.SubtensorModule.SubnetFastMovingPrice.getValue(netuid);
console.log("SubnetFastMovingPrice:", result);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.
BoundedVec Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 SubnetGammaEmission storage
const netuid = 1;
const result = await api.query.SubtensorModule.SubnetGammaEmission.getValue(netuid);
console.log("SubnetGammaEmission:", result);Map (netuid) to whether other subnets may give this subnet a gamma share.
bool (Boolean (true/false))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 SubnetGammaEmissionWhitelisted storage
const netuid = 1;
const result = await api.query.SubtensorModule.SubnetGammaEmissionWhitelisted.getValue(netuid);
console.log("SubnetGammaEmissionWhitelisted:", result);Per-subnet switch for gamma minting. MAP (netuid) → bool, source default false.
bool (Boolean (true/false))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 SubnetGammaEnabled storage
const netuid = 1;
const result = await api.query.SubtensorModule.SubnetGammaEnabled.getValue(netuid);
console.log("SubnetGammaEnabled:", result);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.
FixedU128 Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 SubnetGammaPrice storage
const netuid = 1;
const result = await api.query.SubtensorModule.SubnetGammaPrice.getValue(netuid);
console.log("SubnetGammaPrice:", result);Identity metadata for subnets (v3).
SubnetIdentityV3 Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 SubnetIdentitiesV3 storage
const netuid = 1;
const result = await api.query.SubtensorModule.SubnetIdentitiesV3.getValue(netuid);
console.log("SubnetIdentitiesV3:", result);Subnet lease records by lease id: active leases, and terminated leases that are not fully settled.
SubnetLease Keys
| Name | Type | Format | Description |
|---|---|---|---|
lease_id | 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 SubnetLeases storage
const lease_id = 0;
const result = await api.query.SubtensorModule.SubnetLeases.getValue(lease_id);
console.log("SubnetLeases:", result);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.
AccountId (SS58 Address)Keys
| Name | Type | Format | Description |
|---|---|---|---|
key1 | 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 SubnetLeaseTerminationHotkey storage
const key1 = 0;
const result = await api.query.SubtensorModule.SubnetLeaseTerminationHotkey.getValue(key1);
console.log("SubnetLeaseTerminationHotkey:", result);Lease dividend alpha owed to a contributor that could not be transferred yet.
AlphaBalance Keys
| Name | Type | Format | Description |
|---|---|---|---|
lease_id | u32 | Integer | — |
contributor | 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 SubnetLeaseUnpaidDividends storage
const lease_id = 0;
const contributor = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.SubnetLeaseUnpaidDividends.getValue(lease_id, contributor);
console.log("SubnetLeaseUnpaidDividends:", result);Maximum number of subnets allowed on the network.
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);TAO locked for a subnet.
TaoBalance Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 SubnetLocked storage
const netuid = 1;
const result = await api.query.SubtensorModule.SubnetLocked.getValue(netuid);
console.log("SubnetLocked:", result);Consensus mechanism type per subnet.
u16 (Integer (0-65535))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 SubnetMechanism storage
const netuid = 1;
const result = await api.query.SubtensorModule.SubnetMechanism.getValue(netuid);
console.log("SubnetMechanism:", result);Moving alpha smoothing factor for all subnets.
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);Moving average price for subnet alpha.
FixedI128 Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 SubnetMovingPrice storage
const netuid = 1;
const result = await api.query.SubtensorModule.SubnetMovingPrice.getValue(netuid);
console.log("SubnetMovingPrice:", result);Owner account for a subnet.
AccountId (SS58 Address)Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 SubnetOwner storage
const netuid = 1;
const result = await api.query.SubtensorModule.SubnetOwner.getValue(netuid);
console.log("SubnetOwner:", result);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).
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);Cumulative alpha credited to the owner slot of a subnet since registration (or since the v481 seed).
AlphaBalance Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 SubnetOwnerCutAccrued storage
const netuid = 1;
const result = await api.query.SubtensorModule.SubnetOwnerCutAccrued.getValue(netuid);
console.log("SubnetOwnerCutAccrued:", result);Hotkey associated with subnet owner.
AccountId (SS58 Address)Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 SubnetOwnerHotkey storage
const netuid = 1;
const result = await api.query.SubtensorModule.SubnetOwnerHotkey.getValue(netuid);
console.log("SubnetOwnerHotkey:", result);Cumulative alpha the protocol bought with excess emission TAO on a subnet. MAP (netuid) → AlphaBalance.
AlphaBalance Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 SubnetProtocolAlpha storage
const netuid = 1;
const result = await api.query.SubtensorModule.SubnetProtocolAlpha.getValue(netuid);
console.log("SubnetProtocolAlpha:", result);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.
i64 (Signed Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 SubnetProtocolFlow storage
const netuid = 1;
const result = await api.query.SubtensorModule.SubnetProtocolFlow.getValue(netuid);
console.log("SubnetProtocolFlow:", result);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.
TaoBalance Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 SubnetRootSellTao storage
const netuid = 1;
const result = await api.query.SubtensorModule.SubnetRootSellTao.getValue(netuid);
console.log("SubnetRootSellTao:", result);Lifecycle state of a subnet: Registered, Started, PendingDissolution or Dissolving. MAP (netuid) → SubnetLifecycleState.
SubnetLifecycleState Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 SubnetState storage
const netuid = 1;
const result = await api.query.SubtensorModule.SubnetState.getValue(netuid);
console.log("SubnetState:", result);TAO in the subnet liquidity pool.
TaoBalance Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 SubnetTAO storage
const netuid = 1;
const result = await api.query.SubtensorModule.SubnetTAO.getValue(netuid);
console.log("SubnetTAO:", result);Signed running sum of user TAO swapped into and out of a subnet pool. Written by swaps, never reset since v421.
i64 (Signed Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 SubnetTaoFlow storage
const netuid = 1;
const result = await api.query.SubtensorModule.SubnetTaoFlow.getValue(netuid);
console.log("SubnetTaoFlow:", result);Price-active TAO added to a subnet pool reserve in the LAST block. Overwritten every block.
TaoBalance Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 SubnetTaoInEmission storage
const netuid = 1;
const result = await api.query.SubtensorModule.SubnetTaoInEmission.getValue(netuid);
console.log("SubnetTaoInEmission:", result);Map subnet UIDs to lease IDs.
u32 (Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 SubnetUidToLeaseId storage
const netuid = 1;
const result = await api.query.SubtensorModule.SubnetUidToLeaseId.getValue(netuid);
console.log("SubnetUidToLeaseId:", result);TAO swapped through a subnet pool since its current registration.
u128 (Large Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 SubnetVolume storage
const netuid = 1;
const result = await api.query.SubtensorModule.SubnetVolume.getValue(netuid);
console.log("SubnetVolume:", result);Number of registered neurons on a subnet.
u16 (Integer (0-65535))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 SubnetworkN storage
const netuid = 1;
const result = await api.query.SubtensorModule.SubnetworkN.getValue(netuid);
console.log("SubnetworkN:", result);Whether subtoken trading is enabled per subnet.
bool (Boolean (true/false))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 SubtokenEnabled storage
const netuid = 1;
const result = await api.query.SubtensorModule.SubtokenEnabled.getValue(netuid);
console.log("SubtokenEnabled:", result);Lower-limit floor for the TAO-flow allocator. Unread on the emission path since v421.
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);ITEM( TaoInRefundDeploymentBlock )
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);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.
TaoUsdPriceState import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add 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);The single account allowed to call feed_tao_usd_price. ITEM AccountId, empty by default.
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);Global TAO weight in economics.
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);Target registrations per adjustment interval.
u16 (Integer (0-65535))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 TargetRegistrationsPerInterval storage
const netuid = 1;
const result = await api.query.SubtensorModule.TargetRegistrationsPerInterval.getValue(netuid);
console.log("TargetRegistrationsPerInterval:", result);Emission interval for a subnet (blocks).
u16 (Integer (0-65535))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 Tempo storage
const netuid = 1;
const result = await api.query.SubtensorModule.Tempo.getValue(netuid);
console.log("Tempo:", result);Timelocked weight commits for commit-reveal — canonical at v411.
Vec<(AccountId, u64, BoundedVec, u64)> (Array of (AccountId, u64, BoundedVec, u64))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUidStorageIndex | — | — |
epoch | 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 TimelockedWeightCommits storage
const netuid = 1;
const epoch = 0n;
const result = await api.query.SubtensorModule.TimelockedWeightCommits.getValue(netuid, epoch);
console.log("TimelockedWeightCommits:", result);Token symbol for subnet alpha tokens.
Vec<u8> (Array of Integer (0-255))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 TokenSymbol storage
const netuid = 1;
const result = await api.query.SubtensorModule.TokenSymbol.getValue(netuid);
console.log("TokenSymbol:", result);Total alpha staked across every hotkey on a subnet.
AlphaBalance Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 TotalAlphaStaked storage
const netuid = 1;
const result = await api.query.SubtensorModule.TotalAlphaStaked.getValue(netuid);
console.log("TotalAlphaStaked:", result);Total alpha stake delegated to a hotkey.
AlphaBalance Keys
| Name | Type | Format | Description |
|---|---|---|---|
hot | AccountId | SS58 Address | — |
netuid | 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 TotalHotkeyAlpha storage
const hot = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const netuid = 1;
const result = await api.query.SubtensorModule.TotalHotkeyAlpha.getValue(hot, netuid);
console.log("TotalHotkeyAlpha:", result);TotalHotkeyAlpha snapshot taken when AlphaDividendsPerSubnet was written, per hotkey per subnet.
AlphaBalance Keys
| Name | Type | Format | Description |
|---|---|---|---|
hot | AccountId | SS58 Address | — |
netuid | 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 TotalHotkeyAlphaLastEpoch storage
const hot = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const netuid = 1;
const result = await api.query.SubtensorModule.TotalHotkeyAlphaLastEpoch.getValue(hot, netuid);
console.log("TotalHotkeyAlphaLastEpoch:", result);Total TAO in circulation.
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);Total number of subnets on the network.
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);Total TAO staked across all hotkeys.
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);Sum of every validator voting-power entry on a subnet.
u64 (Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 TotalVotingPower storage
const netuid = 1;
const result = await api.query.SubtensorModule.TotalVotingPower.getValue(netuid);
console.log("TotalVotingPower:", result);Last block for rate-limited transaction by key.
u64 (Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
hot | AccountId | SS58 Address | — |
netuid | NetUid | — | — |
name | 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 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);Whether alpha transfers are enabled per subnet.
bool (Boolean (true/false))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 TransferToggle storage
const netuid = 1;
const result = await api.query.SubtensorModule.TransferToggle.getValue(netuid);
console.log("TransferToggle:", result);Rate limit for childkey take changes.
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);Rate limit for delegate take changes.
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);General transaction rate limit.
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);UID assigned to a hotkey on a subnet.
u16 (Integer (0-65535))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | — |
hotkey | 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 Uids storage
const netuid = 1;
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.Uids.getValue(netuid, hotkey);
console.log("Uids:", result);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.
AlphaBalance Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | — |
target | NetUid | — | — |
// ----------------------------------------------------------------------
// 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);Decay timescale in blocks for the locked mass itself. ITEM.
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);Every PoW work blob accepted by registration, mapped to the block it was submitted at. Write-only.
u64 (Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
key1 | 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 UsedWork storage
const key1 = Binary.fromOpaque(new Uint8Array(0));
const result = await api.query.SubtensorModule.UsedWork.getValue(key1);
console.log("UsedWork:", result);Whether a neuron has validator permit.
Vec<bool> (Array of Boolean (true/false))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 ValidatorPermit storage
const netuid = 1;
const result = await api.query.SubtensorModule.ValidatorPermit.getValue(netuid);
console.log("ValidatorPermit:", result);Per-subnet u64 that no runtime path reads since v216. Reads 1 on subnet 1 at v454.
u64 (Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 ValidatorPruneLen storage
const netuid = 1;
const result = await api.query.SubtensorModule.ValidatorPruneLen.getValue(netuid);
console.log("ValidatorPruneLen:", result);Validator-specific trust scores.
Vec<PerU16> (Array of PerU16)Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 ValidatorTrust storage
const netuid = 1;
const result = await api.query.SubtensorModule.ValidatorTrust.getValue(netuid);
console.log("ValidatorTrust:", result);DMAP ( netuid, hotkey ) --> voting_power | EMA of stake for voting
u64 (Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUid | — | — |
hotkey | 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 VotingPower storage
const netuid = 1;
const hotkey = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.VotingPower.getValue(netuid, hotkey);
console.log("VotingPower:", result);MAP ( netuid ) --> block_number | Block at which voting power tracking will be disabled.
u64 (Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 VotingPowerDisableAtBlock storage
const netuid = 1;
const result = await api.query.SubtensorModule.VotingPowerDisableAtBlock.getValue(netuid);
console.log("VotingPowerDisableAtBlock:", result);MAP ( netuid ) --> u64 | EMA alpha value for voting power calculation.
u64 (Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 VotingPowerEmaAlpha storage
const netuid = 1;
const result = await api.query.SubtensorModule.VotingPowerEmaAlpha.getValue(netuid);
console.log("VotingPowerEmaAlpha:", result);MAP ( netuid ) --> bool | Whether voting power tracking is enabled for this subnet.
bool (Boolean (true/false))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 VotingPowerTrackingEnabled storage
const netuid = 1;
const result = await api.query.SubtensorModule.VotingPowerTrackingEnabled.getValue(netuid);
console.log("VotingPowerTrackingEnabled:", result);Committed weight hashes awaiting reveal.
Vec<(H256, u64, u64, u64)> (Array of (H256, u64, u64, u64))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUidStorageIndex | — | — |
who | 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 WeightCommits storage
const netuid = 1;
const who = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query.SubtensorModule.WeightCommits.getValue(netuid, who);
console.log("WeightCommits:", result);Weight matrix set by validators on a subnet.
Vec<(u16, u16)> (Array of (u16, u16))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | NetUidStorageIndex | — | — |
uid | 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 Weights storage
const netuid = 1;
const uid = 0;
const result = await api.query.SubtensorModule.Weights.getValue(netuid, uid);
console.log("Weights:", result);Rate limit for weight setting per subnet.
u64 (Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 WeightsSetRateLimit storage
const netuid = 1;
const result = await api.query.SubtensorModule.WeightsSetRateLimit.getValue(netuid);
console.log("WeightsSetRateLimit:", result);Required version key for setting weights.
u64 (Integer)Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 WeightsVersionKey storage
const netuid = 1;
const result = await api.query.SubtensorModule.WeightsVersionKey.getValue(netuid);
console.log("WeightsVersionKey:", result);Rate limit for weights version key changes.
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);Whether Yuma3 consensus is enabled per subnet.
bool (Boolean (true/false))Keys
| Name | Type | Format | Description |
|---|---|---|---|
netuid | 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 Yuma3On storage
const netuid = 1;
const result = await api.query.SubtensorModule.Yuma3On.getValue(netuid);
console.log("Yuma3On:", result);Constants 70
Upper bound for alpha parameter.
u1658982import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add 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);Lower bound for alpha parameter.
u1645875import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add 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);PalletId used to derive the on-chain burn account (b"burntnsr").
PalletId0x6275726e746e7372import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add 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);Blocks between allowed hotkey swaps on subnet.
u64"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;Initial blocks of inactivity before neuron is pruned.
u165000import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add 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);Initial alpha parameter for difficulty adjustment.
u64"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;Initial blocks between difficulty adjustments.
u16100import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add 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);Initial steepness of alpha sigmoid curve.
i161000import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add 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);Initial moving average period for bond calculations.
u64"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;Initial penalty factor for bond calculations.
u1665535import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add 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);Initial setting for bonds reset behavior.
boolfalseimport { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add 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);Initial TAO burn cost for registration.
TaoBalance"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;Genesis default for the coldkey swap announcement delay, in blocks.
u3236000import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add 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);Genesis default for the coldkey swap reannouncement delay, in blocks.
u327200import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add 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);Initial default take for child hotkeys.
u160import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add 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);Initial default commission rate for new delegates.
u1611796import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add 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);Initial proof-of-work difficulty for registration.
u64"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;Initial duration before network dissolution executes.
u3236000import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add 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);Initial EMA price halving period in blocks.
u64"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;Initial emission ratio for new subnets.
u160import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add 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);Initial immunity period for new neurons.
u164096import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add 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);Initial TAO supply at genesis.
TaoBalance"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;Initial kappa parameter for consensus.
u1632767import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add 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);Initial maximum neurons per subnet.
u16256import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add 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);Initial maximum validators per subnet.
u16128import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add 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);Initial maximum burn cost for registration.
TaoBalance"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;Initial maximum child key take rate.
u1611796import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add 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);Initial maximum POW difficulty.
u64"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;Initial per-block cap on subnet epochs executed in a single block_step.
u82import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add 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);Initial max registrations allowed per block.
u161import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add 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);Initial minimum UIDs required on subnet.
u1664import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add 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);Initial minimum number of weights a validator must set.
u161024import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add 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);Initial minimum burn cost for registration.
TaoBalance"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;Initial minimum child key take rate.
u160import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add 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);Initial minimum delegate commission rate.
u160import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add 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);Initial minimum POW difficulty.
u64"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;Initial minimum stake, in rao.
TaoBalance"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;Initial minimum stake transfer amount.
TaoBalance"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;Initial immunity period for new subnets (in blocks).
u64"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;Initial blocks between lock cost reductions.
u64"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;Initial minimum TAO required to lock for subnet creation.
TaoBalance"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;Initial blocks between allowed subnet creations.
u64"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;Initial pruning score assigned to new neurons.
u1665535import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add 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);Default value seeding the per-subnet RAORecycledForRegistration storage map.
TaoBalance"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;Initial rho parameter for emission formula.
u1610import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add 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);Initial power factor for scaling law calculations.
u1650import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add 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);Initial blocks between serving info updates.
u64"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;Initial delay before subnets can start emissions.
u64"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;Initial percentage of emissions going to subnet owner.
u1611796import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add 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);Initial weight of TAO in pool calculations.
u64"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;Target number of registrations per adjustment interval.
u162import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add 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);Initial tempo (blocks between emissions) for new subnets.
u16360import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add 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);Initial rate limit for child key take changes.
u64"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;Initial rate limit for delegate take changes.
u64"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;Initial blocks between allowed transactions for rate limiting.
u64"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;Initial number of validators considered for pruning.
u64"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;Initial version key required for setting weights.
u64"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;Cost to swap a hotkey.
TaoBalance"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;Cost to swap a hotkey on a specific subnet.
TaoBalance"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;Blocks between lease dividend distributions.
u32100import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add 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);Flag indicating if Liquid Alpha is enabled.
boolfalseimport { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add 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);Upper bound for the owner-set activity-cutoff factor, in per-mille.
u3250000import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add 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);Lower bound for maximum burn value.
TaoBalance"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;Maximum percentage of UIDs that can be immune.
Percent80import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add 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);Upper bound for owner-set tempo, in blocks.
u1650400import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add 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);Lower bound for the owner-set activity-cutoff factor, in per-mille.
u321000import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add 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);Upper bound for minimum burn value.
TaoBalance"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;Lower bound for owner-set tempo, in blocks.
u16360import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add 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);PalletId used to derive per-subnet sovereign account IDs (b"subtensr").
PalletId0x73756274656e7372import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add 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);Flag indicating if Yuma3 consensus is enabled.
boolfalseimport { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
`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
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
The caller does not have enough TAO balance for the operation.
How to Fix
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
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
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
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
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
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
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
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
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
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
The symbol does not exist.
Common Causes
- Referencing unregistered symbol
- Symbol not yet created
How to Fix
Register the symbol first,Verify symbol spelling
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Voting power tracking is not enabled for this subnet.
How to Fix
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 call.
How to Fix
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
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
"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
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
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
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
Disabled temporarily.
How to Fix
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
Lock hotkey mismatch: existing lock is for a different hotkey.
How to Fix
Insufficient stake on subnet to cover the lock amount.
How to Fix
No existing lock found for the given coldkey and subnet.
How to Fix
There is already an active lock for the given coldkey.
How to Fix
A system account cannot be used in this operation
How to Fix
Trying to unlock more than locked
How to Fix
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
The supplied tempo is outside the allowed range.
How to Fix
The supplied activity-cutoff factor is outside the allowed range.
How to Fix
An epoch trigger is already pending for this subnet; wait for it to fire before triggering again.
How to Fix
The next automatic epoch is already imminent; a manual trigger would have no effect.
How to Fix
`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
The destination coldkey rejects incoming locked alpha.
How to Fix
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
Need to wait more blocks to do the start call.
How to Fix
The caller does not have enough Alpha stake for the operation.
How to Fix
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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