# validator-basket (/docs/query/validator-basket)

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 [#parameters]

| Parameter     | Type   | Description                            |
| ------------- | ------ | -------------------------------------- |
| `hotkey_ss58` | string | Validator hotkey whose basket to list. |

## CLI [#cli]

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

## Python [#python]

Namespace method (autocomplete, signature help):

```python
import bittensor as bt

sub = bt.Subtensor()
result = sub.staking.validator_basket(hotkey_ss58="5F...")
```

Or dispatch by name, as an agent would:

```python
result = sub.read("validator_basket", hotkey_ss58="5F...")
```

Async is the same surface awaited: `async with bt.Subtensor() as client:`.

## On-chain implementation [#on-chain-implementation]

* Runtime API [`BetaBasketRuntimeApi.get_validator_basket`](/code/pallets/subtensor/src/staking/basket_views.rs#L77-L85)

Every file is browsable under [/code](/code) exactly as built into the runtime.
