This constant was removed in v165

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

InitialBaseDifficulty

Constant Removed v161 → v165 (removed) u64

Runtime configuration value.

Current Value

10000000

From Chain Metadata

The base difficulty for proof of work for coldkey swaps

Use Cases

  • Genesis configuration
  • Default value initialization

Value History

VersionBlockChangeValue
v161#3,351,936Added10000000
v195#3,791,350Removed10000000

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 InitialBaseDifficulty constant
const value = await api.constants.SubtensorModule.InitialBaseDifficulty();
console.log("InitialBaseDifficulty:", value);
// Balance: divide by 10^9 for TAO
const tao = value / 1_000_000_000n;

Type Information

Type
u64
Byte Size
8 bytes
Encoding
fixed
Raw Hex
0x8096980000000000

Runtime Info

Pallet
SubtensorModule
First Version
v161
Latest Version
v165
Removed In
v165