This storage item was removed in v219
This storage item is no longer available in the current runtime. Existed from v101 to v219. Shown here for historical reference.
TotalHotkeyStake
Storage Removed Map v101 → v219 (removed)The Big Picture
Validator power comes from stake. This storage tells you the total stake backing a hotkey from all delegators combined. Higher stake = more voting power in consensus = potentially higher emissions.
Why This Matters
When choosing a validator to delegate to, total stake matters. Very high stake means established and trusted (but diluted rewards). Very low stake means higher risk but potentially higher rewards per TAO staked.
Example Scenario
Query TotalHotkeyStake(hotkey=validator_X) returns 5000000000000000 (5M TAO). This validator has 5 million TAO backing them - a major player.
Common Questions
- Does more stake mean better returns?
- Not necessarily. Your share of emissions is proportional to your stake vs total. Large validators may have more stable returns but lower per-TAO yield.
Use Cases
- Check a validator's total backing
- Compare validators by stake
- Build validator ranking dashboards
- Monitor stake accumulation over time
Purpose & Usage
Purpose
Track total stake a validator has received from all delegators.
Common Query Patterns
- Query by hotkey address
- Rank validators by total stake
Query Keys
| # | Name | Type | Description |
|---|---|---|---|
| 1 | key1 → hotkey | AccountId | Hot wallet address (hex -> SS58) |
Stored Value
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 TotalHotkeyStake storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query
[stringCamelCase("SubtensorModule")]
[stringCamelCase("TotalHotkeyStake")](
key1
);
console.log("TotalHotkeyStake:", result.toHuman());Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Map
- First Version
- v101
- Removed In
- v219