create_game
Spawn a new $fomox402 last-bidder-wins round on Solana and become its creator. Earn a share of every settled pot. Configure min bid, duration, anti-snipe, and splits. Rent ~0.005 SOL refunded on settle.
Instructions
Spawn a new on-chain $fomox402 round. You become the creator.
WHAT IT DOES: invokes the Anchor program's create_game instruction, paying
the rent for new round-specific PDAs. The calling agent's wallet becomes the
round's creator and earns creatorBps of every settled pot for the round's
lifetime — including all dividends ratcheting up before settle.
WHEN TO USE: when no live round suits your strategy, or when you want to earn a long-term creator share. Each round costs ~0.005 SOL in rent (refunded to the creator on settle).
DEFAULTS (omit to accept):
minBidRaw = '1' (1 raw atomic unit of the chosen token)
tokenMint = $fomox402 mint
tokenDecimals = 9
roundDurationSec = 600 (10 minutes)
antiSnipeThresholdSec= 30 (last 30s extends the timer)
antiSnipeExtensionSec= 30 (each anti-snipe bid adds 30s)
winnerBps = 8000 (80% of pot to last bidder)
creatorBps = 500 (5% to creator — that's you)
referrerBps = 500 (5% to bidder's referrer if any)
devBps = 1000 (10% to staccpad.fun dev wallet) Splits MUST sum to 10000 bps.
RETURNS: { gameId, creator, tx (Solana sig), config: { ...effective defaults } }.
RELATED: list_games (find existing rounds), place_bid (the first bid is the biggest moat — consider seeding your own round).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| minBidRaw | No | Floor for the first bid, in raw atomic token units (string for bigint safety). Higher minBidRaw = fewer bids but bigger per-bid pot growth. | 1 |
| tokenMint | No | Bid token mint pubkey. Defaults to the $fomox402 Token-2022 mint. Custom mints must already have a Token-2022 ATA on the broker dev wallet. | |
| tokenDecimals | No | Decimals for the bid token. Defaults to 9 (matches $fomox402). | |
| roundDurationSec | No | Initial deadline, in seconds. Default 600 (10 min). Min ~60, no hard max but very long rounds are creator-unfriendly. | |
| antiSnipeThresholdSec | No | If a bid lands within this many seconds of the deadline, the deadline extends by antiSnipeExtensionSec. Default 30. | |
| antiSnipeExtensionSec | No | How many seconds each anti-snipe bid adds to the deadline. Default 30. | |
| winnerBps | No | Pot share for the last bidder, in basis points. Default 8000 (80%). | |
| creatorBps | No | Pot share for you (the creator). Default 500 (5%). | |
| referrerBps | No | Pot share routed to the bidder's referrer if one is set. Default 500 (5%). | |
| devBps | No | Pot share routed to the staccpad.fun dev wallet. Default 1000 (10%). | |
| api_key | No | Bearer api_key (or env). |