{"uid":"cap_DLeeqCMzt9ZEF-WX2Q2z-","slug":"swogeagentic-fair-draw-a0a299d3","name":"SwogeAgentic Fair Draw","description":"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).","url":"https://web-production-220a3.up.railway.app/agentic/call/fair_draw?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_TeNX8WY6I8WCFaDvXY119","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"On-chain raffle winner selection","prompt":"We ran a provably fair raffle and the server seed hash was shared with all participants. Now everyone has seen it — use commitment ID 'raffle-2025-06-01' and my client seed 'sunrise7' to draw 1 random integer between 1 and 500 to pick the winner."},{"title":"Blockchain game random loot roll","prompt":"My game session committed to a fair draw earlier. Now I need to reveal my client seed 'dragonfire99' for commitment ID 'session-77x' and roll 5 random numbers between 1 and 20 for the loot table."},{"title":"Decentralized coin flip or dice roll","prompt":"I set up a fair commitment for a dice game with commitment ID 'duel-match-88'. Use client seed 'playertwo_roll' to draw 2 random integers between 1 and 6 so both players can verify the result."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T12:37:16.468Z","isFirstParty":false,"canonicalSlug":"swogeagentic-fair-draw-a0a299d3"}