Queries

staking-hotkeys

Every hotkey a coldkey has stake with, owned or nominated.

View as Markdown

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

ParameterTypeDescription
coldkey_ss58stringColdkey whose staked-to hotkeys to list.

CLI

btcli query staking-hotkeys --coldkey <ss58|name> --json

Python

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

Every file is browsable under /code exactly as built into the runtime.