FirstEmissionBlockNumber
Storage Map v257 → v411Block number of first emission for a subnet .
Explore chainQueried by: subnet ownersanalyticsdevelopers
The Big Picture
Marks when a subnet first started receiving emissions. Different from registration block - a subnet may be registered before emissions begin. Useful for calculating how long emissions have been flowing.
Use Cases
- Calculate subnet age from emission start
- Track emission history
- Build subnet timeline tools
From Chain Metadata
============================ ==== Subnet Parameters ===== ============================ MAP ( netuid ) --> block number of first emission
Purpose & Usage
Purpose
Track when a subnet started receiving emissions.
Common Query Patterns
- Query by netuid
Query Keys
| # | Name | Type | Description |
|---|---|---|---|
| 1 | netuid | u16 | netuid (u16, hashed key component) |
Stored Value
Relationships
Modified By
Related Events
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 FirstEmissionBlockNumber storage
const netuid = 1;
const result = await api.query.SubtensorModule.FirstEmissionBlockNumber.getValue(netuid);
console.log("FirstEmissionBlockNumber:", result);On-Chain Activity
Write Frequency
●●○○○○ Minimal <10K est. writes
<10K estimated writes
#65 most written storage item
Write Source User Extrinsics
Modified via user-submitted extrinsics
As of block 7,429,232
Version History
v257 block 5,228,683 Added
v278–v289 · runtime versions skipped on chain (never deployed)
v290 block 5,947,548 Internal re-bind Current
Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Map
- First Version
- v257
- Current Version
- v411