Queries
gamma-deposit
The gamma deposit at a hotkey on a subnet, or None.
Its netuid, hotkey, coldkey, spender, and balance_gamma,
daily_spend_cap_gamma and spendable_gamma as exact decimal strings of
gamma. A daily_spend_cap_gamma of None is no cap, and "0" pauses the
deposit. spendable_gamma is the balance within what its daily spend cap
allows now.
Category: Gamma
Parameters
| Parameter | Type | Description |
|---|---|---|
netuid | integer | Subnet of the deposit. |
hotkey_ss58 | string | Hotkey of the deposit. |
CLI
btcli query gamma-deposit --netuid <integer> --hotkey <ss58|name> --jsonPython
Namespace method (autocomplete, signature help):
import bittensor as bt
sub = bt.Subtensor()
result = sub.gamma.gamma_deposit(netuid=1, hotkey_ss58="5F...")Or dispatch by name, as an agent would:
result = sub.read("gamma_deposit", netuid=1, hotkey_ss58="5F...")Async is the same surface awaited: async with bt.Subtensor() as client:.
On-chain implementation
- Runtime API
GammaRuntimeApi.get_gamma_deposit
Every file is browsable under /code exactly as built into the runtime.