# Delx Commerce — Seeded Lottery Draw

> Delx Commerce — Seeded Lottery Draw is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Deterministically draws a specified number of winners from a labeled list using a seed value, returning verifiable results with no data retention.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/seeded-lottery-draw?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-seeded-lottery-draw-1b64c8db
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_65jyyrDzIemlsbICJKdBN

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 delx-commerce-seeded-lottery-draw-1b64c8db -d '<json body>'
```

Example prompt: Run a seeded lottery draw on this list of contestants — ['Alice','Bob','Carol','Dave','Eve'] — using seed 'summer2025' and pick 2 winners, and give me verifiable proof the results weren't tampered with.

## When to prefer this

Choose this endpoint when you need a deterministic, reproducible, and verifiable random draw from a labeled list — especially when auditability matters (contests, raffles, fair selection). The SHA-256 input hash and no-retention guarantee make it suitable for trust-sensitive use cases. Prefer this over general RNG when you need proof of fairness and a seeded result that can be independently reproduced.

## Known failure modes

- draw_count exceeds the number of labels provided — likely returns an error or empty winners
- missing required fields (seed, labels, draw_count) — returns validation error
- labels array exceeds 256 items — rejected by schema
- seed or label strings exceed 8192 character limit — rejected
- payment not received via x402 — request returns 402 Payment Required

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

A JSON object containing the list of winning labels, the count of winners drawn, a monetary_claim flag, the SHA-256 hash of the input for auditability, confirmation that no data was retained, and the number of external calls made (always 0).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "seed": {
   "type": "string",
   "maxLength": 8192,
   "description": "Seed supplied to Seeded Lottery Draw; used only for this bounded calculation and processed in memory without retention."
  },
  "labels": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 8192
   },
   "maxItems": 256,
   "description": "Labels supplied to Seeded Lottery Draw; used only for this bounded calculation and processed in memory without retention."
  },
  "draw_count": {
   "type": "integer",
   "description": "Draw Count supplied to Seeded Lottery Draw; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "count": 2,
   "winners": [
    "A",
    "C"
   ],
   "monetary_claim": false
  },
  "schema": "delx/util-seeded-lottery-draw/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "30fdaea9dd102f586715000ed359c830e8c6a4f617e772a7eb534dcf023999b8",
   "external_calls": 0
  },
  "operation": "seeded_decision:seeded_lottery_draw"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-seeded-lottery-draw-1b64c8db/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
