{"uid":"cap_3ieAlVx0qT1N9mErAgeMC","slug":"verifiable-random-dice-x402atlas-ea3a6294","name":"Verifiable Random Dice (x402atlas)","description":"Verifiable Random dice — unbiased dice rolls bound to a future drand round the server waits for (typically 3-6s) and verifies locally, with a reproducible proof transcript.","url":"https://verifiable-random.use.x402atlas.com/dice?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"count":{"type":"integer","maximum":1000,"minimum":1,"description":"Number of independent dice to roll."},"sides":{"type":"integer","maximum":1000000000,"minimum":2,"description":"Number of equally likely faces on each die; returned values range from 1 through sides."},"client_seed":{"type":"string","default":"","maxLength":256,"description":"Optional public domain-separation label, not secret entropy."},"target_round":{"type":"integer","default":0,"minimum":0,"description":"0 asks the server to choose the next safe unpublished round; a positive value makes a client_fixed commitment and must still be safely in the future."},"algorithm_version":{"enum":["drand-hkdf-sha256-v1"],"type":"string","default":"drand-hkdf-sha256-v1","description":"Optional version guard; when supplied it must match the server's pinned derivation algorithm."}}},"responseSchema":{"type":"json","example":{"beacon":{"round":1,"scheme":"bls-unchained-g1-rfc9380","network":"quicknet","signature":"b55e7cb2d5c613ee0b2e28d6750aabbb78c39dcc96bd9d38c2c2e12198df95571de8e8e402a0cc48871c7089a2b3af4b","chain_hash":"52db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e971","randomness":"1466a6cd24e327188770752f6134001c64d6efcc590ccc26b721611ad96f165a","scheduled_time":"2023-08-23T15:09:27Z"},"result":{"total":44,"values":[14,19,11],"maximum":19,"minimum":11},"operation":"dice","example_only":true,"processed_at":"2023-08-23T15:09:27Z","request_hash":"b204a373d565d666efc9c4f9d522878082c35a8eb654d5da470bc2360aaaa374","target_round":1,"selection_mode":"example_only","algorithm_version":"drand-hkdf-sha256-v1"}},"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_J39UipUQYg-FuVfv-lL8I","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":"Rolls one or more dice with cryptographically verifiable randomness sourced from a future drand beacon round, returning results with a reproducible proof transcript.","exampleAgentPrompt":"Roll 2 six-sided dice for me using verifiable randomness — I need a proof transcript I can check myself so I know the result wasn't rigged.","exampleUseCases":[{"title":"Provably fair tabletop game roll","prompt":"Roll 3 six-sided dice for our online board game session — I need the result to come with a cryptographic proof so all players can independently verify it wasn't manipulated."},{"title":"Auditable dice roll for a lottery draw","prompt":"Roll a single 20-sided die for our weekly prize draw and give me a full proof transcript tied to a future drand round so participants can confirm it was unbiased."},{"title":"Fair random outcome for a smart contract event","prompt":"Generate a verified dice roll — 4 dice with 8 sides each — with a drand beacon proof I can attach to our on-chain record as evidence the result was random and unmanipulated."}],"resultDescription":"Returns the numeric results of each die roll along with the drand round number used, the randomness beacon value, and a reproducible proof transcript that allows anyone to independently verify the rolls were derived fairly from a publicly committed future entropy source.","failureModes":["drand round fetch timeout — if the beacon network is slow, the 3-6s wait may exceed limits","invalid dice configuration (e.g. zero sides, negative count) returns a 400 error","payment not included or insufficient USDC causes a 402 payment required response","drand verification failure if local proof check detects a mismatch"],"whenToPreferThis":"Choose this endpoint when you need dice rolls that are provably unbiased and auditable by third parties — specifically when participants must be able to independently verify the randomness source after the fact. It is preferable over simple pseudo-random generators for games, lotteries, or smart contract use cases where trust and transparency are required. The drand-binding approach means no party — including the server — can predict or manipulate the outcome before the round is committed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:37:13.813Z","isFirstParty":false,"canonicalSlug":"verifiable-random-dice-x402atlas-ea3a6294"}