Dice
Predict whether a roll lands over or under a target. Single-action — one /game/play call per round.
Slug: dice · Type: single-action · TS types: @jackpot-studio/jps-proto/dice
The roll is an integer in 0–9999. Set either over or under (a oneof — exactly one). You win when the roll falls on the chosen side of the target; payout scales with how unlikely that is.
Bet
Request — Query.bet
| Field | Type | Notes |
|---|---|---|
amount |
string | Wager, decimal string. |
over |
int | Win if roll > this. Set over or under. |
under |
int | Win if roll < this. |
{ "bet": { "amount": "1.00", "over": 5000 } }
Response — Result.bet
| Field | Type | Notes |
|---|---|---|
roll |
int | The rolled number (0–9999). |
result |
object | { payout, multiplier }. |
{
"metadata": { "balance": "104.00", "roundId": "9f1c…" },
"bet": { "roll": 7421, "result": { "payout": "2.00", "multiplier": "1.98" } }
}
State
GameState (from /game/current, /game/round): { over | under, result } — the target side and the resolved roll.
Verify
VerifyRequest is empty. The RGS recomputes the roll from the seeds.
// request message
{}
// response message
{ "roll": 7421 }