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
netuid
u16 netuid (u16, hashed key component)

Stored Value

min_allowed_uids (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 MinAllowedUids storage
const netuid = 1;

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

Runtime Info

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