LoadedEmission
Storage Map v101 → v490 · 2 shape changesPreloaded emission data for a subnet .
Explore chainThe Big Picture
Emission calculations are preloaded and cached here before distribution. Contains (hotkey, server_emission, validator_emission) tuples ready to be applied.
Use Cases
- Debug emission distribution
- Monitor emission calculations
- Build emission analytics
From Chain Metadata
MAP ( netuid ) --> (hotkey, se, ve)
Purpose & Usage
Purpose
Cache emission calculations for efficient distribution.
Common Query Patterns
- Query by netuid
Migration Notes
value type changed from Vec<(AccountId, u64)> to Vec<(AccountId, u64, u64)>
Update decoders: SCALE encoding is positional, so any signature change (added, removed, or type-changed fields, or storage shape changes) shifts byte offsets and existing decoders will misparse this item. Re-derive types from the new metadata.
key type changed from u16 to NetUid
Update decoders: SCALE encoding is positional, so any signature change (added, removed, or type-changed fields, or storage shape changes) shifts byte offsets and existing decoders will misparse this item. Re-derive types from the new metadata.
Query Keys
| # | Name | Type | Description |
|---|---|---|---|
| 1 | netuid | NetUid u16 | netuid (NetUid, hashed key component) |
Stored Value
(hotkey, (Vec<(AccountId, u64, u64)>)
Default Value
Optional storage: querying a key that has never been written returns no value (None) — do not assume a zero default.
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 LoadedEmission storage
const netuid = 1;
const result = await api.query.SubtensorModule.LoadedEmission.getValue(netuid);
console.log("LoadedEmission:", result);On-Chain Activity
100K to 1M writes
#164 most written storage item
Modified by both user extrinsics and runtime hooks
As of block 9,385,000
Version History
- value :
Vec<(AccountId, u64)>→Vec<(AccountId, u64, u64)>
- key :
u16→NetUid
Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Map
- First Version
- v101
- Current Version
- v490