{"uid":"cap_MX6t_xUIOM8kLt658yzou","slug":"flipr-coin-flip-x402-testnet-792e8d14","name":"Flipr Coin Flip (x402 Testnet)","description":"Flip a coin on Flipr.bet — agent pays USDC, gets on-chain flip result","url":"https://flipr-x402-testnet.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":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"1.2854","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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":"$1.2854/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"1.2854","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"1.2854","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_zRuBF4x1-zh_Ls1dKLzcO","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"1.2854","costPer":"request","priority":0,"asset":"0x036CbD53842c5426634e7929541eC2318f3dCF7e","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Executes an on-chain coin flip on Flipr.bet, charged per flip in USDC via the x402 payment protocol, and returns the blockchain-verified flip result.","exampleAgentPrompt":"Flip a coin on Flipr.bet for me — pay the USDC cost from my wallet and tell me whether it landed heads or tails.","exampleUseCases":[{"title":"Agent-driven crypto coin flip bet","prompt":"Flip a coin on Flipr.bet right now — use my USDC balance to pay for it and report back the on-chain result."},{"title":"Referral-code coin flip","prompt":"Do a Flipr.bet coin flip for me using referral code flipr-xyz99, and let me know how it landed."},{"title":"Automated random on-chain decision","prompt":"I need an unbiased on-chain coin flip to decide something — run one on Flipr.bet and pay the USDC fee automatically."}],"resultDescription":"The agent receives the on-chain coin flip outcome (e.g. heads or tails) along with blockchain verification details, after the USDC payment of ~$1.29 is processed via the x402 protocol.","failureModes":["Insufficient USDC balance — payment fails and flip is not executed","x402 payment protocol error — network or facilitator issue prevents charge","Invalid referral code — request may be rejected or referral not applied","Blockchain congestion or RPC error — on-chain flip transaction fails to confirm","Testnet instability — Fly.dev host may be unreachable or return 5xx errors"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to execute a provably fair, blockchain-verified coin flip paid in USDC via the x402 protocol. It is ideal for automated agents with a crypto wallet that need on-chain randomness or want to participate in Flipr.bet's coin flip game programmatically. Prefer this over off-chain RNG when verifiability and on-chain settlement are required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:38:31.452Z","isFirstParty":false}