LoadedEmission
Storage Re-added Map v101 → v120, v121 → currentPreloaded emission data for a subnet .
Explore chainQueried by: validatorsdevelopers
The 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
Purpose & Usage
Purpose
Cache emission calculations for efficient distribution.
Common Query Patterns
- Query by netuid
Query Keys
| # | Name | Type | Description |
|---|---|---|---|
| 1 | key1 | u16 | key1 (u16) |
Stored Value
Value in RAO (÷10⁹ for TAO)
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 LoadedEmission storage
const key1 = 0;
const result = await api.query
[stringCamelCase("SubtensorModule")]
[stringCamelCase("LoadedEmission")](
key1
);
console.log("LoadedEmission:", result.toHuman());Version History
v101 block 1 Added
v121 block 518,345 Re-added Current
Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Map
- First Version
- v101
- Current Version
- v393