# SwogeAgentic Fair Draw

> SwogeAgentic Fair Draw is a paid API for AI agents from web-production-220a3.up.railway.app, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-18).

Executes a provably fair random integer draw by combining a client seed with a committed server seed to produce verifiable uniform random integers in a specified range.

## Facts

- Endpoint: POST https://web-production-220a3.up.railway.app/agentic/call/fair_draw?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/swogeagentic-fair-draw-a0a299d3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DLeeqCMzt9ZEF-WX2Q2z-

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 swogeagentic-fair-draw-a0a299d3 -d '<json body>'
```

Example prompt: I already committed to a fair draw with commitment ID 'abc123' — now I want to reveal my client seed 'myseed42' and get 3 random integers between 1 and 100.

## When to prefer this

Use this endpoint when you need verifiable, tamper-proof random integers as part of a provably fair protocol — specifically after a server seed hash has been committed and shared, and you now want to resolve the draw with your own client seed. This is ideal for blockchain games, on-chain raffles, or any multi-party scenario requiring auditable randomness. Prefer this over generic RNG APIs when fairness auditability and seed transparency matter to all participants.

## Known failure modes

- Invalid or unknown commitment_id returns an error — the commitment must have been created via a prior fair_commit call
- Mismatched or tampered client_seed may produce a result that fails independent verification
- count exceeds maximum of 100 — request is rejected
- min or max not provided or min >= max — may cause invalid range error
- Payment failure (insufficient USDC/USDG/$SWOGE) blocks the call
- Server seed not yet revealed — draw called too early before commitment lifecycle is complete

## How this service works

Use this after fair_commit, once every player has seen the server_seed_hash: give your client_seed and get uniform random integers in [min, max]. Price: $0.003 in USDC on Base or Solana, or $0.02 in USDG or $SWOGE on Robinhood Chain (tool price + settlement cost, minimum $0.02).

## Output

Returns one or more uniform random integers within the specified [min, max] range, derived from the combination of the client seed and the previously committed server seed. Results are cryptographically verifiable and reproducible given the same inputs, providing proof of fairness to all parties.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "arguments": {
   "type": "object",
   "required": [
    "commitment_id",
    "client_seed"
   ],
   "properties": {
    "max": {
     "type": "integer"
    },
    "min": {
     "type": "integer"
    },
    "count": {
     "type": "integer",
     "maximum": 100,
     "minimum": 1
    },
    "client_seed": {
     "type": "string"
    },
    "commitment_id": {
     "type": "string"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/swogeagentic-fair-draw-a0a299d3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from web-production-220a3.up.railway.app](https://www.zero.xyz/host/web-production-220a3.up.railway.app/llms.txt)
