Queries
parents
Parent hotkeys of a child on a subnet, as (proportion, parent_ss58) pairs.
Proportions are u64-normalized fractions of the parent's stake, where u64::MAX means 100%.
Category: Delegation
Parameters
| Parameter | Type | Description |
|---|---|---|
hotkey_ss58 | string | Child hotkey whose parents to list. |
netuid | integer | Subnet to query. |
CLI
btcli query parents --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.delegation.parents(hotkey_ss58="5F...", netuid=1)Or dispatch by name, as an agent would:
result = await client.read("parents", hotkey_ss58="5F...", netuid=1)