NetworkRegistrationAllowed

Storage Map v121 → current

Whether registration is allowed per subnet .

Explore chain
Queried by: minerssubnet ownersdevelopers

The Big Picture

Master toggle for subnet registration. When false, no new neurons can register regardless of other settings. Used for controlled subnet launches or maintenance.

Use Cases

  • Check if registration is open
  • Plan registration timing
  • Monitor subnet access

Purpose & Usage

Purpose

Toggle neuron registration on/off.

Common Query Patterns

  • Query by netuid

Query Keys

#NameTypeDescription
1
key1
u16 key1 (u16)

Stored Value

value (bool)

Relationships

Modified By

Related Events

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 NetworkRegistrationAllowed storage
const key1 = 0;

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

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

Runtime Info

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