Docs

How the mint, the reveal and the contract work, how to check each part yourself, the FAQ and the terms.

Overview

Flaggies is a collection of 5,555 pixel art characters, one family drawn for all 195 countries. Each character wears its country's colors and stands in front of a landmark from home.

KindSupplyNotes
Male1,95010 per country
Female1,95010 per country
Animal1,170the country's national animal, 6 per country
Robot3902 per country
Legendary95gold; 95 countries have one each: Tier 1/1

Each Flaggie's traits name its Base (Male, Female, the robot's finish, or the animal's species, in gold for a Legendary) and its Tier. The 95 Legendaries are the only gold Flaggie of their country, so they carry Tier 1/1.

The contract is a standard ERC-721 on BNB Chain with ERC-2981 royalties and ERC-4906 metadata updates. Every image is 32 × 32 pixels, stored at 1024 × 1024 on IPFS.

What you need

  • A Binance Agentic Wallet. Minting is a contract call made by your AI agent through this wallet.
  • A .ai Agent ID in that wallet. The contract checks that the calling wallet holds an Agent ID from the SPACE ID collection. The Agent ID is soulbound, so it cannot be borrowed for a mint.
  • Developer Mode turned on in the Binance app. The wallet needs it for any contract call.
  • A little BNB for gas, plus 0.00095 BNB for each Flaggie after your first.

Install

The easiest route is to hand your agent the skill file. It tells the agent which commands to run and when to ask you first.

Open skill.md

To install the tools yourself:

npm i -g @binance/agentic-wallet
npm i -g https://flaggies.world/flaggies-cli.tgz

The SHA-256 of each release is at flaggies-cli.tgz.sha256, so you can check the file before installing it.

The Flaggies CLI never holds keys. It reads the chain and prepares calls, and every signature goes through your Agentic Wallet.

Commands

Every command prints JSON. A good agent turns it into plain language for you.

CommandWhat it does
flaggies preflightChecks the wallet, the Agent ID and Developer Mode, and says how to fix anything missing.
flaggies infoPhase, supply left, price, and your own mints and room.
flaggies quote --count NThe exact cost of N more, counting your free first mint.
flaggies mint --count NPreviews the mint and returns a request id. Nothing is sent yet.
flaggies execute --request-id IDSends a previewed call, after you said yes.
flaggies revealPreviews the reveal once it is due. Anyone may call it.
flaggies tx --hash HASHWaits for the receipt and lists the token ids minted.
flaggies mine --traitsYour token ids, and their artwork and traits after the reveal.
flaggies market and friendsListing, buying and offers. See Market.

Mints and reveals always go preview, then your confirmation, then execute. A preview expires after about five minutes.

Mint rules

  • Your first Flaggie is free. Each one after that costs 0.00095 BNB. The price is fixed in the contract and cannot be changed.
  • Five per wallet, counted by mints. Selling a Flaggie does not give the wallet room for another.
  • Tokens mint in order: 1, 2, 3 and so on. Your token id says nothing about the artwork it will show.
  • Overpayment comes back in the same transaction. The CLI sends the exact cost anyway.
  • The mint can be paused and reopened by the owner until it closes. Once it closes, it is closed for good.

The reveal

Until the reveal, every token shows the same silhouette. The artwork is dealt in one step, for all tokens at once.

  1. The mint closes. Either the last Flaggie is minted, or the owner calls endMint. From then on nobody can mint, the owner included.
  2. The reveal block is set five blocks ahead. Its hash does not exist yet when the mint closes, so nobody can know it.
  3. Anyone calls reveal() once that block has passed. The block hash fixes a random offset, and token t shows original artwork (t − 1 + offset) mod 5555 + 1.

The hash stays readable for 8,191 blocks, about an hour on BNB Chain. If nobody calls reveal() in that window, the next call arms a new reveal block instead of guessing. There is no fallback seed, because any value known in advance could be gamed by whoever closes the mint.

After the reveal, originalIdOf(tokenId) on the contract tells you which image file your token shows.

Market

Flaggies has its own market contract, built for agents. Every action is one contract call, so the same preview, confirm, execute flow as the mint applies.

CommandWhat it does
flaggies marketLive listings from the cheapest, offers from the best, and the floor.
flaggies approve-marketOne-time approval so the market can hand over your Flaggie when it sells.
flaggies list --token ID --price BNBLists a Flaggie you hold for 30 days (up to 90 with --days). It stays in your wallet until someone buys it.
flaggies buy --token IDBuys a listing at its exact price.
flaggies offer --price BNB [--token ID]Offers BNB for one Flaggie, or for any Flaggie without --token.
flaggies accept --id N [--token ID]Sells into an offer. For an any-Flaggie offer you pick which one.
flaggies unlist, cancel-offerTakes a listing down, or withdraws an offer and its BNB.
flaggies claim [--to ADDRESS]Collects BNB the market couldn't send you directly, to any address you choose.
  • Every sale pays the royalty that Flaggies reports (5%) and sends the rest to the seller. The market itself charges nothing.
  • Offers hold their BNB in the market until they are accepted or cancelled. An offer with an expiry can be refunded to its bidder by anyone once it runs out.
  • Every listing expires, after 90 days at most. To stop a sale sooner, unlist it. Don't rely on moving the token or revoking approval: if either comes back before the expiry, so does the listing.
  • A listing only works while the seller holds the token. If it moves, the listing can't be bought, and anyone can clear it.
  • Buyers send the exact listed price. If the price changes while a purchase is pending, the purchase fails instead of paying a different amount.
  • The market has no owner. Nobody can pause it, change its rules or touch the BNB it holds for offers.

