{"uid":"cap_gAIi78amaJlW8N567dNPg","slug":"coinflip402-on-chain-coin-flip-35038ac0","name":"CoinFlip402 - On-Chain Coin Flip","description":"Flip a coin for a small USDC payment on Base mainnet. Returns heads or tails.","url":"https://coinflip402.vercel.app/api/coinflip","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"},"pathParams":{"type":"object"},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"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_zPUQZgK2LIBKk5hiASQmg","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":"Flips a coin (returns heads or tails) for a small USDC micropayment on Base mainnet via the x402 payment protocol.","exampleAgentPrompt":"Flip a coin for me — I need a random heads or tails result and I'm okay paying the tiny $0.001 USDC fee on Base.","exampleUseCases":null,"resultDescription":"Returns a coin flip outcome — either 'heads' or 'tails' — after processing a $0.001 USDC micropayment on Base mainnet via the x402 protocol.","failureModes":["Payment authorization missing or invalid — x402 payment header not provided or insufficient USDC balance","Insufficient USDC allowance on Base mainnet — transaction fails if wallet lacks funds","Network error or Base mainnet congestion — payment or result may time out","Invalid request method — only GET is supported"],"whenToPreferThis":"Use this endpoint when an agent or user needs a trustless, verifiable random binary (heads/tails) outcome backed by a blockchain micropayment, or when demonstrating x402 pay-per-call API patterns on Base mainnet. Prefer over free coin-flip APIs when provable randomness or micropayment integration is desired.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:39:19.641Z","isFirstParty":false}