Queries
neurons
Every neuron on a subnet in ONE runtime-API call (the metagraph fast path).
lite=true (the default) omits per-neuron weights/bonds, which is far
smaller and what almost every caller wants.
Category: Neurons & registration
Parameters
| Parameter | Type | Description |
|---|---|---|
netuid | integer | Subnet whose neurons to list. |
lite | boolean | Omit per-neuron weights/bonds (much smaller; what most callers want). |
CLI
btcli query neurons --netuid <integer> --lite <boolean> --jsonPython
import bittensor as sub
async with sub.Client("finney") as client:
result = await client.read("neurons", netuid=1, lite=True)