StakeMoved

Event Re-added v233 → v265, v273 → v277, v290 → current #4

Emitted when stake is moved between hotkeys or subnets without unstaking to TAO .

View events on chain
Useful for: stakersdelegatorsanalyticswallets

The 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).

Part of: Stake Operations

Triggers

Effects

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

#NameTypeDescription
0
arg0
AccountId Event field #0 (AccountId) (hex -> SS58)
1
arg1
AccountId Event field #1 (AccountId) (hex -> SS58)
2
arg2
u16 Event field #2 (u16)
3
arg3
AccountId Event field #3 (AccountId) (hex -> SS58)
4
arg4
u16 Event field #4 (u16)
5
arg5
u64 Event field #5 (u64)

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

Emission Frequency
●●●●○○ Significant 1M–5M emissions

Major features with millions of emissions

#23 most emitted event

As of block 7,429,232

Version History

v233 block 4,920,350 6 args
v273 block 5,659,032 6 args
v290 block 5,947,548 6 args Current

Runtime Info

View Source
Pallet Index
7
Event Index
4
First Version
v233
Current Version
v393