This constant was removed in v377
This constant is no longer available in the current runtime. Existed from v195 to v377. Shown here for historical reference.
Arbitration period for coldkey ownership changes.
Current Value
36000The Big Picture
Coldkey swaps are high-stakers operations that change ownership of your stake. To prevent theft, there's a mandatory waiting period. If your coldkey is compromised and someone initiates a swap, you have this window to cancel it. It's a stakers timelock for the most critical key in your Bittensor setup.
Why This Matters
If you initiate a coldkey swap, you must wait this duration. If someone steals your key and tries to swap, you have this window to intervene and cancel.
Example
With ColdkeySwapScheduleDuration of 7200 blocks (~24 hours), a coldkey swap initiated at noon Monday executes at noon Tuesday. If you notice unauthorized swap attempts, you have 24 hours to cancel and secure your account.
Common Questions
- What if I need to swap urgently?
- You must wait. This is intentional - it protects against theft. There's no way to bypass the stakers window.
- How do I monitor for unauthorized swaps?
- Watch for ScheduledColdkeySwap events on your address. Set up alerts. If you see an unauthorized swap, cancel it immediately.
From Chain Metadata
Coldkey swap schedule duartion.
Use Cases
- Coldkey swap
- Security
Value History
| Version | Block | Change | Value |
|---|---|---|---|
| v195 | #3,791,350 | Added | 36000 |
| v385 | #7,782,670 | Removed | 36000 |
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 InitialColdkeySwapScheduleDuration constant
const value = api.consts[stringCamelCase("SubtensorModule")][stringCamelCase("InitialColdkeySwapScheduleDuration")];
console.log("InitialColdkeySwapScheduleDuration:", value.toHuman());Type Information
- Type
- u32
- Byte Size
- 4 bytes
- Encoding
- fixed
- Raw Hex
- 0xa08c0000
Runtime Info
- Pallet
- SubtensorModule
- First Version
- v195
- Latest Version
- v377
- Removed In
- v377