This storage item was removed in v219

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

StakeDeltaSinceLastEmissionDrain

Storage Removed Map v202 → v219 (removed)

Map ( hot, cold ) --> stake : i128 | Stake added/removed since last emission drain.

From Chain Metadata

Map ( hot, cold ) --> stake: i128 | Stake added/removed since last emission drain.

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)

Stored Value

value (i128)

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

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

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

Runtime Info

View Source
Pallet
SubtensorModule
Storage Kind
Map
First Version
v202
Removed In
v219