LastHotkeyEmissionOnNetuid

Storage Map v233 → current

Block of last emission received by a hotkey on a subnet .

Explore chain
Queried by: validatorsminersanalytics

The Big Picture

Tracks when each hotkey last received emission on each subnet. Useful for monitoring neuron activity and debugging emission distribution.

Use Cases

  • Monitor emission activity
  • Debug missing emissions
  • Build emission tracking tools

From Chain Metadata

DMap ( hot, netuid ) --> emission | last hotkey emission on network.

Purpose & Usage

Purpose

Track emission timing for hotkeys per subnet.

Common Query Patterns

  • Query by (hotkey, netuid)

Query Keys

#NameTypeDescription
1
key1
AccountId key1 (AccountId) (hex -> SS58)
2
key2
u16 key2 (u16)

Stored Value

Value in RAO (÷10⁹ for TAO)

RAO -> TAO (/ 10^9)

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 LastHotkeyEmissionOnNetuid storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const key2 = 0;

const result = await api.query
  [stringCamelCase("SubtensorModule")]
  [stringCamelCase("LastHotkeyEmissionOnNetuid")](
  key1,
  key2
);

console.log("LastHotkeyEmissionOnNetuid:", result.toHuman());

Runtime Info

View Source
Pallet
SubtensorModule
Storage Kind
Map
First Version
v233
Current Version
v393