# netuids-for-hotkey (/docs/query/netuids-for-hotkey)

**Category:** Neurons & registration

## Parameters [#parameters]

| Parameter     | Type   | Description                                |
| ------------- | ------ | ------------------------------------------ |
| `hotkey_ss58` | string | Hotkey whose subnet registrations to list. |

## CLI [#cli]

```bash
btcli query netuids-for-hotkey --hotkey <ss58|name> --json
```

## Python [#python]

Namespace method (autocomplete, signature help):

```python
import bittensor as bt

sub = bt.Subtensor()
result = sub.neurons.netuids_for_hotkey(hotkey_ss58="5F...")
```

Or dispatch by name, as an agent would:

```python
result = sub.read("netuids_for_hotkey", hotkey_ss58="5F...")
```

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

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

* Storage [`SubtensorModule.IsNetworkMember`](/code/pallets/subtensor/src/lib.rs#L2020)

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