{
  "schema": "agent-manifest/v1",
  "name": "Agentic Cards",
  "description": "Fully on-chain reputation NFT for .ai Agent ID holders on BNB Chain. One card per Agent ID. The minter wallet's on-chain reputation (wallet age, transactions, active days, NFTs, loyalty) sets the rank and stats, and the mint transaction sends 500 to 10,000 $CARDS. Built so AI agents can mint in one call.",
  "url": "https://agentic-cards.pages.dev/",
  "docs": "https://agentic-cards.pages.dev/AGENT.md",
  "llms_txt": "https://agentic-cards.pages.dev/llms.txt",
  "chain": {
    "name": "BNB Smart Chain",
    "chainId": 56,
    "currency": "BNB",
    "explorer": "https://bscscan.com"
  },
  "contracts": {
    "AgenticCards": {
      "address": "CONTRACT_ADDRESS_HERE",
      "standard": "ERC-721 + ERC721Enumerable + ERC-2981 + ERC-4906",
      "abi": "https://agentic-cards.pages.dev/abi/AgenticCards.json"
    },
    "CARDS": {
      "address": "CARDS_TOKEN_ADDRESS_HERE",
      "standard": "ERC-20",
      "symbol": "CARDS",
      "decimals": 18,
      "abi": "https://agentic-cards.pages.dev/abi/CardsToken.json"
    },
    "AgentIdRegistry": {
      "address": "0x60B9262456dE011F7d15a54CdD8c48bAaa8B022F",
      "note": "SPACE ID .ai registry; handleOf(wallet) must be non-empty to mint"
    }
  },
  "api": {
    "base": "https://agentic-cards.pages.dev/api",
    "openapi": "https://agentic-cards.pages.dev/.well-known/openapi.json",
    "score": "GET /score?wallet=0x...",
    "collection": "GET /collection",
    "card": "GET /card/{tokenId}",
    "auth": "none",
    "rate_limit": "30 requests / minute / IP"
  },
  "eligibility": "msg.sender must own a .ai Agent ID (registry.handleOf(msg.sender) != ''). One card per Agent ID and one per wallet. Contracts or agents acting through a wallet without an Agent ID revert with NoAgentId().",
  "mint": {
    "steps": [
      "GET {api.base}/score?wallet={yourWallet} -> JSON with score, rank, breakdown, cards, deadline, signature and mint.args",
      "If eligible is false or signature is null: stop and tell the user why (error field).",
      "Read mintPrice() from AgenticCards.",
      "Send mint(uint16 score, uint8[5] breakdown, uint256 cardsAmount, uint256 deadline, bytes sig) with args = mint.args, value = mintPrice(), from the same wallet, on chainId 56, before deadline.",
      "Parse the CardMinted(minter, tokenId, handle, score, rank, cardsAmount) event, or call mintMessage(tokenId), and relay it to the user."
    ],
    "function": "mint(uint16,uint8[5],uint256,uint256,bytes)",
    "returns": "(uint256 tokenId, uint256 score, string rank, uint256 cardsAmount)",
    "event": "CardMinted(address indexed minter, uint256 indexed tokenId, string handle, uint256 score, string rank, uint256 cardsAmount)",
    "message": "mintMessage(uint256 tokenId) -> \"kai.ai minted Agentic Card #12 (Specialist, score 420). 2,175 $CARDS allocated.\"",
    "price_wei_default": "340000000000000",
    "signatures_required_from_user": "Only the mint transaction. Never sign messages, approvals or permits for this project."
  },
  "score": {
    "range": [
      0,
      1000
    ],
    "breakdown": [
      "AGE",
      "TXNS",
      "DAYS",
      "NFTS",
      "LOYALTY"
    ],
    "weights": [
      25,
      25,
      20,
      15,
      15
    ],
    "ranks": {
      "Recruit": [
        0,
        199
      ],
      "Operative": [
        200,
        349
      ],
      "Specialist": [
        350,
        499
      ],
      "Commander": [
        500,
        649
      ],
      "Elite": [
        650,
        799
      ],
      "Legendary": [
        800,
        1000
      ]
    },
    "cards_formula": "500 + 9500 * (score/1000)^2 $CARDS (18 decimals)"
  },
  "affiliation": "Independent community project. Not affiliated with Binance or SPACE ID."
}
