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.
Current Value
10000000From Chain Metadata
The base difficulty for proof of work for coldkey swaps
Use Cases
- Genesis configuration
- Default value initialization
Value History
| Version | Block | Change | Value |
|---|---|---|---|
| v161 | #3,351,936 | Added | 10000000 |
| v195 | #3,791,350 | Removed | 10000000 |
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 InitialBaseDifficulty constant
const value = api.consts[stringCamelCase("SubtensorModule")][stringCamelCase("InitialBaseDifficulty")];
console.log("InitialBaseDifficulty:", value.toHuman());
// Convert RAO to TAO if this is a balance value
const taoValue = value.toBigInt() / BigInt(1e9);
console.log("TAO:", taoValue.toString());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