Flaggies are standard ERC-721 tokens, so other BNB Chain marketplaces can list them too.

Verify the art

The contract was deployed with a provenance hash of all 5,555 images in their original order. The images are on IPFS, so you can recompute it at any time:

curl -o images.car "https://ipfs.filebase.io/ipfs/bafybeidbscyk55glpqq73xjqzgw5l2z6w7ckdtlhlpat76cv2gbul2ikqq?format=car"
npx ipfs-car unpack images.car --output images
cd images
for i in $(seq 1 5555); do sha256sum "$i.png" | cut -c1-64; done | tr -d '\n' | sha256sum

The result must equal the provenance() value on the contract:

3830c2b685170b48a3d22ac15cbc0dd37c31da3901417b2f4b5559f13166abf9

Any IPFS gateway or node works in place of the one above, since the folder is addressed by its content.

Owner powers

The contract has an owner. Here is everything the owner can do, and the limits the contract puts on it.

Owner canLimit
Open or pause the mintOnly until the mint closes.
Close the mint early (endMint)Cannot be undone. It arms the reveal like a sell-out does.
Point tokens at the revealed metadataOnly after the reveal has fixed the offset, and only until frozen.
Change the placeholder metadataOnly until frozen.
Freeze the metadataPermanent. After this no metadata can change.
Set the royalty receiver and rateThe rate can never exceed 5%.
Withdraw mint proceedsOnly the BNB the contract holds.
Hand over or renounce ownershipRenouncing is blocked until the metadata is frozen and the balance is withdrawn.

The owner cannot change the price, the supply or the provenance hash, mint for free, choose the reveal offset, or move anyone's token.

The revealed metadata lives on IPFS and the owner sets its address. Anyone can rebuild the expected metadata from the on-chain offset and the provenance-checked images, and compare it before the metadata is frozen.

Errors

ErrorMeaningWhat to do
NO_AGENT_IDThe wallet holds no .ai Agent ID.Claim one in Binance Wallet.
DEV_MODE_OFFDeveloper Mode is off or expired.Turn it on in the Binance app.
WalletLimitThe wallet minted 5, or asked for more than its room.Mint fewer, or stop.
MintClosedNot open yet, paused, or closed for the reveal.Check flaggies info.
SupplyExceededFewer left than asked.Mint the number left.
InsufficientPaymentThe quote was stale, or the free mint is used.Quote and preview again.
"not due yet"The reveal block has not passed.Wait for the block shown, then reveal.

Addresses

Flaggies contract
0x85Eb23DcA63F1573f81e4A07617a03a7066Be108
Agent ID (SPACE ID)
0x60B9262456dE011F7d15a54CdD8c48bAaa8B022F
Images
ipfs://bafybeidbscyk55glpqq73xjqzgw5l2z6w7ckdtlhlpat76cv2gbul2ikqq
Placeholder
ipfs://bafybeie322w5igdhpbctpijoii6k5yktr467gjnehmx2f5ue2cvf2j5g7a/unrevealed.json
Provenance
0x3830c2b685170b48a3d22ac15cbc0dd37c31da3901417b2f4b5559f13166abf9
Chain
BNB Chain, id 56

FAQ

Minting

Why can only AI agents mint?

Flaggies is made for the agent era: the mint lives inside agents, not behind a website button. The contract only accepts calls from wallets that hold a .ai Agent ID, which you claim for a Binance Agentic Wallet.

Can I mint without an agent?

No. A regular wallet has no Agent ID, so the contract turns the call down. You can still buy a Flaggie from someone who minted one.

How much does it cost?

Your first Flaggie is free, apart from gas. Each one after that costs 0.00095 BNB. The price is written into the contract and can never change.

How many can I mint?

Five per wallet. The count goes by mints, so selling one does not free up room for another.

Does my agent spend money without asking me?

It shouldn't. The skill tells the agent to show you the count and the cost, then wait for your yes before it sends anything. The Agentic Wallet also previews every call through Binance's risk checks.

The reveal

When do I see my Flaggie?

When the mint is over: either all 5,555 are minted or the mint is closed early. Five blocks later anyone can trigger the reveal, and every token gets its artwork at the same moment.

Can anyone pick a rare one?

No. The artwork is dealt by a block hash that does not exist until after minting has stopped for good. Nobody can mint, peek and undo, and the team cannot choose either.

What if nobody triggers the reveal?

The block hash stays usable for about an hour. If that passes, the next call simply sets a new reveal block, so the reveal is delayed, never guessed.

How do I know the art wasn't swapped?

All 5,555 images were hashed before the first mint and the hash is stored in the contract. The images are already public on IPFS. The Docs show the four commands to check it.

The collection

Is my country in it?

All 195 countries are. Search for yours on the country wall.

Is there a 1/1 tier?

Yes. The 95 gold Legendaries, about 1.7% of the collection, are each the only gold Flaggie of their country. Their metadata says so: Tier 1/1, next to a Base such as Gold Jaguar or Gold Robot.

Is there a token or a roadmap?

No token. Flaggies is the art and a fair reveal. Nothing is promised beyond what these pages and the contract say.

Owning one

Where can I trade Flaggies?

On the Flaggies market, through your agent: list, buy, make offers and accept them, all as plain contract calls. Flaggies are also standard ERC-721 tokens, so other BNB Chain marketplaces can list them. See Market.

Are there royalties?

The contract signals a 5% royalty through ERC-2981, and it can never be set higher than that. The Flaggies market always pays it. Other marketplaces decide for themselves whether they honor it.

What can I do with my Flaggie's art?

See the license section of the Terms.