SubnetLimit

Storage Re-added Plain v133 → v411 · 1× re-added

Maximum number of subnets allowed on the network.

Explore chain
Queried by: subnet ownersdevelopersanalytics

The Big Picture

The network has limited subnet slots. This cap ensures manageable network size. When full, new subnets can only replace dissolved ones.

Use Cases

  • Check if subnet creation is possible
  • Monitor network capacity
  • Plan subnet launches

From Chain Metadata

========================== ==== Staking Counters ==== ========================== The Subtensor [`TotalIssuance`] represents the total issuance of tokens on the Bittensor network. It is comprised of three parts: The total amount of issued tokens, tracked in the TotalIssuance of the Balances pallet The total amount of tokens staked in the system, tracked in [`TotalStake`] The total amount of tokens locked up for subnet reg, tracked in [`TotalSubnetLocked`] attained by iterating over subnet lock. Eventually, Bittensor should migrate to using Holds afterwhich time we will not require this separate accounting. ITEM ( maximum_number_of_networks )

Purpose & Usage

Purpose

Cap total subnet count for resource management.

Common Query Patterns

  • Single value query
Part of: Subnet Management

Stored Value

maximum_number_of_networks (u16)

Code Examples

import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add sub -w wss://entrypoint-finney.opentensor.ai:443

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

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

Version History

v133 block 1,404,224 Added
v149 block 3,014,339 Internal re-bind
v166–v194 · runtime versions skipped on chain (never deployed)
v195 block 3,791,350 Internal re-bind
v248–v319 · item was absent on chain
v320 block 6,523,566 Re-added
v353–v360 · runtime versions skipped on chain (never deployed)
v361 block 7,063,679 Internal re-bind Current

Runtime Info

View Source
Pallet
SubtensorModule
Storage Kind
Plain
First Version
v133
Current Version
v411