# subnet-hyperparameters (/docs/query/subnet-hyperparameters)

The set of names is version-dependent; None if the subnet does not exist.
Uses the forward-compatible `get_subnet_hyperparams_v3` runtime API, so
newly added chain hyperparameters (e.g. `burn_half_life`) show up
without a client update.

**Category:** Subnets

## Parameters [#parameters]

| Parameter | Type    | Description      |
| --------- | ------- | ---------------- |
| `netuid`  | integer | Subnet to query. |

## CLI [#cli]

```bash
btcli query subnet-hyperparameters --netuid <integer> --json
```

## Python [#python]

Namespace method (autocomplete, signature help):

```python
import bittensor as bt

sub = bt.Subtensor()
result = sub.subnets.subnet_hyperparameters(netuid=1)
```

Or dispatch by name, as an agent would:

```python
result = sub.read("subnet_hyperparameters", netuid=1)
```

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

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

* Runtime API [`SubnetInfoRuntimeApi.get_subnet_hyperparams_v3`](/code/pallets/subtensor/src/rpc_info/subnet_info.rs#L468-L641)

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