FirstEmissionBlockNumber
Storage Map v257 → currentBlock 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 | key1 | u16 | key1 (u16) |
Stored Value
Relationships
Modified By
Related Events
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 FirstEmissionBlockNumber storage
const key1 = 0;
const result = await api.query
[stringCamelCase("SubtensorModule")]
[stringCamelCase("FirstEmissionBlockNumber")](
key1
);
console.log("FirstEmissionBlockNumber:", result.toHuman());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
Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Map
- First Version
- v257
- Current Version
- v393