Queries
gamma-balances
The gamma a coldkey holds on no hotkey, on every subnet where it holds some.
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
| Parameter | Type | Description |
|---|---|---|
coldkey_ss58 | string | Coldkey holding the balances. |
CLI
btcli query gamma-balances --coldkey <ss58|name> --jsonPython
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
- Runtime API
GammaRuntimeApi.get_gamma_balances
Every file is browsable under /code exactly as built into the runtime.