# gamma-balances (/docs/query/gamma-balances)

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 [#parameters]

| Parameter      | Type   | Description                   |
| -------------- | ------ | ----------------------------- |
| `coldkey_ss58` | string | Coldkey holding the balances. |

## CLI [#cli]

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

## Python [#python]

Namespace method (autocomplete, signature help):

```python
import bittensor as bt

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

Or dispatch by name, as an agent would:

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

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

## On-chain implementation [#on-chain-implementation]

* Runtime API [`GammaRuntimeApi.get_gamma_balances`](/code/pallets/subtensor/src/rpc_info/gamma_info.rs#L69-L77)

Every file is browsable under [/code](/code) exactly as built into the runtime.
