THE FLIP:Solana Devnet 大奖预测游戏 - Openclaw Skills
作者:互联网
2026-03-26
什么是 THE FLIP?
THE FLIP 是一款构建在 Solana 测试网上的高额奖金、透明化预测游戏,旨在与 Openclaw Skills 无缝集成。用户只需支付 1 USDC 的入场费,即可提交包含 20 个硬币翻转预测的序列。与使用滚动窗口的传统游戏不同,THE FLIP 在每一轮触发后会同时处理所有 20 枚硬币。该项技能允许开发者和代理直接与游戏的链上逻辑交互,实现程序化入场、状态监控和奖金领取。
THE FLIP 的核心价值在于其去中心化架构。所有游戏逻辑均在链上执行,且大奖池锁定在程序派生地址(PDA)中,确保没有任何私钥可以控制资金。通过利用 Openclaw Skills,用户可以自动化参与这个无需许可的生态系统,任何人都可以在 12 小时冷却时间后触发本轮翻转,使其成为真正的社区驱动型游戏体验。
下载入口:https://github.com/openclaw/skills/tree/main/skills/maurodelazeri/the-flip
安装与下载
1. ClawHub CLI
从源直接安装技能的最快方式。
npx clawhub@latest install the-flip
2. 手动安装
将技能文件夹复制到以下位置之一
全局模式~/.openclaw/skills/
工作区
/skills/
优先级:工作区 > 本地 > 内置
3. 提示词安装
将此提示词复制到 OpenClaw 即可自动安装。
请帮我使用 Clawhub 安装 the-flip。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。
THE FLIP 应用场景
- 通过自动化 CLI 命令参与去中心化大奖游戏。
- 实时监控 Solana 测试网游戏状态和奖池波动。
- 使用 Openclaw Skills 将链上预测机制集成到更广泛的自动化工作流中。
- 在游戏场景中测试 Solana 钱包交互和测试网 USDC 交易。
- 自动化 12 小时的翻转触发,确保游戏在无人工干预的情况下持续运行。
- 用户通过 Solana 测试网提交包含 20 个预测(正面或反面)的序列及 1 USDC 入场费来加入游戏。
- 游戏保持激活状态至少 12 小时,期间持续收集当前轮次的入场申请。
- 12 小时冷却时间过后,任何用户都可以调用 flip 命令触发链上随机生成所有 20 枚硬币的结果。
- 智能合约评估所有选票;如果选票的前 14 个预测与该轮的前 14 个结果匹配,玩家即具备赢取大奖的资格。
- 获胜者执行原子申领交易,验证结果并将大奖从 PDA 保险库转移到其钱包。
THE FLIP 配置指南
要开始通过 Openclaw Skills 使用 THE FLIP,您必须首先安装该技能并配置 Solana 环境:
# 安装技能及依赖项
clawhub install the-flip
cd the-flip && npm install
# 安装 Solana CLI 工具
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
您还需要测试网 USDC,可以通过 Circle 水龙头或社区帖子获取。
THE FLIP 数据架构与分类体系
该技能通过链上状态和结构化 API 响应来管理游戏数据。关键数据点包括:
| 属性 | 描述 |
|---|---|
jackpot |
当前可供获胜者领取的 USDC 总奖池 |
currentRound |
当前接受报名的轮次数字 ID |
predictions |
包含 20 个 'H' 或 'T' 字符的数组或字符串 |
status |
特定选票的状态(等待中、已淘汰或中奖) |
flipReady |
表示 12 小时冷却时间是否已过的布尔值 |
vaultPDA |
持有大奖资金的程序派生地址 |
name: the-flip
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."
metadata:
openclaw:
emoji: "??"
homepage: "https://github.com/maurodelazeri/the-flip-publish"
requires:
bins: ["node"]
?? 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).
相关推荐
专题
+ 收藏
+ 收藏
+ 收藏
+ 收藏
+ 收藏
最新数据
相关文章
Clawtan:策略性龙虾主题棋盘游戏智能体 - Openclaw Skills
Clawland:AI 智能体的 Solana Devnet 链上游戏 - Openclaw Skills
电子游戏:查询折扣、游玩时长及兼容性 - Openclaw Skills
骗子监视:AI 社交博弈与策略游戏 - Openclaw Skills
游戏助手:探索、优化与策略 - Openclaw Skills
Remix Agent Publish:自动部署游戏到 remix.gg - Openclaw Skills
GamifyHost: AI 竞技场与竞技游戏 - Openclaw Skills
游戏化与 XP 系统:Openclaw Skills 的生产力等级提升
游戏技能:管理游戏收藏与活动 - Openclaw Skills
Claw Brawl: AI 智能体加密货币预测游戏 - Openclaw Skills
AI精选
