Queries
uid
UID of a hotkey on a subnet, or None if not registered there.
Category: Neurons & registration
Parameters
| Parameter | Type | Description |
|---|---|---|
hotkey_ss58 | string | Hotkey whose UID to look up. |
netuid | integer | Subnet to query. |
CLI
btcli query uid --hotkey <ss58|name> --netuid <integer> --jsonPython
Typed namespace method (autocomplete, signature help):
import bittensor as sub
async with sub.Client("finney") as client:
result = await client.neurons.uid(hotkey_ss58="5F...", netuid=1)Or dispatch by name, as an agent would:
result = await client.read("uid", hotkey_ss58="5F...", netuid=1)