Queries
quote-mint-gamma
The alpha burned, its TAO value, and the gamma `mint_gamma` would mint now.
Raises the chain error that stops the mint, such as TaoUsdPriceUnavailable
when the TAO/USD price is missing or stale, or AmountTooLow below 0.1 gamma.
Category: Gamma
Parameters
| Parameter | Type | Description |
|---|---|---|
netuid | integer | Subnet to mint on. |
amount_tao | number | TAO spent buying alpha. |
CLI
btcli query quote-mint-gamma --netuid <integer> --amount-tao <number> --jsonPython
Namespace method (autocomplete, signature help):
import bittensor as bt
sub = bt.Subtensor()
result = sub.gamma.quote_mint_gamma(netuid=1, amount_tao=1.0)Or dispatch by name, as an agent would:
result = sub.read("quote_mint_gamma", netuid=1, amount_tao=1.0)Async is the same surface awaited: async with bt.Subtensor() as client:.
On-chain implementation
- Runtime API
GammaRuntimeApi.sim_mint_gamma
Every file is browsable under /code exactly as built into the runtime.