StakeMoved
Event Re-added v233 → v265, v273 → v277, v290 → current #4Emitted when stake is moved between hotkeys or subnets without unstaking to TAO .
View events on chainThe Big Picture
Moving stake is a key portfolio management tool. Instead of unstaking (which converts your Alpha back to TAO at the current rate, potentially at a loss), you can move stake directly. This preserves your position size and avoids two conversion fees. It's like transferring between investment accounts instead of cashing out and re-investing.
Why This Matters
When you want to change where your stake is working, you have two choices: unstake (convert to TAO) then restake, or move directly. Moving avoids the price conversion both ways, saving you from slippage. This event confirms your stake successfully moved to its new home.
Example Scenario
You have 100 TAO staked on Validator A in subnet 1, but Validator B in subnet 3 has better emissions. Instead of unstaking (losing ~2% to slippage), you move the stake directly. StakeMoved fires showing: from Validator A/subnet 1, to Validator B/subnet 3, amount 100 TAO. Your stake is now earning on subnet 3.
Common Questions
- Is moving stake free?
- There's a small transaction fee, but no conversion slippage like unstaking would have.
- Can I move stake between any hotkeys?
- Yes, as long as both hotkeys are registered. You can even move to your own hotkey on a different subnet.
- How is this different from StakeSwapped?
- StakeMoved moves stake from one hotkey to another (possibly different hotkeys). StakeSwapped exchanges stake between two subnets for the same coldkey-hotkey pair.
Use Cases
- Rebalance stake across subnets without price slippage
- Move stake to a better-performing validator
- Track portfolio rebalancing activity
- Build stake flow analytics between subnets
How to Use This Event
- → Subscribe to track your own stake rebalancing
- → Monitor stake flows between competing validators
- → Index to analyze which subnets are gaining/losing stake
- → Alert when large stake moves happen (whale watching)
From Chain Metadata
stake has been moved from origin (hotkey, subnet ID) to destination (hotkey, subnet ID) of this amount (in TAO).
Triggers
Emitted by
Preconditions
- Coldkey has sufficient stake on origin hotkey/subnet
- Origin and destination hotkeys are registered
- Move operation is not rate limited
May fail with
Effects
Storage Modified
Postconditions
- Stake decreased on origin hotkey/subnet
- Stake increased on destination hotkey/subnet
- Total stake remains unchanged
Side Effects
- May affect validator rankings on both subnets
- Alpha stake redistributed between subnets
Event Data
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 });
// Subscribe to StakeMoved events
api.query.system.events((events) => {
events
.filter(({ event }) =>
event.section === stringCamelCase("SubtensorModule") &&
event.method === "StakeMoved"
)
.forEach(({ event }) => {
console.log("StakeMoved:", event.data.toHuman());
});
});On-Chain Activity
Major features with millions of emissions
#23 most emitted event
As of block 7,429,232
Version History
Runtime Info
View Source- Pallet Index
- 7
- Event Index
- 4
- First Version
- v233
- Current Version
- v393