{"uid":"cap_65jyyrDzIemlsbICJKdBN","slug":"delx-commerce-seeded-lottery-draw-1b64c8db","name":"Delx Commerce — Seeded Lottery Draw","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/seeded-lottery-draw?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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."}}},"responseSchema":{"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"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Q8w7gXamkSYdjtkVmMOpy","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Deterministically draws a specified number of winners from a labeled list using a seed value, returning verifiable results with no data retention.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Raffle winner selection for giveaway","prompt":"I have 10 entrants in my giveaway — ['Alice','Bob','Carol','Dave','Eve','Frank','Grace','Hank','Iris','Jack'] — use seed 'promo-july4' and draw 3 winners for me, with verifiable proof."},{"title":"Fair team assignment in a contest","prompt":"Pick 1 winner from ['TeamAlpha','TeamBeta','TeamGamma','TeamDelta'] using seed 'finals-round2' so the result is reproducible and auditable."},{"title":"Reproducible sample selection for testing","prompt":"From this list of user IDs ['u001','u002','u003','u004','u005','u006','u007','u008'], use seed 'test-batch-42' and randomly draw 3 of them for my A/B test sample — I need to be able to reproduce this selection later."}],"resultDescription":"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).","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:54:08.721Z","isFirstParty":false,"canonicalSlug":"delx-commerce-seeded-lottery-draw-1b64c8db"}