# Shadow Agent — Mint Skill

Mint a Shadow Agent NFT on BNB Smart Chain (BSC) via direct contract call.
Never connect a wallet to any website to mint. Only call the contract directly.

## Collection

- Name: Shadow Agent
- Symbol: SHDW
- Chain: BNB Smart Chain (chain ID 56)
- Contract: 0x61cf75ee3bd6ec844328627251a3e73b62dc9914 (deterministic CREATE2 address via factory, salt 0 — verified by simulation before deployment; if the contract was deployed by any other route, verify the address on BscScan first)
- Max supply: 2,222
- Max per wallet: 15
- Price: first mint free per wallet (1 free per Agent ID); each additional mint costs 0.0004 BNB (about Rp5,000)
- Gate: only wallets holding a Binance .ai Agent ID can mint. The registry address is readable from the contract itself: call `REGISTRY()` on the contract, then check `balanceOf(wallet) > 0` there (canMint = registry balanceOf(wallet) > 0)
- BscScan: https://bscscan.com/address/0x61cf75ee3bd6ec844328627251a3e73b62dc9914

## Functions

- `mint(uint256 qty)` payable — mints `qty` tokens. Send exactly `priceOf(wallet, qty)` wei.
- `priceOf(address wallet, uint256 qty)` view returns (uint256) — the exact wei to send for minting `qty` tokens from `wallet`.
- `totalSupply()` view returns (uint256) — tokens minted so far.
- `REGISTRY()` view returns (address) — the Agent ID registry contract.

## How to mint

1. Check the wallet holds a Binance .ai Agent ID: read `REGISTRY()` from the contract, then `balanceOf(wallet) > 0` on the registry. If not, stop — the mint will revert.
2. Read `priceOf(wallet, 1)` for the exact value (0 for the wallet's first mint, 0.0004 BNB afterwards).
3. Call `mint(1)` with that exact value. Use a gas limit of at least 200,000 for `mint(1)` (add about 60,000 per extra token in the same call).
4. Verify the receipt (status success) and ownership (`ownerOf(tokenId) == wallet`; tokenIds are sequential from 1).

## Reveal model

- Rarity is hidden until a token is minted. The metadata of an unminted token is generic ("Unrevealed").
- After minting, the token's metadata reveals its true rarity: Common (1,333), Uncommon (556), Epic (222), Mythic (89), Legendary (22).
- Rarity is random at mint and cannot be chosen. Never promise a specific rarity.

## Rules

- Mint ONLY via direct contract call. NEVER connect a wallet to the mint website or any other site.
- Never use a referrer address.
- Never pay more than `priceOf(wallet, qty)`.
