This storage item was removed in v165
This storage item is no longer available in the current runtime. Existed from v161 to v165. Shown here for historical reference.
ColdkeySwapDestinations
Storage Removed Map v161 → v165 (removed)Destination accounts for coldkey swaps.
The Big Picture
When a coldkey swap is scheduled, this storage records the destination. Combined with ColdkeySwapScheduled and ColdkeyArbitrationBlock, you have full visibility into pending swaps.
Why This Matters
A swap is pending - but to where? This tells you the destination. Verify it's your intended new address, not an attacker's wallet.
Example Scenario
Query ColdkeySwapDestinations(coldkey=old_address) returns new_address. All assets from old_address will transfer to new_address when the swap executes.
Common Questions
- Can the destination be changed?
- You'd need to cancel and reschedule. Once scheduled, the destination is fixed.
- What gets transferred?
- Everything - free balance, all stakes, owned hotkeys. It's a complete identity transfer.
Use Cases
- Verify the swap goes to your intended new address
- Detect unauthorized swap destinations for security
- Build wallet security dashboards showing swap details
- Track key rotation across the network
- Research coldkey movement patterns
Purpose & Usage
Purpose
Track where coldkeys are being swapped to - the target address receiving all assets.
Common Query Patterns
- Query by origin coldkey
- Verify swap destination is correct
- Monitor for suspicious destinations
Query Keys
| # | Name | Type | Description |
|---|---|---|---|
| 1 | key1 | AccountId | key1 (AccountId) (hex -> SS58) |
Stored Value
value (Vec<AccountId>)
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 ColdkeySwapDestinations storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query
[stringCamelCase("SubtensorModule")]
[stringCamelCase("ColdkeySwapDestinations")](
key1
);
console.log("ColdkeySwapDestinations:", result.toHuman());Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Map
- First Version
- v161
- Removed In
- v165