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 → v411

--- 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
hot
AccountId hot (AccountId, hashed key component) (hex -> SS58)
2
cold
AccountId cold (AccountId, hashed key component) (hex -> SS58)
3
netuid
u16 netuid (u16, hashed key component)

Stored Value

last_emission_on_hot_cold_net (u64)

RAO -> TAO (/ 10^9)

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 LastHotkeyColdkeyEmissionOnNetuid storage
const hot = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const cold = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const netuid = 1;

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

Version History

v233 block 4,920,350 Added
v235–v237 · runtime versions skipped on chain (never deployed)
v238 block 4,936,550 Internal re-bind
v265 Removed

Runtime Info

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