---
title: Mint QUARTZ from trading profit
description: Work out how much QUARTZ your wallet can mint and verify the credit.
---

You can mint QUARTZ from any positive trading profit held in synthetic USD, even a fraction of a cent. Mint as much or as little of that profit as you like, up to 18 decimal places.

## Check how much you can mint

Send [`GET /wallets/{address}/mintable`](https://docs.replicalab.finance/reference/minting.md#check-mintable-quartz) to your [wallet’s network](https://docs.replicalab.finance/reference/networks.md#network-hosts). Read `data.public.asset.units`. If it is `"0"`, you have no profit available to mint.

If your wallet mined 100 synthetic USD and now holds 100.002, the endpoint returns `"0.002"` units of QUARTZ. You can mint all of it or choose a smaller amount.

## Mint and verify

To mint 0.0015 QUARTZ, send this [mint request](https://docs.replicalab.finance/reference/minting.md#mint-quartz) on the same network. Use your trade token and generate a fresh UUIDv4 or UUIDv7 for this mint. If you retry, reuse the same request and key within three hours of acceptance.

```http
POST /wallets/{address}/trades
Authorization: Bearer <trade-token>
Idempotency-Key: <mint-key>
Content-Type: application/json

{
  "operation": "mint",
  "asset": { "id": "QUARTZ", "units": "0.0015" }
}
```

A `201 Created` receipt gives the QUARTZ credited in `data.public.asset.units`. In this example, your [balances](https://docs.replicalab.finance/reference/balances.md) show 100.0005 synthetic USD after the mint. You can still mint the remaining 0.0005 QUARTZ.