Queries

gamma-balances

The gamma a coldkey holds on no hotkey, on every subnet where it holds some.

View as Markdown

Each has its netuid and balance_gamma as an exact decimal string. A balance is sent with transfer_gamma and spent once moved to a deposit with deposit_gamma. A runtime before 498 holds none.

Category: Gamma

Parameters

ParameterTypeDescription
coldkey_ss58stringColdkey holding the balances.

CLI

btcli query gamma-balances --coldkey <ss58|name> --json

Python

Namespace method (autocomplete, signature help):

import bittensor as bt

sub = bt.Subtensor()
result = sub.gamma.gamma_balances(coldkey_ss58="5F...")

Or dispatch by name, as an agent would:

result = sub.read("gamma_balances", coldkey_ss58="5F...")

Async is the same surface awaited: async with bt.Subtensor() as client:.

On-chain implementation

Every file is browsable under /code exactly as built into the runtime.