Queries
subnet-hyperparameters
All hyperparameters for a subnet, as a flat name -> raw value mapping.
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
| Parameter | Type | Description |
|---|---|---|
netuid | integer | Subnet to query. |
CLI
btcli query subnet-hyperparameters --netuid <integer> --jsonPython
Namespace method (autocomplete, signature help):
import bittensor as bt
sub = bt.Subtensor()
result = sub.subnets.subnet_hyperparameters(netuid=1)Or dispatch by name, as an agent would:
result = sub.read("subnet_hyperparameters", netuid=1)Async is the same surface awaited: async with bt.Subtensor() as client:.
On-chain implementation
- Runtime API
SubnetInfoRuntimeApi.get_subnet_hyperparams_v3
Every file is browsable under /code exactly as built into the runtime.