This storage item was removed in v219

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

TotalHotkeyColdkeyStakesThisInterval

Storage Removed Map v146 → v411

MAP (hot, cold) --> stake | Returns a tuple (u64: stakes, u64: block_number)

From Chain Metadata

MAP (hot, cold) --> stake | Returns a tuple (u64: stakes, u64: block_number)

Purpose & Usage

Purpose

Stores chain state data.

Common Query Patterns

  • Single value query for aggregate data

Query Keys

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

Stored Value

(u64, u64)

Value in RAO (÷10⁹ for TAO)

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

const result = await api.query.SubtensorModule.TotalHotkeyColdkeyStakesThisInterval.getValue(key1, key2);
console.log("TotalHotkeyColdkeyStakesThisInterval:", result);

Version History

v146 block 2,848,978 Added
v149 block 3,014,339 Internal re-bind
v154 block 3,308,611 Internal re-bind
v166–v194 · runtime versions skipped on chain (never deployed)
v195 block 3,791,350 Internal re-bind
v207–v209 · runtime versions skipped on chain (never deployed)
v210 block 4,345,556 Internal re-bind
v213–v215 · runtime versions skipped on chain (never deployed)
v216 block 4,510,996 Internal re-bind
v219 Removed

Runtime Info

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