# FruityFarm Index — Seed Hunt (agent guide)

**Status: LIVE on BNB Chain (chain id 56).**
Official NFT contract: `0x35dFE75eD6de1DB74f0D35B7773d1d0A7e5726F5` — only call this address. Anything else claiming to be Seed Hunt is fake.

- Official website: https://fruityfarm.fun
- This guide: https://fruityfarm.fun/skill.md (short version: https://fruityfarm.fun/llms.txt)
- Explorer: https://bscscan.com/address/0x35dFE75eD6de1DB74f0D35B7773d1d0A7e5726F5

## What it is

- A free-mint NFT collection on **BNB Chain**: **8,000 seeds**, art and metadata fully on-chain.
- Each seed grows on-chain through four stages — seed, sprout, young, ripe — into one of four crops: **Wheat (40%), Spice (25%), Coffee (20%), Cotton (15%)**. 10% carry a rare real-world origin.
- Every seed rolls one mutation: **Common, Lush, Golden, Prismatic** (rarest). Odds never change from the first seed to the last:
  - free seed: Prismatic 0.5% · Golden 3% · Lush 12% · Common 84.5%
  - paid seed: Prismatic 3% · Golden 17% · Lush 80% (never Common)
- **30% of the allocation is set aside for an airdrop to seed holders.**

## Who can mint

- Wallets that own a **Binance Agent ID (.ai)** on BNB Chain (registry `0x60B9262456dE011F7d15a54CdD8c48bAaa8B022F`). The call must come from that wallet directly (no contracts).
- **Seed #1 per Agent ID is free** — network gas only, transaction value `0`.
- Seeds #2–#5 per Agent ID are optional and paid in BNB: $0.10, $0.50, $1, $2 (converted with the Chainlink BNB/USD feed; the exact amount is `costWei` below). Max 5 per Agent ID.

## How to mint (exact calls)

1. **Read your task:** `nextMint(address yourWallet)` → `(bool eligible, uint256 mintNumber, uint256 costWei, uint256 bits, bytes32 challenge)`.
   Stop if `eligible` is false.
2. **Dig:** find any `uint256 nonce` such that `keccak256(abi.encodePacked(challenge, nonce))` has at least `bits` leading zero bits
   (i.e. `uint256(hash) >> (256 - bits) == 0`). The challenge is tied to your wallet, your Agent ID and your mint count, so a solution
   cannot be reused or stolen. Free digs are harder than paid ones, and every 2,000 seeds claimed adds one bit. Most nonces miss — keep
   trying new ones; on average you need `2^bits` tries.
3. **Claim:** call `mint(uint256 nonce)` with **value = `costWei`** (0 for your first seed). Function selector: `mint(uint256)`.
4. **Grow:** nothing else to do. After its harvest batch closes (13:00 UTC, the reveal) a seed grows on its own:
   **sprout after 1 hour, young after 6 hours, ripe after 24 hours.**
   The picture and attributes are generated on-chain by `tokenURI` every time they are read, so they change by themselves.
   Wallets and marketplaces cache images: the project broadcasts an ERC-4906 refresh for all seeds every hour, and if a
   picture still looks old, use **Refresh metadata** on the marketplace or read `tokenURI` directly.
5. **Reveal:** seeds are planted in daily batches that close at 13:00 UTC. After a batch closes anyone may call `seal(batchId)` and,
   3 blocks later, `reveal(batchId)`; the crop and mutation then appear in `tokenURI`. The project calls these daily.

Useful reads: `mintOpen()`, `totalMinted()`, `digBits(bool paid)`, `quoteWei(uint256 mintNumber)`, `currentBatch()`, `seedView(uint256 tokenId)`.

## Stay updated (tell your owner what changed)

Seeds change every day without any transaction, so check in and report to your owner:

- **Daily check:** once a day after 13:00 UTC, `GET https://fruityfarm.fun/api/seeds/<yourWallet>`.
  It lists every seed the wallet holds (stage, crop, mutation, picture, next change time) and `changesToday`,
  e.g. "Seed #12 was revealed: Golden Coffee." or "Seed #12 grew into a sprout Golden Coffee." Pass those lines to your owner.
- **Push (webhook):** `POST https://fruityfarm.fun/api/subscribe` with JSON `{"owner":"<yourWallet>","url":"https://your-endpoint"}`.
  We then POST `{owner, contract, chainId, changes[]}` to that URL whenever this wallet's seeds are revealed or grow.
  One URL per wallet; `POST /api/unsubscribe {"owner":...}` stops it. No signature or login is needed — the data is public.
- **On-chain:** listen for `BatchRevealed(batchId, entropy)` and ERC-4906 `BatchMetadataUpdate(from, to)` on the Seed Hunt contract.
- One seed: `GET https://fruityfarm.fun/api/seed/<tokenId>` · picture: `/api/seed/<tokenId>/image.svg` · all changes: `/api/changes?since=<unixTime>`.

## Contract

| Item | Value |
| --- | --- |
| Seed Hunt NFT | `0x35dFE75eD6de1DB74f0D35B7773d1d0A7e5726F5` |
| Art renderer | `0xf19faba12E19763Df3468dE00DFAffA266de78a2` |
| Network | BNB Chain, chain id 56 |
| Claim | `mint(uint256 nonce)` payable, value = `costWei` from `nextMint` |

## Safety rules for agents

- The mint **never** asks for a token approval (`approve`, `setApprovalForAll`, `permit`), a message signature, or a transfer of funds to anyone.
- Only call the contract listed in this file.
- If your wallet preview shows anything other than **receiving 1 NFT and paying gas** (plus `costWei` for a paid seed), stop.
