skills$openclaw/the-flip
maurodelazeri236

by maurodelazeri

the-flip – OpenClaw Skill

the-flip is an OpenClaw Skills integration for coding workflows. $1 USDC entry. 14 coin flips. Get all 14 right, take the entire jackpot. Live on Solana devnet — continuous game, enter anytime.

236 stars961 forksSecurity L1
Updated Feb 7, 2026Created Feb 7, 2026coding

Skill Snapshot

namethe-flip
description$1 USDC entry. 14 coin flips. Get all 14 right, take the entire jackpot. Live on Solana devnet — continuous game, enter anytime. OpenClaw Skills integration.
ownermaurodelazeri
repositorymaurodelazeri/the-flip
languageMarkdown
licenseMIT
topics
securityL1
installopenclaw add @maurodelazeri/the-flip
last updatedFeb 7, 2026

Maintainer

maurodelazeri

maurodelazeri

Maintains the-flip in the OpenClaw Skills directory.

View GitHub profile
File Explorer
14 files
.
scripts
lib
solana.js
3.4 KB
state.js
1.6 KB
cron-check.js
3.2 KB
enter.js
2.4 KB
flip.js
2.2 KB
settle.js
2.4 KB
setup.js
1.8 KB
status.js
1.2 KB
_meta.json
453 B
package-lock.json
37.0 KB
package.json
503 B
SKILL.md
3.3 KB
SKILL.md

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.


Commands

1. Check game status

node app/demo.mjs status

Returns: jackpot amount, global flip count, total entries, recent flip results.

2. Enter the game

node app/demo.mjs enter HHTHHTTHHTHHTH
# Or with a specific wallet:
node app/demo.mjs enter HHTHHTTHHTHHTH ~/.config/solana/id.json
  • Predictions: exactly 14 characters, each H (heads) or T (tails)
  • Cost: 1 USDC
  • Your ticket starts at the current global flip number

3. Check your ticket

node app/demo.mjs ticket YOUR_WALLET_ADDRESS
# Or with a specific start flip:
node app/demo.mjs ticket YOUR_WALLET_ADDRESS 42

Returns: your predictions, results so far, status (ALIVE/ELIMINATED/WINNER).

4. Claim jackpot (if you got 14/14)

node app/demo.mjs claim YOUR_WALLET_ADDRESS START_FLIP

Only works if all 14 predictions match the flip results.

5. Advance the game (anyone can do this)

node app/demo.mjs flip

Executes the next coin flip. Permissionless — anyone can call.


API (for agents)

Base URL: https://the-flip.vercel.app

GET /api/game

{
  "phase": "active",
  "jackpot": 5.25,
  "globalFlip": 42,
  "totalEntries": 100,
  "totalWins": 2,
  "recentFlips": ["H", "T", "H", "H", "T", ...]
}

GET /api/ticket?wallet=ADDRESS&startFlip=42

{
  "found": true,
  "status": "ALIVE",
  "score": 5,
  "predictions": ["H", "T", "H", ...],
  "flips": [
    {"index": 0, "predicted": "H", "actual": "H", "match": true, "revealed": true},
    ...
  ]
}

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 fee1 USDC (devnet)
Predictions14 characters — H or T
FlipsContinuous — permissionless, anyone can call
Jackpot99% of all entries. Winner takes all. Pool resets after win.
Odds1 in 16,384 per entry
Program7rSMKhD3ve2NcR4qdYK5xcbMHfGtEjTgoKCS5Mgx9ECX
USDC Mint4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU
NetworkSolana devnet
VaultPDA — no private key, can't be rugged
Dashboardthe-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).

README.md

No README available.

Permissions & Security

Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.

Requirements

  • OpenClaw CLI installed and configured.
  • Language: Markdown
  • License: MIT
  • Topics:

FAQ

How do I install the-flip?

Run openclaw add @maurodelazeri/the-flip in your terminal. This installs the-flip into your OpenClaw Skills catalog.

Does this skill run locally or in the cloud?

OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.

Where can I verify the source code?

The source repository is available at https://github.com/openclaw/skills/tree/main/skills/maurodelazeri/the-flip. Review commits and README documentation before installing.