mint_loyalty_tokens
Record mint intent and get a fee-first calls[] bundle: protocol fee mint FIRST, then the recipient mint. The protocol fee is charged in the merchant's own loyalty tokens (not USDC). Submit both calls in order (atomically via EIP-5792 send_calls if your wallet supports it), then call confirm_mint_fee (or POST /agent-api/mint/confirm) with obligation_id, fee_tx_hash, and recipient_tx_hash. Unconfirmed fee obligations block future mints. Accepts a 0x Base wallet address or customer email in recipient_address (or recipient_email), automatically resolving the customer's wallet.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Tokens to mint | |
| recipient | No | Legacy alias for recipient_address (0x address or email) | |
| token_address | Yes | Token contract address | |
| recipient_email | No | Customer email address to resolve to their Base wallet | |
| recipient_address | No | Customer 0x Base wallet address or customer email receiving minted tokens. Preferred — matches REST. |