Queries

subnet-hyperparameters

All hyperparameters for a subnet, as a flat name -> raw value mapping.

View as Markdown

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

ParameterTypeDescription
netuidintegerSubnet to query.

CLI

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

Python

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

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