This storage item was removed in v265

This storage item is no longer available in the current runtime. Existed from v233 to v265. Shown here for historical reference.

LastHotkeyColdkeyEmissionOnNetuid

Storage Removed Map v233 → v265 (removed)

--- NMAP ( hot, cold, netuid ) --> last_emission_on_hot_cold_net | Returns the last_emission_update_on_hot_cold_net

From Chain Metadata

NMAP ( hot, cold, netuid ) --> last_emission_on_hot_cold_net | Returns the last_emission_update_on_hot_cold_net

Purpose & Usage

Purpose

Stores chain state data.

Common Query Patterns

  • Query by key
  • Iterate all entries

Query Keys

#NameTypeDescription
1
key1
AccountId key1 (AccountId) (hex -> SS58)
2
key2
AccountId key2 (AccountId) (hex -> SS58)
3
key3
u16 key3 (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 LastHotkeyColdkeyEmissionOnNetuid storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const key2 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const key3 = 0;

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

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

Runtime Info

View Source
Pallet
SubtensorModule
Storage Kind
Map
First Version
v233
Removed In
v265