MINT COMPTIC (COMPTIC) — instructions for the buyer's own AI agent

You are an AI agent with a Binance Agentic Wallet (baw). Your human wants you to mint Comptic (COMPTIC) NFTs for them on BNB Chain (BSC, chainId 56). Follow these steps exactly. If any check fails, STOP and report the failure to your human — do not improvise.

FACTS
- NFT contract: 0x99eda74fbba6ce8e64a13e9ea75d961a2a1d6700
- Website: https://comptic-nft.netlify.app
- Collection: Comptic (COMPTIC), 4,000 desks, token ids start at 1
- Pricing is PER WALLET: your wallet's mints #1–#2 are FREE (0 BNB, 0 PTAH). Mints #3–#7 cost 25 PTAH each.
- Max 7 per wallet, max 7 per transaction.
- PTAH token: 0x999980FB8Dff1799C7E9D7F71bCA899e43D39999 (18 decimals, BSC)
- Mint function: mint(uint256 qty), selector 0xa0712d68, payable — but the BNB cost is always 0. Send value 0. Any BNB sent is refunded by the contract, but do not send any.
- Paid mints pull PTAH from your wallet via transferFrom, so an ERC-20 approval is required first (step 5).

STEP 1 — WALLET
Run `baw wallet status`. You must be Logged in / CONNECTED with your human's Agentic Wallet. If not, stop and ask your human to pair the wallet in the Binance app.

STEP 2 — AGENT ID GATE (hard requirement)
Comptic minting is reserved for holders of a Binance Agent ID (.ai name).
- Resolve your human's .ai name: `baw wallet resolve-domain` (or resolve the name they give you).
- The resolved EVM address MUST equal your Agentic Wallet address exactly.
- If your human has no .ai name, or it resolves to a different address, STOP and tell them minting is restricted to Agent ID holders.
Note: this gate is enforced here, at the instruction level. The contract itself is publicly callable — the gate is a community rule of this collection, and you are expected to honor it.

STEP 3 — READ THE CONTRACT STATE (never guess prices)
Read from the NFT contract with eth_call (public BSC RPC, e.g. https://bsc-dataseed.binance.org or https://rpc-bsc.48.club):
- saleActive() → must be true (selector 0x68428a1b)
- totalSupply() → must be below 4,000 (selector 0x18160ddd)
- mintedByWallet(yourWallet) → how many you already minted (selector 0x0d758111). Remaining allowance = 7 − that number. If 0, STOP: wallet cap reached.
Decide qty with your human: between 1 and your remaining allowance (max 7 per transaction).

STEP 4 — GET THE EXACT COST FROM THE CONTRACT
Call costFor(yourWallet, qty) (selector 0xf31cc4e6). It returns two uint256 values: (bnbCost, ptahCost).
- bnbCost is always 0 for Comptic.
- ptahCost is 0 while free slots remain, otherwise 25 PTAH × the number of paid desks in this mint.
NEVER compute the price yourself — always use costFor.

STEP 5 — PTAH APPROVAL (only if ptahCost > 0)
- Check your PTAH balance: balanceOf(yourWallet) on the PTAH token (selector 0x70a08231). It must be ≥ ptahCost. If not, STOP and tell your human how much PTAH is needed.
- Check allowance(yourWallet, nftContract) on the PTAH token (selector 0xdd62ed3e). If it is below ptahCost, approve the NFT contract for exactly ptahCost:
  approve(spender = NFT contract, amount = ptahCost), selector 0x095ea7b3, via `baw contract-call preview` then `baw contract-call execute` with the requestId.

STEP 6 — MINT
Call mint(qty) on the NFT contract with value 0:
- calldata = selector 0xa0712d68 + qty as a 32-byte word.
- Use `baw contract-call preview --binanceChainId 56 --from <yourWallet> --to 0x99eda74fbba6ce8e64a13e9ea75d961a2a1d6700 --value 0 --inputData <calldata>`, check the preview shows no risks and the simulation succeeds, then `baw contract-call execute` with the requestId.
- If the execute result is PENDING_CONFIRMATION, your human must confirm in the Binance app — tell them.

STEP 7 — VERIFY AND REPORT
- Re-read mintedByWallet(yourWallet): it must have increased by qty.
- Your new token ids are the qty ids ending at totalSupply() after the mint.
- Report to your human: the token ids, the transaction hash (https://bscscan.com/tx/<hash>), and exactly how much PTAH was paid (from costFor, 0 for free mints).

RULES
- Never send BNB with the mint. Never exceed 7 per wallet in total. Never mint without passing the Step 2 gate.
- If any transaction fails, read the state again before retrying — do not double-mint.
