# subnets (/docs/query/subnets)

one-query-per-subnet. This is what listing should use.

**Category:** Subnets

## Parameters [#parameters]

This read takes no parameters.

## CLI [#cli]

```bash
btcli query subnets --json
```

## Python [#python]

Namespace method (autocomplete, signature help):

```python
import bittensor as bt

sub = bt.Subtensor()
result = sub.subnets.subnets()
```

Or dispatch by name, as an agent would:

```python
result = sub.read("subnets")
```

Async is the same surface awaited: `async with bt.Subtensor() as client:`.

## On-chain implementation [#on-chain-implementation]

* Storage [`SubtensorModule.NetworksAdded`](/code/pallets/subtensor/src/lib.rs#L2015)
* Storage [`SubtensorModule.Tempo`](/code/pallets/subtensor/src/lib.rs#L1952)
* Storage [`SubtensorModule.Burn`](/code/pallets/subtensor/src/lib.rs#L2248)
* Storage [`SubtensorModule.SubnetworkN`](/code/pallets/subtensor/src/lib.rs#L2011)

Every file is browsable under [/code](/code) exactly as built into the runtime.
