The values change only by a governed write. Read them from
SprintConfig (below) and the Sprint slot of the market’s
fee-terms account (sprintCurSlot(market)), not from this page.
The life of a round
- Tap. One
open_sprinttransaction, signed by the wallet, oropen_sprint_session, signed by a session key. The ticket leaves the wallet when it lands. There is no entry price yet. - Fill. The venue’s next price after a short delay is the entry price. If no price comes in time, the round is voided and the whole ticket returns.
- Bell. At
opened_at + timer_sthe round is marked, and its exit price is the venue’s price a short delay later. The result arrives a few seconds after the bell. - Knockout or take-profit. A price at the knockout line ends the round at a loss of the ticket. There is no knockout
on a price from the first 5 seconds of the round (the slot’s
noKoS). A booked knockout is final, even if the price comes back. A price at the take-profit ends it at the capped win. - Money home.
reconcile_roundmoves the payout to the wallet’s USDC account. Anyone may send it.
Open one with the SDK
- Read
SprintConfigbefore every open.opensOn,minStake,maxStakeandtimerSare the live terms. A ticket outside[minStake, maxStake]is refused (Minute 6056); a closed Sprint is refused (Minute 6055). - The ticket is a whole number of cents (
SPRINT_TICKET_STEP, 10,000 base units).buildOpenSprint,buildOpenSprintSessionandbuildMinuteInstructionrefuse any other ticket and never round it (refuseOddSprintTicket). The program does not check this. If you write the instruction bytes yourself, check it. - The trailing accounts come from
sprintTrailingAccounts:SprintConfig, the market’s fee-terms table (writable), the game config, the governance table, the Instructions sysvar and the pool’sCapitalState(writable). The builders append them in this order. - The session form (
buildOpenSprintSession) is funded by a session key. Setpayerandfunderto the session key andplayer_walletto the owner; three more accounts follow, last. - Compute.
computeUnitLimit('open_sprint')andcomputeUnitLimit('open_sprint_session')are the limits to set. A transaction that also carriesresize_playersets the sum: addcomputeUnitLimit('resize_player').
One tap, one transaction
- Make every tap’s transaction unique with a Compute Budget value that differs per tap, for example a counter in the compute-unit price. Two identical taps signed on one blockhash are one transaction, and the network keeps one.
- A retry re-sends the same signed bytes. If a tap’s result is unknown, send the bytes you signed, and keep checking that signature until its blockhash expires. A rebuilt or re-signed transaction is a second trade and takes a second ticket. A new tap stays immediate while another tap’s result is unknown.
- Keep each tap’s signature. It links the tap to the
RoundOpenedevent in its logs.
Slots
A player account holds one live round per slot. Classic rounds and Sprint rounds share the slots. A new account takes the config’sdefaultRoundSlots (4 on mainnet; read the live value from MinuteConfig), and resize_player grows it to at most 8: put it
after the open in the same transaction. A round’s slot is in use until its settle lands (for Sprint, the venue
settle and then reconcile_round), not when its timer ends. Check before you send:
fetchFreeRoundSlots(connection, wallet) returns { exists, capacity, live, free }; do not open when free is 0. In front of a Sprint open, a transaction may
hold only Compute Budget instructions and at most one each of init_trader_account, set_referral, bind_referral and
Minute’s init_player. A full account refuses the open (Minute 6017).
The line to show
sprintBreakEvenPrice(input) walks the program’s own payout from the fill’s entry price and returns two exit prices.
input is { direction, entryPrice, stake, terms, params, tier, marketTier }: params is the venue config’s
params, tier is SprintConfig.tier and marketTier is the market’s tier.
sprintPayout(input, exitPrice) is the program’s settlement of one exit price. terms is the round’s game entry:
the market’s Sprint slot of its fee-terms table (sprintCurSlot(market)), or feeTermsOfGameArgs of the game terms.
Draw no line before the fill: the entry price is 0 until then.
Reading results and errors
- The close is the keeper’s: the venue
settle, thenreconcile_round.settle_roundrefuses a Sprint. - A finished round’s slot is cleared. Take its kind and result from
RoundOpenedand the settle events, not from the slot. - Minute and the venue use the same error numbers for different errors. Read the failing program from the logs (the
first
Program … failedline) before you read the code. The fee-terms table andCapitalStatemust be writable, or the venue refuses (6380, 6265). - A win can be paid partly now and partly later (
SettlementQueued).
