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 { 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 NetworkImmunityPeriod storage (no keys - plain value)
const result = await api.query.SubtensorModule.NetworkImmunityPeriod.getValue();
console.log("NetworkImmunityPeriod:", result);Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Plain
- First Version
- v133
- Current Version
- v411