NetworkRegisteredAt

Storage Map v133 → current

Block when subnet was registered.

Explore chain
Queried by: subnet ownersdevelopersanalytics

The Big Picture

Like neurons have immunity after registration, new subnets have immunity from dissolution. NetworkRegisteredAt records when the subnet was created. Combined with NetworkImmunityPeriod, it determines if the subnet is still protected.

Why This Matters

Is this subnet still protected from dissolution? Check (current_block - NetworkRegisteredAt) vs NetworkImmunityPeriod. Also shows how established the subnet is.

Example Scenario

Query NetworkRegisteredAt(netuid=18) returns 6500000. Current block is 7000000. Subnet is 500,000 blocks old (~11.5 days). Check if that exceeds NetworkImmunityPeriod.

Common Questions

What does subnet immunity protect against?
Dissolution. New subnets can't be removed during immunity, giving them time to establish themselves and attract participants.
Can I see all subnet creation dates?
Yes, iterate NetworkRegisteredAt for all netuids to see creation history.

Use Cases

  • Check if subnet is still in immunity period
  • Calculate subnet age
  • Build subnet tenure analytics
  • Research subnet creation patterns
  • Verify subnet legitimacy through age

Purpose & Usage

Purpose

Track subnet age for immunity - when did this subnet first appear.

Common Query Patterns

  • Query by netuid
  • Calculate subnet immunity status
  • Research subnet age and tenure

Query Keys

#NameTypeDescription
1
key1
u16 key1 (u16)

Stored Value

Value in RAO (÷10⁹ for TAO)

RAO -> TAO (/ 10^9)

Relationships

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

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

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

Runtime Info

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