Queries

neurons

Every neuron on a subnet in ONE runtime-API call (the metagraph fast path).

View as Markdown

lite=true (the default) omits per-neuron weights/bonds, which is far smaller and what almost every caller wants.

Category: Neurons & registration

Parameters

ParameterTypeDescription
netuidintegerSubnet whose neurons to list.
litebooleanOmit per-neuron weights/bonds (much smaller; what most callers want).

CLI

btcli query neurons --netuid <integer> --lite <boolean> --json

Python

import bittensor as sub

async with sub.Client("finney") as client:
    result = await client.read("neurons", netuid=1, lite=True)