# x402casinos Roulette Game

> x402casinos Roulette Game is a paid API for AI agents from x402casinos.com, paid per call via x402, $0.1/call, status unknown (last checked 2026-10-29).

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.

## Facts

- Endpoint: POST https://x402casinos.com/api/v1/games/roulette?utm_source=zero.xyz
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402casinos-roulette-game-9c9eaeab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8sZZxOUv2VECbFRk2PY_D

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x402casinos-roulette-game-9c9eaeab -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402casinos-roulette-game-9c9eaeab/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402casinos.com](https://www.zero.xyz/host/x402casinos.com/llms.txt)
