set_reject_staking_hotkey_growth
Call v479 → current #153Opts the signing coldkey in or out of new StakingHotkeys entries created by other accounts' actions.
View calls on chainCall Workflow
Click items to navigate. Pan and zoom to explore.
The Big Picture
StakingHotkeys is walked by every stake exit and bounds the coldkey-wide root claim. Third parties could already grow it only up to MAX_THIRD_PARTY_STAKING_HOTKEYS (128), against the owner cap of 256. This flag lets a coldkey refuse that growth entirely. Source: pallets/subtensor/src/macros/dispatches.rs set_reject_staking_hotkey_growth (call index 153) and pallets/subtensor/src/staking/stake_utils.rs ensure_third_party_staking_hotkeys_can_grow at release-479.
Why This Matters
Anyone can transfer stake to you, and each new hotkey they use makes your unstakes and root claims walk a longer list. This switch refuses new hotkeys you did not choose.
Example Scenario
You call set_reject_staking_hotkey_growth(true). Someone tries transfer_stake to you on a hotkey you have never staked to; it fails with AccountRejectsStakingHotkeyGrowth. A transfer onto a validator already in your list still lands.
Use Cases
- Stop third parties from lengthening a coldkey staking list, which every stake exit walks
- Keep a cold wallet staking list fixed to known validators
- Read the flag from EVM through the staking precompile getRejectStakingHotkeyGrowth(bytes32)
From Chain Metadata
Opt out of staking-hotkey list growth caused by other accounts. Existing destinations and hotkeys owned by the recipient can still receive transfers.
Input Parameters
| # | Name | Type | Description |
|---|---|---|---|
| 0 | enabled | bool | enabled (bool) |
Permissions
Permission data inferred from metadata. May be incomplete.
Requirements
- Signed by the coldkey
Effects
Events Emitted
Storage Modified
Postconditions
- Bit 1 (ACCOUNT_FLAGS_REJECT_STAKING_HOTKEY_GROWTH) of AccountFlags is set when enabled and cleared otherwise
- The AccountFlags entry is removed when no flag bit remains
- SubtensorModule.RejectStakingHotkeyGrowthUpdated emitted with (coldkey, enabled)
Side Effects
- While set, a stake transfer from another coldkey onto a hotkey not already in this StakingHotkeys list fails with AccountRejectsStakingHotkeyGrowth, unless this coldkey owns that hotkey
- While set, a single-subnet hotkey swap that would add the new hotkey to this list leaves the position on the old hotkey and emits HotkeySwapStakeRetained
- Transfers onto hotkeys already in the list, and the coldkey own stake operations, are unaffected
Code Examples
import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add sub -w wss://entrypoint-finney.opentensor.ai:443
const client = createClient(getWsProvider("wss://entrypoint-finney.opentensor.ai:443"));
const api = client.getTypedApi(sub);
// Build set_reject_staking_hotkey_growth call (typed, named args)
const enabled = true;
const tx = api.tx.SubtensorModule.set_reject_staking_hotkey_growth({
enabled,
});On-Chain Activity
Very rare or deprecated
#243 most used call
Over 95% of submissions succeed
As of block 9,385,000
Runtime Info
View Source- Pallet Index
- 7
- Call Index
- 153
- First Version
- v479
- Current Version
- v490