{"uid":"cap_RW9UCeSSG5TpGpfSuH-DT","slug":"provably-fair-random-winner-picker-9d296aa5","name":"Provably-Fair Random Winner Picker","description":"Provably-fair winner selection from a comma-separated list. ?candidates=a,b,c&round=1&client_seed=s&nonce=1","url":"https://pyfile-agent.taile3ff35.ts.net/data/fair/pick","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{}}}},"output":{"type":"object","properties":{"commit":{"type":"string"},"verify":{"type":"string"},"winner":{"type":"string"},"round_id":{"type":"string"},"winner_index":{"type":"integer"},"candidates_count":{"type":"integer"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ny0rV3_61bh1BaMFt-R55","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Selects a verifiably fair random winner from a comma-separated list of candidates using a seeded, auditable algorithm","exampleAgentPrompt":"Pick a provably fair winner from these candidates: Alice, Bob, Carol, Dave — use round 1, client seed 'myseed42', and nonce 1, so I can verify the result wasn't tampered with.","exampleUseCases":[{"title":"Transparent giveaway winner selection","prompt":"I'm running a Twitter giveaway with these 5 entrants: @alice, @bob, @carol, @dave, @eve — pick a provably fair winner for round 1 using client seed 'giveaway2024' and nonce 1 so my followers can verify it was random."},{"title":"Fair team-split random assignment","prompt":"We have 6 players — Jordan, Sam, Taylor, Morgan, Riley, Casey — can you randomly pick one for the red team using a verifiable fair draw, round 1, seed 'teamdraft' and nonce 1?"},{"title":"Auditable raffle draw for NFT drop","prompt":"Run a provably fair raffle pick from this list of wallet addresses: 0xAAA,0xBBB,0xCCC,0xDDD — use round 2, client seed 'nftdrop', nonce 3, and give me the commit hash so winners can audit the result."}],"resultDescription":"Returns a JSON object containing the selected winner's name, their zero-based index in the candidate list, the total number of candidates, a unique round ID, a cryptographic commit hash, and a verification string that allows independent parties to confirm the result was not manipulated.","failureModes":["Missing candidates parameter returns an error","Empty or malformed candidate list fails validation","Missing required parameters (round, client_seed, nonce) may produce an error or default behavior","Payment failure (402) if x402 payment is not provided","Network timeout if the Tailscale node is unreachable"],"whenToPreferThis":"Choose this endpoint when you need auditable, tamper-evident random selection — e.g. giveaways, raffles, lotteries, or any scenario where participants must be able to independently verify the winner was chosen fairly. The commit-reveal scheme and client seed distinguish it from simple random number generators that offer no verifiability.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T13:03:12.095Z","isFirstParty":false}