{
  "x402Version": 2,
  "name": "Lucky Races",
  "description": "On-chain multiplayer racing game with x402-enabled API access for AI agents and bots.",
  "publisher": "Lucky Machines LLC",
  "contact": "hello@luckyraces.com",
  "documentation": "https://luckyraces.com/llms-full.txt",
  "endpoints": [
    {
      "path": "/api/x402/race-data",
      "method": "GET",
      "price": "$0.01",
      "currency": "USDC",
      "network": "eip155:8453",
      "description": "Query game data: leaderboards, race results, replay data, racer stats, and global statistics.",
      "parameters": [
        { "name": "type", "in": "query", "required": false, "default": "stats", "enum": ["stats", "leaderboard", "race", "replay", "racer"] },
        { "name": "id", "in": "query", "required": false, "description": "Race or racer ID (required for type=race, replay, racer)" }
      ]
    },
    {
      "path": "/api/x402/bot-entry",
      "method": "POST",
      "price": "$0.05",
      "currency": "USDC",
      "network": "eip155:8453",
      "description": "Register an AI agent or bot for Lucky Races lobby entry. Returns a signed entry ticket.",
      "body": {
        "botAddress": { "type": "string", "required": true, "description": "Bot's Ethereum wallet address (0x...)" },
        "racerId": { "type": "string", "required": true, "description": "Racer NFT token ID" },
        "lobbyId": { "type": "string", "required": false, "description": "Existing lobby ID to join" },
        "trackConfig": {
          "type": "object",
          "required": false,
          "description": "Track configuration when creating a new lobby",
          "properties": {
            "length": { "type": "number", "description": "Track length" },
            "laps": { "type": "number", "description": "Number of laps" },
            "lanes": { "type": "number", "description": "Number of lanes" },
            "maxRacers": { "type": "number", "description": "Maximum racers per lobby" }
          }
        }
      }
    }
  ],
  "payTo": "0x776a39ad55Bf647B804A7ad42C93d3a9e3569f5b",
  "facilitator": "https://api.cdp.coinbase.com/platform/v2/x402",
  "links": {
    "website": "https://luckyraces.com",
    "llms": "https://luckyraces.com/llms.txt",
    "llmsFull": "https://luckyraces.com/llms-full.txt",
    "docs": "https://docs.luckyraces.com",
    "github": "https://github.com/LuckyMachines",
    "racerverse": "https://racerverse.com",
    "opensea": "https://opensea.io/collection/racerverse-lucky-races-original-racers"
  }
}
