fomo3d
Play Fomo3D and Slot Machine on BNB Chain (BSC). Fomo3D is a blockchain game where players buy shares using tokens — the last buyer before the countdown ends wins the grand prize. Includes a Slot Machine mini-game with VRF-powered random spins. This skill provides a CLI to check game status, purchase shares, claim dividends, spin the slot machine, and more.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/erenvance/fomo3dFomo3D — BNB Chain Blockchain Game
Fomo3D is a decentralized game on BNB Chain (BSC) with two game modes:
-
Fomo3D Main Game — Buy shares with tokens. Each purchase resets a countdown timer. The last buyer when the timer hits zero wins the grand prize pool. All shareholders earn dividends from each purchase.
-
Slot Machine — Bet tokens for a VRF-powered random spin. Matching symbols win multiplied payouts (up to 100x). Depositors earn dividend shares from every spin.
Installation and Config (required)
Ensure dependencies are installed at repo root (npm install).
A private key is required. If the user has not configured the skill yet, run fomo3d setup from the repo root. This runs an interactive CLI that prompts for:
- BSC private key (for signing transactions)
- Network (testnet or mainnet)
- Optional custom RPC URL
Alternatively, set environment variables (no setup needed):
FOMO3D_PRIVATE_KEY— BSC wallet private key (hex, with or without 0x prefix)FOMO3D_NETWORK—testnetormainnet(default: testnet)FOMO3D_RPC_URL— custom RPC endpoint (optional)
Important: The wallet must be an EOA (externally owned account), not a smart contract wallet. The game contracts require msg.sender == tx.origin.
How to run (CLI)
Run from the repo root (where package.json lives). For machine-readable output, always append --json. The CLI prints JSON to stdout in --json mode.
fomo3d <command> [options] --json
On error the CLI prints {"success":false,"error":"message"} to stdout and exits with code 1. On success the CLI prints {"success":true,"data":{...}}.
Important Concepts
Token Amounts
All token amounts in CLI arguments and JSON output are in wei (18 decimals). For example:
- 1 token =
1000000000000000000(1e18) - 0.5 tokens =
500000000000000000(5e17)
When displaying amounts to users, divide by 1e18 for human-readable values.
Share Amounts
Share amounts for purchase --shares are integers (not wei). 1 share = 1 share.
Auto-Approve
The CLI automatically checks ERC20 token allowance and approves if needed before purchase, buy, sell, slot spin, and slot deposit. No manual approval step required.
FOMO Token Trading
The FOMO token is launched on the FLAP platform (BNB Chain bonding curve). Trading uses the FlapSkill contract (0x03a9aeeb4f6e64d425126164f7262c2a754b3ff9) which auto-routes:
- 内盘 (Portal): When the token is still on the bonding curve
- 外盘 (PancakeSwap V2/V3): After the token graduates to DEX
All trading uses USDT as the quote token. Buy/sell commands are only available on mainnet.
VRF (Verifiable Random Function)
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-erenvance-fomo3d": {
"enabled": true,
"auto_update": true
}
}
}