Queried by: subnet ownersdevelopersanalytics
The Big Picture
New subnets need time to attract participants and prove value. NetworkImmunityPeriod gives them this window - during immunity, subnets can't be dissolved regardless of performance. After immunity, they must compete to survive.
Why This Matters
Launching a subnet? You have NetworkImmunityPeriod blocks to get established before facing dissolution risk. Plan your launch and marketing around this window.
Example Scenario
Query NetworkImmunityPeriod() returns 302400 blocks (~7 days). New subnets have 7 days of protection to build up participants and demonstrate value.
Common Questions
- What happens after immunity?
- Subnets compete for survival. Poor performers may be dissolved to make room for new subnets. Performance is measured by various metrics.
- Can this be changed?
- It's a protocol parameter. Changes would require governance and affect all new subnet launches.
Use Cases
- Calculate how long new subnets are protected
- Plan subnet launch timeline
- Understand subnet survival mechanics
- Research network governance parameters
- Build subnet lifecycle dashboards
Purpose & Usage
Purpose
Protect new subnets from dissolution - grace period to establish themselves.
Common Query Patterns
- Single value query
- Calculate subnet immunity status
- Plan subnet launches
Stored Value
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 NetworkImmunityPeriod storage (no keys - plain value)
const result = await api.query
[stringCamelCase("SubtensorModule")]
[stringCamelCase("NetworkImmunityPeriod")]();
console.log("NetworkImmunityPeriod:", result.toHuman());Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Plain
- First Version
- v133
- Current Version
- v393