MinAllowedUids

Storage Map v320 → current

Minimum UIDs a subnet must maintain.

Explore chain
Queried by: subnet ownersdevelopersanalytics

The Big Picture

Sets a floor on subnet size. Subnets cannot reduce MaxAllowedUids below this. Ensures minimum participation for meaningful consensus.

Use Cases

  • Check minimum subnet size
  • Plan subnet capacity
  • Monitor subnet health

From Chain Metadata

MAP ( netuid ) --> min_allowed_uids

Purpose & Usage

Purpose

Prevent subnets from having too few participants.

Common Query Patterns

  • Query by netuid

Query Keys

#NameTypeDescription
1
key1
u16 key1 (u16)

Stored Value

value (u16)

Code Examples

import { ApiPromise, WsProvider } from "@polkadot/api";
import { stringCamelCase } from "@polkadot/util";

const provider = new WsProvider("wss://entrypoint-finney.opentensor.ai:443");
const api = await ApiPromise.create({ provider });

// Query MinAllowedUids storage
const key1 = 0;

const result = await api.query
  [stringCamelCase("SubtensorModule")]
  [stringCamelCase("MinAllowedUids")](
  key1
);

console.log("MinAllowedUids:", result.toHuman());

Runtime Info

View Source
Pallet
SubtensorModule
Storage Kind
Map
First Version
v320
Current Version
v393