compose_fairminter
Compose a transaction to launch a new asset with fair minting, defining price, supply caps, mint limits, and block schedule.
Instructions
Compose a transaction to create a fair minting launch for a new asset. For XCP-420 compliant launches, use compose_xcp420_fairminter instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset | Yes | Asset name to create | |
| price | No | Raw integer price per mint in the payment asset (XCP). For XCP: human amount * 10^8 (e.g. 0.1 XCP = 10000000). | |
| address | Yes | Source Bitcoin address | |
| hard_cap | No | Raw integer max total supply. For divisible: human amount * 10^8. | |
| soft_cap | No | Raw integer soft cap. For divisible: human amount * 10^8. | |
| divisible | No | Whether the asset is divisible (8 decimal places) | |
| end_block | No | Block height when minting ends | |
| mime_type | No | MIME type for inscription (e.g. image/png, text/plain) | |
| inputs_set | No | Comma-separated UTXOs to use as inputs (txid:vout) | |
| description | No | Asset description | |
| inscription | No | Base64-encoded inscription data (requires P2TR address) | |
| start_block | No | Block height when minting starts | |
| burn_payment | No | Whether payment is burned (true) or sent to issuer (false) | |
| lock_quantity | No | Lock supply so no further issuance is possible | |
| sat_per_vbyte | No | Fee rate in satoshis per virtual byte (e.g. 1, 5.5, 0.15). Check get_fee_estimate for current market rates. | |
| max_mint_per_tx | No | Raw integer max per tx. For divisible: human amount * 10^8. | |
| premint_quantity | No | Raw integer amount to premint to issuer. For divisible: human amount * 10^8. | |
| quantity_by_price | No | Raw integer tokens received per price payment. For divisible: human amount * 10^8. | |
| max_mint_per_address | No | Raw integer max per address. For divisible: human amount * 10^8. | |
| minted_asset_commission | No | Commission fraction (0-1) on minted assets | |
| soft_cap_deadline_block | No | Deadline block for reaching soft cap. Must be less than end_block. |