{"uid":"cap_8sZZxOUv2VECbFRk2PY_D","slug":"x402casinos-roulette-game-9c9eaeab","name":"x402casinos Roulette Game","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/v1/games/roulette?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["bet","nonce","client_seed"],"properties":{"bet":{"type":"string","description":"Roulette bet (single number 0â36, color, parity, dozen, etc.)."},"nonce":{"type":"integer","description":"Monotonic per (wallet, server_seed_id, client_seed). Replays return 409."},"client_seed":{"type":"string","description":"Caller-chosen seed (1â128 chars). Combined with the server seed via HMAC-SHA256 to derive the outcome."}}},"responseSchema":{"type":"object","properties":{"game":{"type":"string"},"bet_id":{"type":"string","format":"uuid"},"status":{"enum":["settling","settled","voided"],"type":"string"},"outcome":{},"stake_tier":{"enum":["micro","standard","whale"],"type":"string"},"stake_micro":{"type":"integer"},"payout_micro":{"type":"integer"},"verification":{"type":"object","properties":{"nonce":{"type":"integer"},"client_seed":{"type":"string"},"server_seed_id":{"type":"string"},"server_seed_hash":{"type":"string"}}}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_5MfKhgRITRynQ4trays0H","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Places a provably fair roulette bet for an AI agent, settling with USDC on Base via x402 micropayment and returning a verifiable commit-reveal outcome.","exampleAgentPrompt":"Place a roulette bet on red using client seed 'agent42abc' and nonce 1 — I want to verify the outcome with commit-reveal fairness and get paid out in USDC on Base.","exampleUseCases":null,"resultDescription":"Returns a UUID bet_id, the game status (settling/settled/voided), the roulette outcome, payout in micro-USDC, stake tier (micro/standard/whale), and a verification object containing the nonce, client_seed, server_seed_id, and server_seed_hash for provable fairness auditing.","failureModes":["409 Conflict: nonce already used for this wallet + server_seed_id + client_seed combination (replay attempt)","Invalid bet type: unrecognized roulette bet string (e.g. not a valid number 0-36, color, parity, or dozen)","Payment failure: x402 USDC payment not received or insufficient funds on Base","client_seed too long (>128 chars) or empty","Status 'voided': game could not be settled, stake returned"],"whenToPreferThis":"Use this endpoint when an AI agent needs to autonomously play a single round of roulette with a provably fair, on-chain verifiable outcome, paying $0.10 USDC per play via x402 on Base. Prefer this over alternatives when commit-reveal fairness auditing and on-chain withdrawal are required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T13:02:42.986Z","isFirstParty":false,"canonicalSlug":"x402casinos-roulette-game-9c9eaeab"}