NetworkPowRegistrationAllowed

Storage Map v136 → current

Whether PoW registration is allowed per subnet .

Explore chain
Queried by: minerssubnet ownersdevelopers

The Big Picture

Subnets can allow registration via proof-of-work as an alternative to burning. When enabled, miners can solve computational puzzles to register.

Use Cases

  • Check if PoW registration is available
  • Plan registration strategy
  • Monitor subnet access policies

Purpose & Usage

Purpose

Toggle proof-of-work based registration.

Common Query Patterns

  • Query by netuid

Query Keys

#NameTypeDescription
1
key1
u16 key1 (u16)

Stored Value

value (bool)

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

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

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

Runtime Info

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