Queries

validator-basket

A validator's basket holdings: per subnet, the alpha held and its TAO value.

View as Markdown

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

ParameterTypeDescription
hotkey_ss58stringValidator hotkey whose basket to list.

CLI

btcli query validator-basket --hotkey <ss58|name> --json

Python

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

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