Docs

ROOKIE is one Solana program. Everything below can be read from its accounts and done from your own code. The IDL, the TypeScript client and the test vectors are published with the program.

Where ROOKIE goes

ROOKIE prices whether a new coin graduates from its launchpad's curve. It starts with Pump.fun; the rest is the direction, not something that runs today.

  1. now: Pump.fun coins. Every call today is on a new Pump.fun coin. The program reads the coin's Pump.fun bonding-curve account to price it and to settle it.
  2. next: Every top Solana launchpad. Each launchpad that states graduation in an account the program can read gets its own reader, graduation test and cap. One is added when its layout has been read on mainnet.
  3. then: Launchpads on other chains, over bridges. A graduation on another chain is brought to the Solana program through a cross-chain bridge and checked in the program, never taken on a server's word. Bets and payouts stay in SOL, in the same bankroll.

Accounts

AccountHolds
ConfigEvery parameter the program runs with: cut, windows, caps, daily stop, burn share.
BrainThe model's numbers: one weight per input, the step size, the lesson count and the running squared error.
BankrollROOKIE's balance, what is reserved for payouts, the day-start balance, net winnings, the previous high and what was released for burn. SOL sits in its vault.
CallOne market on one coin: the coin's mint and curve, open and close snapshots, stakes and reserved payouts per side, deadline, result.
BetOne wallet's position on one call; it holds both sides, each with its stake and fixed multiple.
HolderOne wallet's $ROOKIE record: registrations used today and the total it burned.

Instructions

ActionWhoInstructionThe program refuses when
Betanyoneplace_bet(side, stake, min_multiple_ppm)betting off; bet window closed; stake above the largest allowed now; daily stop; bankroll empty; multiple below the minimum you set
Settleanyonesettle_callbefore the deadline; already settled
Confirm graduationanyoneconfirm_graduationcurve not complete; after the deadline
Record close snapshotanyonerecord_closebet window not over; already recorded
Claimanyone, pays the bettorclaimnot settled; lost; already claimed
Register a coin$ROOKIE holderopen_call(question_id = 0, kind = 1), after init_holder once per walletmint checks; below the lowest tier; registrations used today; token not set
Burn to raise limitholderburn_for_limit(amount), after init_holder oncetoken not set; balance short
Add to bankrollanyonefund_bankroll(amount)amount 0
Close accountsanyoneclose_bet / close_call-

Each action is one transaction. Settle, confirm graduation, record close and claim can be sent by anyone.

Payout

  • p_graduates = p, p_stays = 1 - p
  • multiple(side) = 1 + (1 - cut) x (1 - p_side) / p_side
  • cut = 8% of winnings, so a winning bet always returns more than its stake.
  • The multiple is fixed when the bet is placed. Payout = stake x multiple.
  • a bet is refused if the call's total net payout on graduates would exceed L / 2; L is the least loss of forcing the coin to graduate, computed live from the curve.

From your own code

Read a probability

  1. Fetch the Brain account and the coin's bonding-curve account (PDA of seed "bonding-curve" and the mint, under the Pump.fun program).
  2. Decode both with the IDL, or read the curve bytes with the layout below.
  3. Run the integer model from the client package on the curve fields and the brain weights.
  4. The result is the probability of graduates in ppm (1,000,000 = 100%). It equals what the program computes at the same slot. A bet prices graduates at no less than 1% and stays at no less than 5%; there is no ceiling.

Bet

  1. Read the Call, Config and Bankroll accounts and compute the multiple and the largest stake allowed now.
  2. Build place_bet with the side, the stake in lamports and the lowest multiple you accept.
  3. Sign and send. The stake moves into the bankroll vault and the multiple is fixed in your Bet account.

Settle

  1. After the call's deadline, build settle_call with the Call, Brain, Bankroll and curve accounts.
  2. The program records stays and runs one lesson on the brain in the same transaction.
  3. Before the deadline, when the curve shows complete, confirm_graduation settles the call as graduated at once. A graduation not confirmed by the deadline counts as stays.

Claim

  1. After settlement, build claim with the Call, the Bet and the bettor's wallet.
  2. Anyone may send it; the payout always goes to the bettor.

Bonding-curve layout

Byte offsets after the 8-byte discriminator. The account is 206 bytes; accounts created before 2026-11-27 are 166 bytes and stop before created_at_slot.

FieldBytes
virtual_token_reserves (u64)8 to 16 (8 bytes)
virtual_sol_reserves (u64)16 to 24 (8 bytes)
real_token_reserves (u64)24 to 32 (8 bytes)
real_sol_reserves (u64)32 to 40 (8 bytes)
token_total_supply (u64)40 to 48 (8 bytes)
complete (bool)48 (1 byte)
creator (pubkey)49 to 81 (32 bytes)
is_mayhem_mode (bool)81 (1 byte)
is_cashback_coin (bool)82 (1 byte)
quote_mint (pubkey)83 to 115 (32 bytes)
creator_fee_bps (u64)115 to 123 (8 bytes)
is_holder_reward (bool)124 (1 byte)
created_at_slot (u64)166 to 174 (8 bytes)
tax_exempt_creator (pubkey)174 to 206 (32 bytes)

Pump.fun program: 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P

Docs - ROOKIE