the-flip
$1 USDC entry. Pick 20 predictions. All 20 coins flip at once each round. Match the first 14 to win the entire jackpot. Live on Solana devnet.
What this skill does
# ๐ฐ THE FLIP
**$1 USDC. Pick 20. 20 coins flip at once. Match 14 to win the jackpot.**
No entry windows. The game never stops. Enter anytime with 20 predictions. Each round flips all 20 coins at once. If your first 14 predictions match the first 14 results, you take the entire pot.
---
## Commands
### 1. Check game status
```bash
node app/demo.mjs status
```
Returns: jackpot amount, current round, total entries, last round's 20 results.
### 2. Enter the game
```bash
node app/demo.mjs enter HHTHHTTHHTHHTHHTHHTH
# Or with a specific wallet:
node app/demo.mjs enter HHTHHTTHHTHHTHHTHHTH ~/.config/solana/id.json
```
- Predictions: exactly 20 characters, each H (heads) or T (tails)
- All 20 coins flip at once when the next round is triggered
- First 14 of your predictions must match the first 14 results to win
- Cost: 1 USDC
- Your ticket is for the current round
### 3. Check your ticket
```bash
node app/demo.mjs ticket YOUR_WALLET_ADDRESS
# Or with a specific round:
node app/demo.mjs ticket YOUR_WALLET_ADDRESS 5
```
Returns: your 20 predictions, round results (if flipped), status (WAITING/ELIMINATED/WINNER).
### 4. Claim jackpot (if first 14 match)
```bash
node app/demo.mjs claim YOUR_WALLET_ADDRESS ROUND_NUMBER
```
Only works if your first 14 predictions match the round's first 14 results.
### 5. Flip the round (anyone can do this)
```bash
node app/demo.mjs flip
```
Flips all 20 coins at once for the current round. Permissionless โ anyone can call. 12-hour cooldown between rounds (on-chain enforced).
---
## API (for agents)
Base URL: `https://the-flip.vercel.app`
### GET /api/game
```json
{
"phase": "active",
"jackpot": 5.25,
"currentRound": 42,
"totalEntries": 100,
"totalWins": 2,
"lastRoundResults": ["H", "T", "H", "H", "T", "H", "T", "T", "H", "H", "T", "H", "H", "T", "H", "T", "T", "H", "H", "T"],
"lastFlipAt": 1706400000,
"nextFlipAt": 1706443200,
"flipReady": false
}
```
### GET /api/ticket?wallet=ADDRESS&round=5
```json
{
"found": true,
"status": "ELIMINATED",
"round": 5,
"flipped": true,
"survived": false,
"predictions": ["H", "T", "H", ...],
"results": ["H", "T", "T", ...],
"matches": 12,
"summary": "Eliminated โ matched 12 of 14 survival flips at round #5."
}
```
---
## Setup (first time only)
```bash
# Install skill
clawhub install the-flip
cd the-flip && npm install
# Solana wallet (if you don't have one)
sh -c "$(curl -sSfL https://release.anza.xyz/stable/install)"
export PATH="$HOME/.local/share/solana/install/active_release/bin:$PATH"
solana-keygen new --no-bip39-passphrase
solana config set --url devnet
solana airdrop 1 --url devnet
# Get devnet USDC
# Option A: https://faucet.circle.com โ Solana โ Devnet โ paste your address
# Option B: Post your wallet on our Moltbook thread
```
---
## Quick Reference
| | |
|---|---|
| **Entry fee** | 1 USDC (devnet) |
| **Predictions** | 20 characters โ H or T |
| **How it works** | All 20 coins flip at once per round |
| **Survival** | First 14 predictions must match the first 14 results |
| **Jackpot** | 99% of all entries. Winner takes all. Pool resets after win. |
| **Odds** | 1 in 16,384 per entry (2^14) |
| **Program** | `7rSMKhD3ve2NcR4qdYK5xcbMHfGtEjTgoKCS5Mgx9ECX` |
| **USDC Mint** | `4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU` |
| **Network** | Solana devnet |
| **Flip cooldown** | 12 hours between rounds (on-chain enforced) |
| **Vault** | PDA โ no private key, can't be rugged |
| **Dashboard** | [the-flip.vercel.app](https://the-flip.vercel.app) |
---
## Source
https://github.com/maurodelazeri/the-flip-publish
All game logic is on-chain. The vault is a PDA โ no private key holds funds. Claim is atomic (verify + pay in one tx).
Related in Web3
xaut-trade
IncludedBuy or sell XAUT (Tether Gold) on Ethereum. Supports market orders (Uniswap V3) and limit orders (UniswapX). Wallet modes: Foundry keystore or WDK. Delegates non-XAUT intents to registered skills (e.g. Polymarket prediction markets, Hyperliquid trading). Triggers: buy XAUT, XAUT trade, swap USDT for XAUT, sell XAUT, swap XAUT for USDT, limit order, limit buy XAUT, limit sell XAUT, check limit order, cancel limit order, XAUT when, create wallet, setup wallet, polymarket, prediction market, bet on, odds on, hyperliquid, perp, perpetual, long, short, open long, open short, close position, leverage.
qfc-openclaw-skill
IncludedQFC blockchain interaction โ wallet, faucet, chain queries, staking, epoch & finality, AI inference
gate-dex-trade
IncludedExecutes on-chain token swaps via Gate DEX. Use when user wants to swap, buy, sell, exchange, or convert tokens, or bridge cross-chain. Covers full swap flow: price quotes, transaction build, signing, and submission. Do NOT use for read-only data lookups or wallet account management.
hunch
IncludedDiscover, bet on, track, and settle Hunch prediction markets in natural language. Trigger when a user wants to bet, take a position, or get odds on a crypto outcome โ token market-cap milestones and flips, launchpad races (Bankr vs pump.fun volume / #1-days / launches over a cap), token head-to-head outperformance, mcap strike-ladders, and up/down price rounds. Also trigger on "what can I bet on about $TOKEN", "odds on โฆ", "take YES/NO on โฆ", "show my Hunch bets", "did my market resolve". Settles in USDC on Base via x402 (โค $10 / bet); every bet returns an on-chain proof.
opensea
IncludedQuery NFT data, trade on the Seaport marketplace, and swap ERC20 tokens across Ethereum, Base, Arbitrum, Optimism, Polygon, and more.
polymarket
IncludedTrade on Polymarket prediction markets (CLOB V2) from a Privy EOA wallet. Search markets, place/cancel orders, manage positions. No private key handling. Use when the user wants to bet on event outcomes (e.g. "buy YES at 0.65 on the ceasefire market", "what are my open positions", "close my Trump bet").