Queries
validator-basket
A validator's basket holdings: per subnet, the alpha held and its TAO value.
The netuid-0 entry is the basket's TAO cash slot (held as root stake, so alpha and value coincide). Values are realizable quotes — what selling the holding would actually fetch at current pool depth — not spot marks.
Category: Staking
Parameters
| Parameter | Type | Description |
|---|---|---|
hotkey_ss58 | string | Validator hotkey whose basket to list. |
CLI
btcli query validator-basket --hotkey <ss58|name> --jsonPython
Namespace method (autocomplete, signature help):
import bittensor as bt
sub = bt.Subtensor()
result = sub.staking.validator_basket(hotkey_ss58="5F...")Or dispatch by name, as an agent would:
result = sub.read("validator_basket", hotkey_ss58="5F...")Async is the same surface awaited: async with bt.Subtensor() as client:.
On-chain implementation
- Runtime API
BetaBasketRuntimeApi.get_validator_basket
Every file is browsable under /code exactly as built into the runtime.