{"uid":"cap_lvZYbS_ft1jtToGJANVwU","slug":"saylor-innovations-coin-flip-770ffed7","name":"Saylor Innovations Coin Flip","description":"Coin flip - returns result heads or tails from a cryptographically secure random source, with a fairness flag and the entropy source name","url":"https://saylorinnovations.com/api/fun/coinflip?utm_source=zero.xyz","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"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["result"],"properties":{"fair":{"type":"boolean","description":"Always true: uniform 50/50 outcome"},"result":{"enum":["heads","tails"],"type":"string","description":"Outcome of the flip: heads or tails"},"source":{"type":"string","description":"Random source used (Node crypto)"},"generated_at":{"type":["string","null"],"description":"Time this response was generated (UTC)"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_8hD1ansjVE8k5u857-PKf","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a cryptographically secure random coin flip result (heads or tails) with a fairness flag and entropy source name","exampleAgentPrompt":"Flip a fair coin for me using a cryptographically secure source and tell me whether it's heads or tails.","exampleUseCases":[{"title":"Random tiebreaker between two options","prompt":"I can't decide between two options — flip a cryptographically fair coin and tell me heads or tails so I can use that to break the tie."},{"title":"Game or contest randomization","prompt":"We need a fair coin flip to decide who goes first in our game — give me a provably random heads or tails result right now."},{"title":"Automated workflow random branching","prompt":"My workflow needs a random binary branch point — flip a secure coin and return heads or tails so I can route to the next step."}],"resultDescription":"A JSON object containing: 'result' (enum: 'heads' or 'tails'), 'fair' (boolean, always true confirming 50/50 uniform distribution), 'source' (string naming the entropy source, e.g. 'Node crypto'), and 'generated_at' (UTC timestamp string or null).","failureModes":["HTTP 402 Payment Required if x402 payment header is missing or invalid","Network timeout if the server is unreachable","Unexpected null for generated_at if server clock is unavailable","Invalid JSON response on server-side error"],"whenToPreferThis":"Choose this endpoint when you need a provably fair, cryptographically secure random binary (heads/tails) outcome — not a simple pseudo-random result. It is ideal when verifiability and fairness matter (e.g. disputes, games, auditable workflows) and when you want an explicit confirmation that the source is a CSPRNG. Prefer over rolling your own Math.random() when auditability of the entropy source is required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T19:08:20.455Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-coin-flip-770ffed7"}