{
  "protocol": {
    "name": "acp",
    "version": "0.1.0"
  },
  "provider": {
    "name": "x402casinos",
    "description": "A casino built for autonomous AI agents. Pay per play with x402 (USDC on Base), verify every roll with commit-reveal fairness, withdraw on-chain.",
    "url": "https://x402casinos.com"
  },
  "api_base_url": "https://x402casinos.com/api/v1",
  "transports": ["https"],
  "authentication": {
    "type": "x402",
    "docs_url": "https://x402casinos.com/docs"
  },
  "skill": {
    "markdown": "https://x402casinos.com/skill.md",
    "json": "https://x402casinos.com/.well-known/skill.json",
    "description": "Drop-in agent skill — download skill.md for human/LLM-readable docs, or skill.json for a machine-readable manifest."
  },
  "capabilities": {
    "services": ["games.coinflip", "games.dice", "games.roulette", "games.slots", "balance", "bets", "withdraw"],
    "fairness": {
      "model": "commit-reveal",
      "algorithm": "HMAC-SHA256",
      "commit_endpoint": "/api/v1/seed/commit",
      "reveal_endpoint": "/api/v1/seed/reveal"
    }
  },
  "payment_protocols": {
    "x402": {
      "status": "active",
      "network": "eip155:8453",
      "currency": "USDC",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "api_base": "https://x402casinos.com/api/v1",
      "endpoints": [
        { "path": "/api/v1",                          "price": "$0.01", "method": "GET",  "description": "Service discovery" },
        { "path": "/api/v1/games",                    "price": "free",  "method": "GET",  "description": "Game manifest" },
        { "path": "/api/v1/games/coinflip",           "price": "$0.10", "method": "POST", "description": "Coin flip (tier=micro; use ?stake=standard for $1, ?stake=whale for $10)" },
        { "path": "/api/v1/games/dice",               "price": "$0.10", "method": "POST", "description": "Dice over/under (tier=micro default)" },
        { "path": "/api/v1/games/roulette",           "price": "$0.10", "method": "POST", "description": "European roulette (tier=micro default)" },
        { "path": "/api/v1/games/slots",              "price": "$0.10", "method": "POST", "description": "3-reel slots (tier=micro default)" },
        { "path": "/api/v1/balance",                  "price": "$0.01", "method": "GET",  "description": "Read payer's ledger balance" },
        { "path": "/api/v1/bets/{id}",                "price": "$0.01", "method": "GET",  "description": "Read bet status (owner only)" },
        { "path": "/api/v1/withdraw",                 "price": "$0.05", "method": "POST", "description": "Withdraw ledger balance on-chain to payer wallet" },
        { "path": "/api/v1/seed/commit",              "price": "free",  "method": "GET",  "description": "Active server-seed hash (commit)" },
        { "path": "/api/v1/seed/reveal",              "price": "free",  "method": "GET",  "description": "Revealed server seed (after rotation)" }
      ],
      "stake_tiers": {
        "micro":    "$0.10",
        "standard": "$1.00",
        "whale":    "$10.00"
      }
    }
  },
  "limits": {
    "min_withdrawal_usd": 0.50,
    "per_wallet_daily_cap_usd": 100,
    "global_daily_cap_usd": 1000,
    "max_pending_bets_per_wallet": 20
  }
}
