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
import bittensor as sub
async with sub.Client("finney") as client:
result = await client.read("uid", hotkey_ss58="5F...", netuid=1)