{"uid":"cap_7uQADK5GlYjw-qvo2sFdd","slug":"flipr-x402-fly-dev-c5c484c5","name":"Flipr Coin Flip (x402)","description":"Flip a coin on Flipr.bet — agent pays USDC, gets on-chain flip result","url":"https://flipr-x402.fly.dev/x402/flip","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"ref":{"type":"string","description":"Optional referral code (e.g. flipr-abc123)."}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"result":"heads","streak":3,"txHash":"0xabc...","wallet":"0x...","agentId":"my-bot-v1","requestId":"12345"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.853","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.853/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"1.3162","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"1.3162","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_jYU4DYvt-Gzf1Wtk0Fnq-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"1.3162","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Executes a single on-chain coin flip on Flipr.bet, deducting ~$1.09 USDC via x402 payment and returning the blockchain-verified result","exampleAgentPrompt":"Go flip a coin on Flipr.bet for me — pay the ~$1.09 USDC fee and tell me if it lands heads or tails, along with the on-chain result.","exampleUseCases":null,"resultDescription":"Returns the outcome of the coin flip (heads or tails) along with on-chain transaction details confirming the result, after deducting ~$1.09 USDC via x402 payment protocol.","failureModes":["Insufficient USDC balance — payment rejected by x402 facilitator","x402 payment header missing or malformed — 402 response with payment requirements","On-chain transaction failure — network congestion or gas issues","Service unavailable — fly.dev deployment down","Invalid request body — missing required flip parameters"],"whenToPreferThis":"Use this endpoint when you need a provably fair, on-chain coin flip result backed by a real USDC micropayment. Prefer this over off-chain random number generators when the result needs to be verifiable on-chain or when operating within an x402-enabled payment flow.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:33:48.447Z","isFirstParty":false}