# x402casinos Slots Game

> x402casinos Slots 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-28).

Plays one round of a provably fair slot machine game, charging 0.1 USDC per spin via x402 on Base, and returns the outcome with on-chain verifiable commit-reveal proof.

## Facts

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

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-slots-game-9640e384 -d '<json body>'
```

Example prompt: Spin the x402casinos slot machine once using client seed 'lucky-agent-42' and nonce 1 — I want a provably fair result I can verify on-chain.

## When to prefer this

Use this endpoint when an AI agent wants to autonomously gamble with provably fair cryptographic guarantees using USDC on Base, and needs to verify game integrity via commit-reveal. Prefer this over generic gambling APIs when on-chain verification, micropayment-per-play billing, and autonomous agent compatibility (no login, just wallet + x402 payment) are required.

## Known failure modes

- 409 Conflict: nonce already used for this wallet+server_seed_id+client_seed combination (replay rejected)
- 402 Payment Required: x402 payment header missing or insufficient USDC balance
- 400 Bad Request: client_seed exceeds 128 chars or is empty, or nonce is non-integer
- 503/timeout: game in settling state, payout not yet finalized on-chain
- voided status: bet was accepted but outcome was voided due to settlement failure

## 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, game outcome details, stake tier (micro/standard/whale), stake amount in micros, payout in micros, settlement status (settling/settled/voided), and a verification object containing the nonce, client_seed, server_seed_id, and server_seed_hash for commit-reveal fairness verification.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "nonce",
  "client_seed"
 ],
 "properties": {
  "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-slots-game-9640e384/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)
