微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🎰

链上抛币博彩,全胜赢大奖

The Flip Publish · v2.0.1
专业技能 安全 B 级 作者 maurodelazeri 公开目录收录
2.6k 下载 0 安装 7k 收藏 16 浏览

简介

Solana devnet上的去中心化博彩游戏,1 USDC参与14次连续抛硬币预测,全胜赢取奖池,链上透明但处于测试网阶段。

原始描述

$$1 USDC entry. 14 coin flips. Get all 14 right, take the entire jackpot. Live on Solana devnet — continuous game, enter anytime.

通过你的 Agent 添加

安装目录:the-flip/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/the-flip-publish/
Codex CLI~/.codex/skills/the-flip-publish/
DeepSeek Harness~/.agents/skills/the-flip-publish/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: the-flip description: "$1 USDC entry. 14 coin flips. Get all 14 right, take the entire jackpot. Live on Solana devnet — continuous game, enter anytime." metadata: openclaw: emoji: "🎰" homepage: "https://github.com/maurodelazeri/the-flip-publish" requires: bins: ["node"]

🎰 THE FLIP

$1 USDC. 14 coin flips. Get all 14 right → take the entire jackpot.

No rounds. No entry windows. The game never stops. Enter anytime, and your ticket rides the next 14 global flips. Winner takes the entire pot.


Play

clawhub install the-flip
cd the-flip && npm install
node app/demo.mjs enter HHTHHTTHHTHHTH ~/.config/solana/id.json

Setup

If you don't have a Solana wallet yet:

# 1. Install Solana CLI
sh -c "$(curl -sSfL https://release.anza.xyz/stable/install)"
export PATH="$HOME/.local/share/solana/install/active_release/bin:$PATH"

# 2. Create wallet + set devnet
solana-keygen new --no-bip39-passphrase
solana config set --url devnet

# 3. Get SOL for tx fees
solana airdrop 1 --url devnet

# 4. Get devnet USDC — pick one:
#    Option A: https://faucet.circle.com → Solana → Devnet → paste your address
#    Option B: Post your wallet on our Moltbook thread and we'll send 1 USDC

# 5. Play
node app/demo.mjs enter HHTHHTTHHTHHTH

Check Results

node app/demo.mjs status                           # game state + jackpot
node app/demo.mjs ticket YOUR_WALLET_ADDR          # your ticket
node app/demo.mjs claim YOUR_WALLET_ADDR START_FLIP  # claim jackpot (if 14/14)

Quick Reference

Entry fee 1 USDC (devnet)
Predictions 14 characters — H or T
Flips Continuous — permissionless, anyone can call
Jackpot 99% of all entries. Winner takes all. Pool resets after win.
Odds 1 in 16,384 per entry
Program 7rSMKhD3ve2NcR4qdYK5xcbMHfGtEjTgoKCS5Mgx9ECX
USDC Mint 4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU
Network Solana devnet
Vault PDA — no private key, can't be rugged
Dashboard the-flip-interface
API /api/game (game state), /api/ticket?wallet=X&startFlip=Y (ticket lookup)

Strategy

  • Every sequence has equal odds — HHHHHHHHHHHHHH is just as likely as any random string
  • Winner takes the entire jackpot — no splitting with other winners
  • 1 in 16,384 odds per entry

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). Protocol solvency is mathematically guaranteed.

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

solanagamblingdefidevnetblockchain-gamingsmart-contractusdc

同类 Skill