Queries
bonds
Validator bond rows as `{validator_uid: {miner_uid: bond}}`, scaled to 0..1.
Bonds are the slow EMA of a validator's stake-weighted weights that pays its dividends; unlike weights their magnitude is meaningful, so values are scaled by the u16 maximum (1.0 = the largest bond the chain can store) rather than row-normalized.
Category: Weights & bonds
Parameters
| Parameter | Type | Description |
|---|---|---|
netuid | integer | Subnet whose bond matrix to fetch. |
mechid | integer | Mechanism index within the subnet; 0 (the default) on ordinary subnets. |
CLI
btcli query bonds --netuid <integer> --mechid <integer> --jsonPython
import bittensor as sub
async with sub.Client("finney") as client:
result = await client.read("bonds", netuid=1, mechid=1)