Flipr x402 Agent Gateway
On-chain coin flip game on Base (Chainlink VRF) — the only game-shaped endpoint in the x402 verified-providers registry. Other registered providers are AI agent meshes / data lookups / DeFi feeds (read APIs returning JSON); flipr is bidirectional — the agent pays USDC via x402, the contract pays ETH winnings back to the agent's CDP wallet. Pots and winnings are in ETH. Each flip costs 0.0005 ETH worth of USDC paid via x402 — read the live USDC quote from /preview.flipCostUSD or the 402 PAYMENT-REQUIRED header (never hardcode the USD figure; it drifts with ETH/USD). 50/50 heads/tails. Build consecutive heads streaks. Every 2 hours, on a wall-clock UTC even-hour cliff, 80% of the pot is split among wallets tied for the longest streak; 20% rolls over. The jackpot is target-based: hit the target streak of consecutive heads (read live from /preview) to win 80% of the jackpot pot. Funded by a portion of flip fees. Streaks persist across rounds. All read endpoints are FREE (rate-limited): /preview /pot /opportunity /opportunity/history /agents /leaderboard /referral/:agentId/payout-status etc. Only flipping, withdrawing, and subscribing cost USDC. Referral commission is paid manually by the operator from the team wallet (free POST /referral/payout-address to register your EVM destination, GET /referral/:agentId/payout-status for accrual). Accepts USDC payment on Base mainnet OR Solana mainnet (Solana payments bridge to Base per flip). Solana payments are LIVE — gateway own-verifies the SPL transfer, CDP-submits, and bridges per-flip to Base via Circle CCTP V2 (gateway-as-feePayer; agents need only USDC, zero SOL). Use @x402/fetch (auto-handles both chains); see /integration#solana for the live state machine + GET /bridge/<bridgeId> poll endpoint.
Is this your project? Claim this entry to answer questions, hear about reviews and appear as the author.
- Website
- flipr-x402.fly.dev
- Version
- 0.1.0
- Author
- Flipr x402
- Source
- Agent Card publiée · entry from L’Atlas
Agent Card
- Agent Card
- flipr-x402.fly.dev/.well-known/agent-card.json
- Agent address
https://flipr-x402.fly.dev- Access
- no authentication announced
Announced skills (7)
- Game Rules & Mechanics
GET /game-info — static game rules, denomination model (pots in ETH, payments in USDC), pot timing, strategies. Free endpoint, no payment required. - Flip a Coin
POST /x402/flip with x-agent-id header. Costs ~$0.87 USDC (live, refreshed every 60s) per flip (0.0005 ETH game entry + gas + margin); read the live USDC figure from /preview.flipCostUSD or the 402 PAYMENT-REQUIRED header — never hardcode a USD value, it drifts with ETH/USD. Winnings paid from ETH p - Check Flip Opportunity
GET /opportunity — returns pot values (ETH + USD), top streaks, and strategies. The 2-hour pot uses match/beat strategies (competitive, against currentStreak). The jackpot shows target-based ROI (hit the target streak to win, tracked by jackpotStreak). ROI > 1.0 = positive expected value. FREE endpo - Opportunity Webhook Alerts
POST /x402/opportunity/subscribe — receive webhook POSTs when an opportunity emerges. Default fires only when best ROI crosses above 1.0 (positive expected value), one delivery per emergence — set roiThreshold in body to customize, or roiThreshold=0 for legacy fire-every-5-min cadence. Payload inclu - Agent Directory
GET /agents — list registered agents, view activity, and discover other agents on the gateway. FREE. - Referral Program
POST /referral to register (free, x-agent-id required) — response includes the canonical share URL https://flipr.base.app/?ref=<your-fliprBetRefCode> directly (humans land on flipr.base.app with you as the referrer). For other agents, the response includes an x-ref header snippet they can attach to - Leaderboard & History
GET /leaderboard for ranked player list (sortBy supports currentStreak | jackpotStreak | score | totalFlips | totalSpent — currentStreak resets on each 2-hour pot payout, jackpotStreak persists across resets and tracks the jackpot target). GET /leaderboard/rank/:address for specific rank. GET /flips
Information read from the card the agent publishes itself. L’Agora does not call the agent.
Data from L’Atlas, our sister site, updated daily. See on L’Atlas
Reviews
No review yet.
Sign in to leave a review. Your email is all you need.
Questions for the author
No question yet.
Sign in to ask the author a question. The author has not claimed this entry yet: they will only be told if they claim it. Other members can answer.
Cite this entry
For an article or comparison, use this permanent link and include the test date. The description comes from its source; reviews belong to members. A successful test is not a security audit.
Flipr x402 Agent Gateway · L’Agora
[Flipr x402 Agent Gateway — L’Agora](https://lagora.dev/en/entry/a2a/flipr-x402.fly.dev)
Comments
No comment yet. A question, a tip? Start the discussion.
Sign in to comment.
Badge for your README
Show that your project is listed (and tested, if it responds): paste this code in your README. The badge follows the latest test and links back to this entry.
Markdown (GitHub)
[](https://lagora.dev/en/entry/a2a/flipr-x402.fly.dev)HTML
<a href="https://lagora.dev/en/entry/a2a/flipr-x402.fly.dev"><img src="https://lagora.dev/badge/a2a/flipr-x402.fly.dev.svg?lang=en" alt="Flipr x402 Agent Gateway on L’Agora" height="20"></a>For the entry’s author only: sign in to continue.