NonAssociatedColdKey

Error Re-added v101 → v120, v121 → v127, v133 → v150, v151 → v315, v320 → current 7.7

The coldkey you're using is not associated with this hotkey for staking operations.

Encountered by: stakersdelegatorswallets

Why This Error Exists

Bittensor tracks exactly which coldkey staked to which hotkey. You can only unstake TAO that YOU staked - not TAO that someone else delegated to the same hotkey. This prevents unauthorized withdrawal of others' stake.

Deep Dive

The Stake storage maps (hotkey, coldkey, netuid) -> amount. When you call remove_stake, the chain verifies that the signing coldkey actually has stake on that hotkey for that subnet. If Stake(hotkey, your_coldkey, netuid) is 0 or doesn't exist, you get this error. Even if the hotkey has 1000 TAO from other stakers, you can only withdraw YOUR portion.

Debugging Example

Coldkey A stakes 100 TAO to hotkey H on subnet 1. Coldkey B tries to unstake 50 TAO from hotkey H. Error: NonAssociatedColdKey. Coldkey B has no stake relationship with hotkey H. Solution: Coldkey B needs to sign with Coldkey A's wallet, or accept they have no stake to withdraw.

Prevention Tips

  • Keep track of which coldkey you used to stake
  • Query StakingHotkeys(your_coldkey) to list hotkeys you've staked to
  • When managing multiple wallets, label them clearly

From Chain Metadata

Request to stake, unstake or subscribe is made by a coldkey that is not associated with the hotkey account.

What This Means

The coldkey you're using is not associated with this hotkey for staking operations.

Common Causes

  • Trying to unstake from a hotkey you didn't stake to
  • Using the wrong coldkey for this operation
  • Stake relationship doesn't exist

How to Fix

  • Verify you're using the correct coldkey that originally staked
  • Check SubtensorModule.StakingHotkeys to see your stake relationships
  • Use the coldkey that has stake on this hotkey

Storage to Check

Thrown By

Version History

v101 block 1 Added
v121 block 518,345 Re-added
v133 block 1,404,224 Re-added
v151 block 3,157,274 Re-added
v320 block 6,523,566 Re-added Current

Runtime Info

Pallet Index
7
Error Index
7
Error Code
7.7
Runtime Version
v393