Queries

bonds

Validator bond rows as `{validator_uid: {miner_uid: bond}}`, scaled to 0..1.

View as Markdown

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

ParameterTypeDescription
netuidintegerSubnet whose bond matrix to fetch.
mechidintegerMechanism index within the subnet; 0 (the default) on ordinary subnets.

CLI

btcli query bonds --netuid <integer> --mechid <integer> --json

Python

import bittensor as sub

async with sub.Client("finney") as client:
    result = await client.read("bonds", netuid=1, mechid=1)