Provably fair dice, testnet demo
Game
Min bet 0.10 · Max bet 100 · Max payout 2,000 (bankroll-checked) · Keys: Space rolls, ↑↓ change the stake
Sepolia contract
Contract 0xc0a2…0824. Each bet asks Chainlink VRF v2.5 for a random number; you pay the VRF fee in Sepolia test ETH with the bet (any excess comes back). Stake comes from your balance in the contract. Sepolia ETH has no value.
Gno testnet realm
Not provably fair. Gno has no VRF, so the realm hashes block height, block time and the caller. Validators can predict that. Play credits only. Realm gno.land/r/g1zuj4tlanjj6lq6lu3ur88zlsaf43amaelun2d5/dice on chain onyx-1.
Provably fair
The hash is shown before you bet. Rotate to reveal the seed and check every roll it made.
Responsible gaming
Lower limits apply at once; higher ones after 24 hours. Limits, breaks and reality checks are enforced by the server for credits and by the contract on Sepolia.
Recent bets
| Time | Game | Target | Roll | Stake | Payout | Balance | Proof |
|---|
How fairness works
Play credits: commit-reveal
- Before you bet, the server commits to a secret server seed by showing its SHA-256 hash.
- You choose the client seed. Each bet uses the next nonce (0, 1, 2…).
- Roll = HMAC-SHA256(key = server seed, message = "clientSeed:nonce:0"). Read the 32 bytes as eight big-endian 32-bit numbers and take the first one below the largest multiple of N (N = 10,000 for roll-under, 6 for the die), modulo N. Roll-under shows it as 0.00-99.99; the die adds 1.
- Rotating the seed reveals the old server seed. Anyone can hash it, compare with the commitment, and recompute every roll.
Sepolia: Chainlink VRF v2.5
Each on-chain bet requests one random word from Chainlink VRF v2.5 (direct funding, paid in native test ETH). The VRF proof is checked on-chain before the contract settles the bet, so neither the house nor the player can choose the outcome. Die = word mod 6 + 1; roll-under = word mod 100, win when below the target (2-98).
Gno: not provably fair
The Gno realm has no verifiable randomness source. It hashes the previous state with block height, block time and caller, which validators can predict or influence. It shows the game logic on Gno, not fairness.
Verify a roll in your browser
Math and return to player
House edge 1%, so the return to player (RTP) is 99% on every bet. Multiplier = (100% − edge) ÷ win chance. Expected return = chance × multiplier = 99%.
| Bet | Win chance | Multiplier | Payout on 10 | RTP | House edge |
|---|
Simulation: 1,000,000 rolls
Run a million roll-under bets at your target in this browser and compare the observed RTP with theory. The Go unit test (TestSimulationMillion) does the same with the provably fair HMAC rolls on every build.
Bet ledger
Every play-credit bet with stake, outcome, payout, balance after, and its seeds. Export CSV
| # | Time | Game | Target | Roll | Stake | Payout | Balance | Seed hash | Client seed | Nonce | Server seed |
|---|
On-chain bets (Sepolia)
| Block | Player | Game | Target | Roll | Stake | Payout | VRF request | Fulfilment |
|---|
Operator view
House figures for the play-credit game. Players are anonymous id prefixes.
Biggest wins
| Time | Player | Game | Target | Stake | Payout |
|---|
Per-player limits
| Player | Balance | Bets | Session loss | Loss limit | Credit limit | Excluded until |
|---|