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.
- License 许可
- MIT
- 最近更新
- 2026-08-23
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- the-flip
- metadata
- { "openclaw": { "emoji": "?", "homepage": "https://github.com/maurodelazeri/the-flip-publish", "requires": { "bins": [ "node" ] } } }
- description
- $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.
02 资源文件 14
- 参考文档_meta.json629 B
- 其他Anchor.toml321 B
- 脚本app/demo.mjs16.2 KB
- 其他Cargo.toml212 B
- 参考文档idl/the_flip.json12.1 KB
- 参考文档package-lock.json88.9 KB
- 参考文档package.json554 B
- 其他program/Cargo.toml581 B
- 脚本program/src/lib.rs15.0 KB
- 其他program/Xargo.toml62 B
- 参考文档README.md12.3 KB
- 其他rust-toolchain.toml86 B
- 脚本tests/the_flip.ts15.5 KB
- 参考文档tsconfig.json268 B
03 SKILL.md 正文
? 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
node app/demo.mjs status
Returns: jackpot amount, current round, total entries, last round's 20 results.
2. Enter the game
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
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)
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)
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
{
"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
{
"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)
# 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 |
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).
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
git-summary
Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.
agent-constitution
Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.