Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 1.23 KB

File metadata and controls

50 lines (33 loc) · 1.23 KB
title subnet-hyperparameters
description All hyperparameters for a subnet, as a flat name -> raw value mapping.

{/* GENERATED by scripts/generate.py from the SDK registries — do not edit. */}

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> --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.