Fomo3D — BNB Chain Blockchain Game
Fomo3D is a decentralized game on BNB Chain (BSC) with three game modes:
- 1. 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.
- 2. 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.
- 3. Prediction Market — Bet on the outcome of events (Yes/No/Draw). Markets use either Oracle (Chainlink price feeds) or Optimistic (human proposal + challenge) settlement. Bettors earn dividends from other bets on the same market, and winners share the prize pool.
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) - INLINECODE4 —
testnet or mainnet (default: testnet) - INLINECODE7 — custom RPC endpoint (optional)
- INLINECODE8 — override FLAP token address for buy/sell commands (optional, for testing)
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.
CODEBLOCK0
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, slot deposit, pred bet, pred propose, and pred dispute. No manual approval step required.
FOMO Token Trading
The FOMO token is launched on the FLAP platform (BNB Chain bonding curve). Trading uses BNB as the quote token:
- - 内盘 (Portal): Directly calls FLAP Portal's
swapExactInput with native BNB - 外盘 (PancakeSwap V2): After the token graduates to DEX, uses PancakeSwap V2 Router
The CLI auto-detects the current phase via getTokenV6 and routes accordingly. Buy/sell commands work on both testnet and mainnet.
VRF (Verifiable Random Function)
Slot machine spins use Binance Oracle VRF for provably fair randomness. Each spin requires a small BNB fee (~0.00015 BNB) sent as msg.value. The spin result is determined by a VRF callback (1-3 blocks later) — the CLI returns the spin request transaction, not the result. Check the result with fomo3d slot status or fomo3d player afterward.
Commands Reference
Setup
CODEBLOCK1
Interactive configuration. Prompts for private key, network, and optional RPC URL. Saves to config.json.
Wallet — Check Balances
CODEBLOCK2
Returns BNB balance and game token balance for the configured wallet.
Output fields: address, bnbBalance (wei), tokenBalance (wei), tokenSymbol, INLINECODE37
Status — Game Round Info
CODEBLOCK3
Returns current round status including countdown, prize pools, share price, and last buyers.
Output fields: currentRound, roundStatus (NotStarted/Active/Ended), paused, countdownRemaining (seconds), grandPrizePool (wei), dividendPool (wei), sharePrice (wei), totalShares, lastBuyers (address[]), INLINECODE47
Strategy tip: When countdownRemaining is low, buying shares has higher expected value because you may win the grand prize. Each purchase resets the countdown by a fixed increment.
Player — Player Info
CODEBLOCK4
Returns player's shares, earnings, and pending withdrawals. Without --address, uses the configured wallet.
Output fields: address, shares, totalEarnings (wei), pendingEarnings (wei), pendingWithdrawal (wei), hasExited, INLINECODE56
Decision guide:
- - If
pendingWithdrawal > 0: Must run fomo3d settle before purchasing more shares - If
pendingEarnings > 0 and round is active: Can exit to lock in earnings, or hold for more dividends - If
hasExited == true: Already exited this round, wait for round to end or settle
Purchase — Buy Shares
CODEBLOCK5
Buy shares in the current round. The --shares value is an integer count (not wei). Token cost = shares × sharePrice (auto-calculated).
Pre-checks performed automatically:
- - Game must not be paused
- No pending withdrawal (must
settle first) - Token approval (auto-approved if needed)
Output fields: txHash, blockNumber, status, sharesAmount, tokensCost (wei)
Exit — Exit Game
CODEBLOCK6
Exit the current round and lock in your dividend earnings.
Output fields: txHash, blockNumber, INLINECODE71
Settle — Claim Dividends & Prize
CODEBLOCK7
Settle dividends and claim any grand prize after a round ends. Must be called if pendingEarnings > 0 or pendingWithdrawal > 0.
Output fields: txHash, blockNumber, status, pendingEarnings (wei), pendingWithdrawal (wei)
End Round — End Expired Round
CODEBLOCK8
End a round whose countdown has reached zero. Anyone can call this. The grand prize is distributed to the last buyer.
Output fields: txHash, blockNumber, INLINECODE81
Faucet — Claim Test Tokens (testnet only)
CODEBLOCK9
Claim 10000 test FOMO game tokens on BSC Testnet. Rate limited to 1 claim per address per hour.
Output fields: txHash, amount, token, INLINECODE85
Buy — Buy FOMO with BNB
CODEBLOCK10
Buy FOMO tokens using BNB via the FLAP platform. Auto-detects market phase: Portal (内盘) or PancakeSwap V2 (外盘).
Example: Buy with 0.01 BNB:
CODEBLOCK11
Output fields: txHash, blockNumber, status, bnbSpent (wei), token, INLINECODE91
Note: Buy and sell commands use minOutputAmount=0 (no slippage protection). For large trades, consider splitting into smaller amounts.
Sell — Sell FOMO for BNB
CODEBLOCK12
Sell FOMO tokens for BNB. Two modes:
- -
--amount: Sell exact token amount (in wei, 18 decimals) - INLINECODE94 : Sell by percentage of holdings in basis points (10000=100%, 5000=50%, 1000=10%)
Cannot use both flags simultaneously. Token allowance is auto-approved for Portal/PancakeSwap.
Example: Sell 50% of holdings:
CODEBLOCK13
Output fields: txHash, blockNumber, status, tokensSold (wei), market, INLINECODE100
Token Info — Token Status & Balances
CODEBLOCK14
Query FOMO token status on the FLAP platform and balances. Works without private key (shows token status only). Supports --address flag to check another wallet.
Output fields: token, network, portal, status (Invalid/Tradable/InDuel/Killed/DEX/Staged), phase (内盘/外盘), quoteToken, price (wei), reserve (wei), circulatingSupply (wei), taxRate, progress (wei), fomoBalance (wei), bnbBalance (wei), INLINECODE115
Decision guide:
- -
status == Tradable: Token is on 内盘 (bonding curve), buy/sell via Portal - INLINECODE117 : Token has graduated to 外盘 (PancakeSwap), buy/sell via DEX
- INLINECODE118 : How close to graduation (higher = closer to DEX)
Slot Status — Slot Machine Info
CODEBLOCK15
Returns slot machine configuration, prize pool, and statistics.
Output fields: paused, token, minBet (wei), maxBet (wei), prizePool (wei), totalShares, vrfFee (wei), stats { totalSpins, totalBetAmount, totalWinAmount, totalDividendsDistributed }
Note: maxBet = prizePool / 100 (dynamic). If prize pool is low, max bet is low.
Slot Spin — Spin the Slot Machine
CODEBLOCK16
Spin the slot machine. Requires token balance for the bet AND BNB for VRF fee (~0.00015 BNB).
Constraints:
- - INLINECODE132
- Wallet must have enough BNB for VRF fee
- Cannot spin while a previous spin is pending
Payout table:
| Symbols | Multiplier |
|---|
| 💎💎💎 | 100x |
| 🍒🍒🍒 |
50x |
| 🔔🔔🔔 | 50x |
| 🍋🍋🍋 | 20x |
Output fields: txHash, blockNumber, status, betAmount (wei), vrfFee (wei), INLINECODE138
Important: The spin result is NOT in this response. The VRF callback determines the outcome 1-3 blocks later. Check fomo3d player --json or fomo3d slot status --json afterward.
Slot Cancel — Cancel Timed-Out Spin
CODEBLOCK17
Cancel a spin that timed out waiting for VRF callback. Only needed if VRF fails to respond.
Output fields: txHash, blockNumber, INLINECODE143
Slot Deposit — Deposit to Prize Pool
CODEBLOCK18
Deposit tokens into the slot machine prize pool. WARNING: Deposited tokens are permanently locked. You receive dividend shares in return — each spin distributes 5% of the bet amount to all depositors proportionally.
Output fields: txHash, blockNumber, status, amount (wei)
Slot Claim — Claim Slot Dividends
CODEBLOCK19
Claim accumulated dividends from slot machine deposits.
Output fields: txHash, blockNumber, status, dividends (wei)
Pred Config — Prediction Market Config
CODEBLOCK20
Returns global prediction market configuration.
Output fields: network, diamond, token, minBet (wei), devFeeBps, creatorFeeBps, dividendBps, nextMarketId, totalMarkets, paused, minDuration (seconds)
Pred Market — Market Details
CODEBLOCK21
Returns detailed info for a specific prediction market.
Output fields: marketId, title, creator, status (Active/Closed/Resolved), outcome (Yes/No/Draw, only when Resolved), settlementType (Oracle/Optimistic), drawEnabled, endTime, timeRemaining (seconds), prizePool (wei), totalYesShares (wei), totalNoShares (wei), totalDrawShares (wei), totalShares (wei), totalBets, totalBetAmount (wei), totalDividendsDistributed (wei), INLINECODE180
Decision guide:
- -
status == Active: Market is open for betting - INLINECODE182 : Market ended, waiting for settlement
- INLINECODE183 : Settlement complete, winners can INLINECODE184
- INLINECODE185 : Market has ended, needs settlement
Pred Position — Player Position
CODEBLOCK22
Returns player's position in a specific market. Without --address, uses the configured wallet.
Output fields: marketId, player, yesShares (wei), noShares (wei), drawShares (wei), pendingYesDividends (wei), pendingNoDividends (wei), pendingDrawDividends (wei), estimatedPrizeIfYes (wei), estimatedPrizeIfNo (wei), estimatedPrizeIfDraw (wei), exited, INLINECODE199
Decision guide:
- -
pendingXxxDividends > 0: Accumulated dividends, claim via pred exit or INLINECODE202 - INLINECODE203 : How much you'd win if that side wins (before fees)
- INLINECODE204 : Already exited all sides
- INLINECODE205 : Already claimed settlement
Pred Bet — Place a Bet
CODEBLOCK23
Place a bet on a prediction market. The --side value is yes, no, or draw. Amount is in wei. A portion (dividendBps%) of each bet goes to existing holders as dividends; the rest goes to the prize pool.
Pre-checks performed automatically:
- - Market must be Active (not paused)
- Amount must be >= minBet
- Token approval (auto-approved if needed)
Output fields: txHash, blockNumber, status, marketId, side, amount (wei)
Pred Exit — Exit a Side
CODEBLOCK24
Exit one direction and claim accumulated dividends for that side. Can be called even when the contract is paused (user safety). Dev fee + creator fee are deducted from dividends.
Output fields: txHash, blockNumber, status, marketId, INLINECODE221
Pred Claim — Claim Settlement
CODEBLOCK25
After a market is Resolved, claim your winnings. Winners receive: accumulated dividends + prize pool share. Losers receive: accumulated dividends only. Dev fee + creator fee are deducted.
Output fields: txHash, blockNumber, status, INLINECODE225
Pred Create — Create Optimistic Market
CODEBLOCK26
Create a new prediction market using optimistic oracle settlement. Anyone can create a market.
Parameters:
- -
--title: Market question (max 200 bytes) - INLINECODE227 : Unix timestamp when betting closes
- INLINECODE228 : Bond amount required for proposing/disputing outcome (in wei, min 0.01 FOMO)
- INLINECODE229 : Time window for disputes in seconds (min 600s = 10min, max 604800s = 7 days)
- INLINECODE230 : Include this flag to enable Draw as a third option
Output fields: txHash, blockNumber, status, marketId, title, endTime, bondAmount (wei), challengePeriod (seconds), INLINECODE239
Pred Oracle — Oracle Market Info
CODEBLOCK27
View Chainlink oracle configuration for an Oracle-type market. Shows price feed, strike price, condition, and current price.
Output fields: marketId, feedAddress, feedDescription, feedDecimals, strikePrice, strikePriceFormatted, isAbove, condition, currentPrice, currentPriceFormatted, settlementPrice, INLINECODE251
Pred Optimistic — Optimistic Settlement Status
CODEBLOCK28
View optimistic oracle status for an Optimistic-type market. Shows proposal state, challenge deadline, and available actions.
Output fields: marketId, bondAmount (wei), challengePeriod (seconds), hasProposal, proposer, proposedOutcome, proposalTime, disputed, disputer, challengeDeadline, challengeRemaining (seconds), canFinalize, INLINECODE264
Decision guide:
- -
hasProposal == false: Market needs someone to pred propose an outcome - INLINECODE267 : Proposal is open for challenge via INLINECODE268
- INLINECODE269 : Challenge period passed, call INLINECODE270
- INLINECODE271 : Needs arbiter to INLINECODE272
Pred Settle Oracle — Settle with Oracle
CODEBLOCK29
Settle an Oracle-type market using Chainlink price feed. Permissionless — anyone can call this after market ends.
Output fields: txHash, blockNumber, status, INLINECODE276
Pred Propose — Propose Outcome
CODEBLOCK30
Propose the outcome for an Optimistic-type market. Requires bond (auto-approved from token balance). Bond is returned if proposal is not disputed and is finalized.
Output fields: txHash, blockNumber, status, marketId, outcome, bondAmount (wei)
Pred Dispute — Dispute Proposal
CODEBLOCK31
Challenge a proposed outcome within the challenge period. Requires same bond amount (auto-approved). If you win the dispute, you get your bond back + 50% of proposer's bond.
Output fields: txHash, blockNumber, status, marketId, bondAmount (wei)
Pred Finalize — Finalize Outcome
CODEBLOCK32
Finalize a proposed outcome after the challenge period expires without dispute. Returns the proposer's bond and resolves the market.
Output fields: txHash, blockNumber, status, INLINECODE291
Pred Resolve — Arbiter Resolve Dispute
CODEBLOCK33
Resolve a disputed market. Only the contract owner or designated arbiters can call this. The winner gets their bond back + 50% of loser's bond. The other 50% goes to devAddress.
Parameters:
- -
--outcome: The correct outcome - INLINECODE293 : Include this flag if the proposer was correct (default: disputer wins)
Output fields: txHash, blockNumber, status, marketId, outcome, INLINECODE299
Recommended Workflows
First-Time Setup
- 1.
fomo3d setup — configure wallet and network - INLINECODE301 — verify BNB and token balances
- INLINECODE302 — check game state
Testing on Testnet
Before using real funds on mainnet, test all features on BSC Testnet. You need:
- - tBNB: Get from BNB Chain Faucet (for gas + token trading)
- Test FOMO tokens: Use the built-in faucet command (for game actions)
CODEBLOCK34
Note: Testnet has two separate FOMO tokens:
- - Game token (
0x57e3...5d46): Used by purchase, slot spin, slot deposit. Get via faucet. - FLAP token (
0x32bf...8888): Used by buy/sell on FLAP Portal. Buy with tBNB.
Testing Token Trading — 内盘 (Portal)
The default FOMO token on testnet (0x32bf...8888) is in 内盘 (Portal bonding curve) phase. Test buy/sell with tBNB:
CODEBLOCK35
Testing Token Trading — 外盘 (PancakeSwap)
To test the PancakeSwap DEX path, use FOMO3D_FLAP_TOKEN env var to override the token address with a PancakeSwap-listed testnet token:
CODEBLOCK36
How it works: The CLI auto-detects the market phase via FLAP Portal getTokenV6. If the token is not on FLAP (query fails) or has status DEX (4), it routes to PancakeSwap V2 Router. If status is Tradable (1), it routes to Portal.
Buying FOMO Tokens
- 1.
fomo3d token-info --json — check token status and your BNB balance - INLINECODE317 — buy with 0.01 BNB
- INLINECODE318 — verify FOMO balance
Selling FOMO Tokens
- 1.
fomo3d token-info --json — check FOMO balance - INLINECODE320 — sell 50% of holdings
- Or:
fomo3d sell --amount 1000000000000000000 --json — sell exactly 1 FOMO
Playing Fomo3D
- 1.
fomo3d status --json — check round status and countdown - INLINECODE323 — buy shares (start small)
- INLINECODE324 — check your earnings
- When ready to claim:
fomo3d exit --json then INLINECODE326 - If countdown reaches 0 and you're the last buyer:
fomo3d end-round --json then INLINECODE328
Playing Slot Machine
- 1.
fomo3d slot status --json — check min/max bet and prize pool - INLINECODE330 — spin
- Wait 5-10 seconds for VRF callback
- INLINECODE331 — check if you won
Earning Passive Income (Slot Dividends)
- 1.
fomo3d slot deposit --amount <amount> --json — deposit tokens (permanent) - Periodically check:
fomo3d slot claim --json — claim dividends
Playing Prediction Market
- 1.
fomo3d pred config --json — check prediction market config and minBet - INLINECODE335 — view a specific market
- INLINECODE336 — bet 1000 FOMO on Yes
- INLINECODE337 — check your position and dividends
- After market resolves:
fomo3d pred claim --id 1 --json — claim winnings - Or exit early:
fomo3d pred exit --id 1 --side yes --json — exit and claim dividends
Creating a Prediction Market
CODEBLOCK37
Settling an Optimistic Market
CODEBLOCK38
Global Flags
| Flag | Description |
|---|
| INLINECODE340 | JSON output (always use for programmatic access) |
| INLINECODE341 |
Override network |
|
--help | Show help |
|
--version | Show version |
Network Info
| Network | Chain ID | Fomo3D Diamond | Slot Diamond | Prediction Diamond | Game Token | FLAP Token (buy/sell) |
|---|
| BSC Testnet | 97 | INLINECODE344 | INLINECODE345 | INLINECODE346 | INLINECODE347 | INLINECODE348 |
| BSC Mainnet |
56 |
0x062AfaB...948b |
0x6eB59f...156E |
0xc64083...8d45 |
0x13f266...7777 |
0x13f266...7777 |
Note: Prediction Market uses the same game token as Fomo3D and Slot Machine.
Trading Contracts
| Contract | Testnet | Mainnet | Purpose |
|---|
| FLAP Portal | INLINECODE354 | INLINECODE355 | 内盘交易 + 状态查询 |
| PancakeSwap V2 Router |
0xD99D1c33F9fC3444f8101754aBC46c52416550D1 |
0x10ED43C718714eb63d5aA57B78B54704E256024E | 外盘交易 |
| Quote Token | BNB (native) | BNB (native) | 支付媒介 |
Fomo3D — BNB 链区块链游戏
Fomo3D 是一款基于 BNB 链(BSC)的去中心化游戏,包含三种游戏模式:
- 1. Fomo3D 主游戏 — 使用代币购买股份。每次购买都会重置倒计时。当计时器归零时,最后一位买家赢得大奖池。所有股东从每次购买中获得分红。
- 2. 老虎机 — 使用代币进行基于 VRF 的随机旋转。匹配的符号可获得倍率奖励(最高 100 倍)。存款人从每次旋转中获得分红份额。
- 3. 预测市场 — 对事件结果(是/否/平局)下注。市场使用预言机(Chainlink 价格喂价)或乐观机制(人工提案 + 挑战)进行结算。下注者从同一市场的其他下注中获得分红,赢家共享奖池。
安装与配置(必需)
确保在仓库根目录安装依赖项(npm install)。
需要私钥。如果用户尚未配置该技能,请在仓库根目录运行 fomo3d setup。这将运行一个交互式 CLI,提示输入:
- - BSC 私钥(用于签署交易)
- 网络(测试网或主网)
- 可选的自定义 RPC URL
或者,设置环境变量(无需 setup):
- - FOMO3DPRIVATEKEY — BSC 钱包私钥(十六进制,带或不带 0x 前缀)
- FOMO3DNETWORK — testnet 或 mainnet(默认:testnet)
- FOMO3DRPCURL — 自定义 RPC 端点(可选)
- FOMO3DFLAP_TOKEN — 覆盖用于买入/卖出命令的 FLAP 代币地址(可选,用于测试)
重要提示: 钱包必须是 EOA(外部拥有账户),而不是智能合约钱包。游戏合约要求 msg.sender == tx.origin。
如何运行(CLI)
从仓库根目录(package.json 所在位置)运行。对于机器可读的输出,始终附加 --json。CLI 在 --json 模式下将 JSON 输出到标准输出。
bash
fomo3d [options] --json
出错时,CLI 将 {success:false,error:message} 输出到标准输出并以退出码 1 退出。成功时,CLI 将 {success:true,data:{...}} 输出到标准输出。
重要概念
代币数量
CLI 参数和 JSON 输出中的所有代币数量均以 wei 为单位(18 位小数)。例如:
- - 1 个代币 = 1000000000000000000(1e18)
- 0.5 个代币 = 500000000000000000(5e17)
向用户显示数量时,除以 1e18 以获得人类可读的值。
股份数量
purchase --shares 的股份数量是整数(不是 wei)。1 股 = 1 股。
自动授权
CLI 会自动检查 ERC20 代币授权,并在 purchase、buy、sell、slot spin、slot deposit、pred bet、pred propose 和 pred dispute 之前根据需要授权。无需手动授权步骤。
FOMO 代币交易
FOMO 代币在 FLAP 平台(BNB 链联合曲线)上启动。交易使用 BNB 作为报价代币:
- - 内盘(Portal):直接使用原生 BNB 调用 FLAP Portal 的 swapExactInput
- 外盘(PancakeSwap V2):代币毕业到 DEX 后,使用 PancakeSwap V2 Router
CLI 通过 getTokenV6 自动检测当前阶段并进行相应路由。买入/卖出命令在测试网和主网上均有效。
VRF(可验证随机函数)
老虎机旋转使用币安预言机 VRF 实现可证明公平的随机性。每次 spin 需要少量 BNB 费用(约 0.00015 BNB)作为 msg.value 发送。旋转结果由 VRF 回调决定(1-3 个区块后)——CLI 返回旋转请求交易,而不是结果。之后使用 fomo3d slot status 或 fomo3d player 检查结果。
命令参考
设置
bash
fomo3d setup --json
交互式配置。提示输入私钥、网络和可选的 RPC URL。保存到 config.json。
钱包 — 检查余额
bash
fomo3d wallet --json
返回配置钱包的 BNB 余额和游戏代币余额。
输出字段: address、bnbBalance(wei)、tokenBalance(wei)、tokenSymbol、tokenDecimals
状态 — 游戏轮次信息
bash
fomo3d status --json
返回当前轮次状态,包括倒计时、奖池、股价和最后买家。
输出字段: currentRound、roundStatus(NotStarted/Active/Ended)、paused、countdownRemaining(秒)、grandPrizePool(wei)、dividendPool(wei)、sharePrice(wei)、totalShares、lastBuyers(address[])、pools
策略提示: 当 countdownRemaining 较低时,购买股份的预期价值更高,因为您可能赢得大奖。每次购买都会将倒计时重置固定增量。
玩家 — 玩家信息
bash
fomo3d player --json
fomo3d player --address 0x1234... --json
返回玩家的股份、收益和待提取金额。不带 --address 时,使用配置的钱包。
输出字段: address、shares、totalEarnings(wei)、pendingEarnings(wei)、pendingWithdrawal(wei)、hasExited、currentRound
决策指南:
- - 如果 pendingWithdrawal > 0:在购买更多股份前必须运行 fomo3d settle
- 如果 pendingEarnings > 0 且轮次处于活跃状态:可以 exit 锁定收益,或持有以获得更多分红
- 如果 hasExited == true:已退出此轮次,等待轮次结束或结算
购买 — 购买股份
bash
fomo3d purchase --shares --json
在当前轮次购买股份。--shares 值是整数计数(不是 wei)。代币成本 = 股份 × 股价(自动计算)。
自动执行的预检查:
- - 游戏不能暂停
- 没有待提取金额(必须先 settle)
- 代币授权(如果需要则自动授权)
输出字段: txHash、blockNumber、status、sharesAmount、tokensCost(wei)
退出 — 退出游戏
bash
fomo3d exit --json
退出当前轮次并锁定您的分红收益。
输出字段: txHash、blockNumber、status
结算 — 领取分红与奖金
bash
fomo3d settle --json
轮次结束后结算分红并领取任何大奖。如果 pendingEarnings > 0 或 pendingWithdrawal > 0,则必须调用。
输出字段: txHash、blockNumber、status、pendingEarnings(wei)、pendingWithdrawal(wei)
结束轮次 — 结束过期轮次
bash
fomo3d end-round --json
结束倒计时已归零的轮次。任何人都可以调用。大奖分配给最后一位买家。
输出字段: txHash、blockNumber、status
水龙头 — 领取测试代币(仅测试网)
bash
fomo3d faucet --json
在 BSC 测试网上领取 10000 个测试 FOMO 游戏代币。每个地址每小时限领 1 次。
输出字段: txHash、amount、token、account
买入 — 用 BNB 买入 FOMO
bash
fomo3d buy --amount amountin_wei> --json
通过 FLAP 平台使用 BNB 买入 FOMO 代币。自动检测市场阶段:Portal(内盘)或 PancakeSwap V2(外盘)。
示例: 用 0.01 BNB 买入:
bash
fomo3d buy --amount 10000000000000000 --json
输出字段: tx