Queries
staking-hotkeys
Every hotkey a coldkey has stake with, owned or nominated.
Unlike owned_hotkeys this includes delegates the coldkey has nominated.
Use stake_for_coldkey for the per-subnet amounts behind each entry.
Category: Staking
Parameters
| Parameter | Type | Description |
|---|---|---|
coldkey_ss58 | string | Coldkey whose staked-to hotkeys to list. |
CLI
btcli query staking-hotkeys --coldkey <ss58|name> --jsonPython
Namespace method (autocomplete, signature help):
import bittensor as bt
sub = bt.Subtensor()
result = sub.staking.staking_hotkeys(coldkey_ss58="5F...")Or dispatch by name, as an agent would:
result = sub.read("staking_hotkeys", coldkey_ss58="5F...")Async is the same surface awaited: async with bt.Subtensor() as client:.
On-chain implementation
- Storage
SubtensorModule.StakingHotkeys
Every file is browsable under /code exactly as built into the runtime.