Queries
quote-mint-gamma-with-stake
The alpha burned, its TAO value, and the gamma `mint_gamma_with_stake` 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_alpha | number | Alpha of stake burned. |
CLI
btcli query quote-mint-gamma-with-stake --netuid <integer> --amount-alpha <number> --jsonPython
Namespace method (autocomplete, signature help):
import bittensor as bt
sub = bt.Subtensor()
result = sub.gamma.quote_mint_gamma_with_stake(netuid=1, amount_alpha=1.0)Or dispatch by name, as an agent would:
result = sub.read("quote_mint_gamma_with_stake", netuid=1, amount_alpha=1.0)Async is the same surface awaited: async with bt.Subtensor() as client:.
On-chain implementation
- Runtime API
GammaRuntimeApi.sim_mint_gamma_with_stake
Every file is browsable under /code exactly as built into the runtime.