This storage item was removed in v195

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

BaseDifficulty

Storage Removed Plain v161 → current

BaseDifficulty storage from SubtensorModule pallet .

Purpose & Usage

Purpose

Stores chain state data.

Common Query Patterns

  • Query by key
  • Iterate all entries

Stored Value

Value in RAO (÷10⁹ for TAO)

RAO -> TAO (/ 10^9)

Default Value

10000000 0x8096980000000000

Absent keys read as this value — querying a key that has never been written returns this default, not an error or empty result.

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 BaseDifficulty storage (no keys - plain value)
const result = await api.query.SubtensorModule.BaseDifficulty.getValue();
console.log("BaseDifficulty:", result);

Runtime Info

View Source
Pallet
SubtensorModule
Storage Kind
Plain
First Version
v161
Removed In
v195