# quote-mint-gamma (/docs/query/quote-mint-gamma)

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

| Parameter    | Type    | Description             |
| ------------ | ------- | ----------------------- |
| `netuid`     | integer | Subnet to mint on.      |
| `amount_tao` | number  | TAO spent buying alpha. |

## CLI [#cli]

```bash
btcli query quote-mint-gamma --netuid <integer> --amount-tao <number> --json
```

## Python [#python]

Namespace method (autocomplete, signature help):

```python
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:

```python
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 [#on-chain-implementation]

* Runtime API [`GammaRuntimeApi.sim_mint_gamma`](/code/pallets/subtensor/src/rpc_info/gamma_info.rs#L62-L78)

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