This constant was removed in v161
This constant is no longer available in the current runtime. Existed from v156 to v161. Shown here for historical reference.
Current Value
1.00 TAO (1000000000 raw)
Conversion: ÷ 10^9 (RAO → TAO)
From Chain Metadata
Cost of swapping a hotkey.
Use Cases
- Runtime configuration
Value History
| Version | Block | Change | Value |
|---|---|---|---|
| v156 | #3,321,841 | Added | 1.00 TAO |
| v162 | #3,372,565 | Removed | 1.00 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 HotkeySwapCost constant
const value = await api.constants.SubtensorModule.HotkeySwapCost();
console.log("HotkeySwapCost:", 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
- 0x00ca9a3b00000000
Runtime Info
- Pallet
- SubtensorModule
- First Version
- v156
- Latest Version
- v161
- Removed In
- v161