Emission

Storage Map v101 → v490 · 1 shape change

Per-uid emission record of a subnet 's last epoch , in alpha rao : MAP (netuid ) → Vec<AlphaBalance>.

Explore chain
Queried by: minersvalidatorsanalytics

The Big Picture

The two agree only on the default emission split, where the miner budget is half of the epoch budget. On sn47 at block 9,337,020 (miner slot 0.694, validator slot 0.126), uid 149 held all the incentive: Emission[149] read 147,599,999,628 while IncentiveAlphaEmittedToMiners paid it 249,839,999,640, the whole drained server bucket. Through v481 a miner was paid its Emission value. Validator and root dividends are paid per hotkey and recorded in AlphaDividendsPerSubnet and RootAlphaDividendsPerSubnet, net of take.

Why This Matters

A dashboard that reads Emission as miner earnings understates miners on any subnet whose owner raised the miner slot, and overstates them where the miner slot is below the validator slot.

Example Scenario

Query Emission(47) returns 159 values. For miner earnings at the same epoch, read the block's IncentiveAlphaEmittedToMiners event for netuid 47.

Common Questions

How often does it update?
At each of the subnet's epochs. It holds the last epoch only.
Is it TAO or alpha?
Alpha rao, the subnet token at 10^9 per alpha.

Use Cases

  • Rank neurons by their combined weight in the last epoch
  • Read a miner payout from IncentiveAlphaEmittedToMiners (per uid, per mechanism) instead of this vector

From Chain Metadata

MAP ( netuid ) --> emission

Purpose & Usage

Purpose

Record each neuron's combined incentive-plus-dividend weight of the epoch budget. From v482 it is a record, not the payout: a Yuma epoch writes normalize(incentive + dividends) × the whole epoch budget (epoch_mechanism_with_budgets, run_epoch.rs:1185-1196) and pays miners apportion_units over the miner budget alone (run_epoch.rs:1209-1219).

Common Query Patterns

  • Query by netuid for the whole vector, indexed by uid
  • Pair with Keys(netuid, uid) to name the hotkey
Part of: Yuma ConsensusBlock EmissionEpoch ProcessingNeuron Pruning

Migration Notes

v424 v432 Breaking

key type changed from u16 to NetUid; value type changed from Vec<u64> to Vec<AlphaBalance>

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

#NameTypeDescription
1
netuid
NetUid u16netuid (NetUid, hashed key component)

Stored Value

emission (Vec<AlphaBalance>)

Default Value

0x00 (raw SCALE bytes)

Absent keys read as this value — querying a key that has never been written returns this default, not an error or empty result.

Relationships

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 Emission storage
const netuid = 1;

const result = await api.query.SubtensorModule.Emission.getValue(netuid);
console.log("Emission:", result);

On-Chain Activity

Write Frequency
●●●●●○ High 1M–10M est. writes

1M to 10M writes

#122 most written storage item

Write Source Calls + Hooks

Modified by both user extrinsics and runtime hooks

As of block 9,385,000

Version History

v101 block 1 Added
v425–v431 · runtime versions skipped on chain (never deployed)
v432 block 8,636,190 Shape changed Current
  • key : u16 → NetUid
  • value : Vec<u64> → Vec<AlphaBalance>

Runtime Info

View Source
Pallet
SubtensorModule
Storage Kind
Map
First Version
v101
Current Version
v490