---
name: mint-lantern-moth
description: Mint procedural on-chain Lantern Moths (LMOTH) NFTs on BNB Smart Chain.
---

# Lantern Moths (LMOTH) Mint Skill

## When to Use
Use this skill when an agent or user wants to mint Lantern Moths NFTs on BNB Smart Chain (chainId 56).

## Facts
| Key | Value |
|---|---|
| Contract | `0x56BaAADDE3bb7D758b1eA86519be0A02aDb6F889` |
| Chain ID | 56 (BNB Smart Chain) |
| Standard | ERC-721 + ERC-2981 |
| Max Supply | 2000 |
| Max Per TX | 5 |
| Max Per Wallet | 10 |
| Public Price | 0.00015 BNB / token |
| Agent Price | 0.0001 BNB / token (requires holding Agent ID at `0x60B9262456dE011F7d15a54CdD8c48bAaa8B022F`) |
| Entrypoint | `mint(uint256)` (`0xa0712d68`) |
| Quote View | `quote(address,uint256)` (`0x8f79306e`) |
| Admin Powers | None (immutable, no proxy; owner() = payee, no powers) |

## Steps

### 1. Fetch Quote
Call `quote(address wallet, uint256 qty)` on `0x56BaAADDE3bb7D758b1eA86519be0A02aDb6F889` via `eth_call`:
- Selector: `0x8f79306e`
- Calldata: `0x8f79306e` + `wallet` (padded to 32 bytes) + `qty` (padded to 32 bytes)
- Record returned value in wei.

### 2. Simulate Mint Transaction
Simulate the transaction using `eth_call`:
- `to`: `0x56BaAADDE3bb7D758b1eA86519be0A02aDb6F889`
- `from`: `wallet`
- `data`: `0xa0712d68` + `qty` (padded to 32 bytes)
- `value`: exact wei returned by `quote`
If the simulation reverts, decode or surface the error and stop.

### 3. Confirm with User
Display to user:
- Target Contract: `0x56BaAADDE3bb7D758b1eA86519be0A02aDb6F889`
- Function: `mint(uint256)`
- Quantity: `qty`
- Exact Value: quote amount formatted in BNB

### 4. Send Transaction
Invoke `eth_sendTransaction`:
- `to`: `0x56BaAADDE3bb7D758b1eA86519be0A02aDb6F889`
- `data`: `0xa0712d68` + `qty` (padded to 32 bytes)
- `value`: exact quote wei

### 5. Report Result
Wait for receipt and extract token ID from the `Transfer(address,address,uint256)` log:
- Report transaction hash: `https://bscscan.com/tx/<txHash>`
- Report minted token ID(s).

## Errors Table

| Error | Selector | Cause / Resolution |
|---|---|---|
| `MintNotOpen` | `0x` | Mint start time (`29 Oct 2026 16:00 UTC`) not yet reached. |
| `BadQty` | `0x` | Qty is 0 or greater than 5. |
| `SoldOut` | `0x` | Total supply reached 2000. |
| `WalletCap` | `0x` | Wallet limit of 10 reached. |
| `WrongPayment(expected, actual)` | `0x` | Value sent is less than required quote. |
| `PayFailed` | `0x` | Native BNB transfer to payee failed. |
| `RefundFailed` | `0x` | Refunding excess BNB payment failed. |

## Safety Checklist
- [ ] No `approve`, `setApprovalForAll`, or off-chain signature requests are ever triggered.
- [ ] Contract address must match `0x56BaAADDE3bb7D758b1eA86519be0A02aDb6F889`.
- [ ] Agent ID registry check uses `0x60B9262456dE011F7d15a54CdD8c48bAaa8B022F`.
- [ ] Bytecode hash matches `0x3f0ad4dfe65d5f2f1ff5da3bdafb3a702cdbceeb2c77bc14582ffa236ce8f739`.
- [ ] Halt immediately if contract address or selectors diverge.
