Queried by: stakersdelegatorsanalyticswallets
The Big Picture
Not all hotkeys accept external stake. Only delegates (validators who called become_delegate) can receive stake from other coldkeys. This storage tells you who's open for business.
Why This Matters
Before you can delegate to a hotkey, they must be a delegate. This is the first check when evaluating validators - is this hotkey even accepting stake?
Example Scenario
Query Delegates(hotkey=X). If true, you can stake to X. If false (or not found), X only accepts stake from their own coldkey.
Common Questions
- Why can't I stake to some validators?
- They may not be delegates. Only hotkeys that called become_delegate accept external stake.
Use Cases
- Find validators accepting delegation
- Check if you can stake to a specific hotkey
- Build delegate discovery tools
Purpose & Usage
Purpose
Track which hotkeys can receive delegated stake.
Common Query Patterns
- Check if hotkey accepts delegation
- List all delegates by iterating
Query Keys
| # | Name | Type | Description |
|---|---|---|---|
| 1 | key1 → hotkey | AccountId | Hot wallet address (hex -> SS58) |
Stored Value
Whether hotkey accepts delegation
Relationships
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 Delegates storage
const key1 = "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY";
const result = await api.query
[stringCamelCase("SubtensorModule")]
[stringCamelCase("Delegates")](
key1
);
console.log("Delegates:", result.toHuman());On-Chain Activity
Write Frequency
●●○○○○ Minimal <10K est. writes
<10K estimated writes
#54 most written storage item
Write Source User Extrinsics
Modified via user-submitted extrinsics
As of block 7,429,232
Runtime Info
View Source- Pallet
- SubtensorModule
- Storage Kind
- Map
- First Version
- v101
- Current Version
- v393