{"uid":"cap_iYHuqQBmz7SMb1Qkfcb87","slug":"almanac-locomot-verifiable-random-draw-api-3912c845","name":"Almanac Locomot Verifiable Random Draw API","description":"Provably-fair draw from the drand beacon with the full verifiable receipt + nonce-binding (the free draw is at GET /random).","url":"https://almanac.locomot.io/random/proof","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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"k":{"type":"integer"},"n":{"type":"integer"},"op":{"enum":["int","dice","coin","bytes","uuid","shuffle","sample","choice","pick"],"type":"string","description":"draw type; default int"},"max":{"type":"integer"},"min":{"type":"integer"},"dice":{"type":"string","description":"e.g. 3d6"},"count":{"type":"integer"},"items":{"type":"string","description":"comma list or JSON array"},"nonce":{"type":"string","description":"bind the draw to your context"},"round":{"type":"integer","description":"pin a drand round (reproducible)"},"sides":{"type":"integer"},"weights":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","properties":{"op":{"type":"string"},"draw":{"type":"string"},"nonce":{"type":"string"},"proof":{"type":"object"},"rolls":{"type":"array"},"total":{"type":"integer"},"beacon":{"type":"object"},"engine":{"type":"string"},"notation":{"type":"string"},"deterministic_given_round":{"type":"boolean"}}}}},"responseSchema":null,"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_7KNFMfrylunDVDLyEgosW","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":"Returns a cryptographically verifiable random draw (int, dice, coin, UUID, shuffle, sample, etc.) backed by a drand beacon proof","exampleAgentPrompt":"Roll 3d6 for me and give me the cryptographic proof that the result is fair — use the drand beacon so I can verify it independently.","exampleUseCases":null,"resultDescription":"A JSON object containing the draw result (e.g. rolled values, total, or chosen item), the operation type and notation, an array of individual rolls if applicable, a drand beacon object anchoring the randomness to a public round, a cryptographic proof object for independent verification, the engine used, and a boolean indicating whether the result is deterministic given the round.","failureModes":["Invalid op enum value returns 400 bad request","Dice notation malformed (e.g. bad format like '3x6') returns error","min greater than max returns validation error","items param empty or malformed JSON/CSV causes parse error","Requested drand round does not exist or is too far in the future returns error","Payment not included or insufficient returns 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need provably fair, auditable randomness backed by a public drand beacon — ideal for games, lotteries, giveaways, or any situation where participants must be able to independently verify that the outcome was not manipulated. Prefer this over a plain RNG when verifiability or reproducibility (via round pinning) is required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:31:33.024Z","isFirstParty":false}