Queries
subnet-names
Registered name of every subnet that published an identity, keyed by netuid.
Category: Subnets
Parameters
This read takes no parameters.
CLI
btcli query subnet-names --jsonPython
Namespace method (autocomplete, signature help):
import bittensor as bt
sub = bt.Subtensor()
result = sub.subnets.subnet_names()Or dispatch by name, as an agent would:
result = sub.read("subnet_names")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.