Solana dice, how an on-chain dice game for SOL works
In an on-chain dice game a program on the Solana network accepts the bet and computes the roll. FAIRDRUM Dice pays from a table of 6 prizes, from ×2 to ×360, and two dice show the prize the contract computed. A round starts at 0.1 SOL, and every round can be verified against Solana network data.
How a dice roll for SOL goes
You choose a round size and press the game's main button. The bet goes to the contract as one transaction, and the contract computes the payout from the round number and the prize table of this game. The result usually arrives within a few seconds, and the prize is credited to your game balance in the settlement transaction.
Then the two dice land on faces that stand for the best prize of the round, and the round's total is written on a separate line. A total of 7 or less without a double is a round without a prize. The totals from 8 to 11 stand for the two lower prizes, and doubles stand for the four upper ones.
What decides a roll
Two different games go by the name crypto dice. In one you pick a target number and roll over or under it, and so set your own win chance. FAIRDRUM Dice is the other kind, with no target and no chance to set. The prizes and their chances are written in one table in the contract, the same for every wallet.
How often each pair of faces appears is set by that table, so the frequencies differ from those of two physical dice. The exact chances are in the table below.
Each bet of a round is drawn on its own against the game's prize table. The contract picks the result from the round number, which is made of a round secret and the hash of the bet's block.
Nobody knows the round number before the bet. The secret's fingerprint is recorded in the contract before the bet, and the block hash appears only together with the bet's block. After the bet the number cannot be changed, and after settlement anyone can recompute it. Why a click or the moment of pressing changes nothing is shown on the page “The outcome is fixed before you click”.
The dice prize table and the odds of every roll
The table has 6 prizes, and a prize lands on 26.8% of spins. Doubles together land on 1.88% of spins. The numbers come from the contract's constants and match the game page. A spin is one bet of 0.01 SOL. All the tables side by side are on the page “Odds in all games”.
| What the dice show | Multiplier | Prize per spin, SOL | Chance per spin | Once in how many spins |
|---|---|---|---|---|
| a total of 8 or 9 | ×2 | 0.02 | 20.9% | 1 in 5 |
| a total of 10 or 11 | ×3 | 0.03 | 4.02% | 1 in 25 |
| double twos or double threes | ×6 | 0.06 | 1.34% | 1 in 75 |
| double fours | ×12 | 0.12 | 0.429% | 1 in 233 |
| double fives | ×60 | 0.6 | 0.0938% | 1 in 1,066 |
| double sixes | ×360 | 3.6 | 0.0134% | 1 in 7,463 |
A prize on a bet is not yet a profit on the round. A round of 10 bets with one ×2 prize returns 2 bets out of 10. The table's prizes return at least what was bet in roughly 29% of such rounds. The calculation includes the “Spin again” outcome: with a chance of 11.6% a spin gives a free repeat at the expense of the prize bank.
On top of the table, three jackpots are drawn on every bet; they are not included in the calculations on this page. A single prize cannot be larger than 1/4 of the prize bank. The jackpot and the super jackpot are paid in parts: 20% right away, then 8% per week.
How to verify a round
- After a round, the link “Verify this round” appears under the result. It opens the “Verify a round” page with the settlement transaction of your round.
- Your browser reads that transaction from the network, checks the revealed secret against the fingerprint recorded before the bet, recomputes the round number and compares the prizes with what the contract credited.
A round has a deadline. If there is no settlement within that time, the contract refunds the bet in full to the game balance. Any participant of the network can close such a round. The scheme is described on the page “Provably fair”, and what such a check confirms is listed on the page “What provably fair proves”.
What a round costs
On top of the bet you pay only the ordinary Solana network fee for one bet transaction, about 0.00005 SOL. It goes to the network, not the project. The house pays for the round's settlement. The smallest round on the site is 0.1 SOL.
A round is from 10 to 100 bets of 0.01 SOL placed with one signature. The project's share is inside the bet: about 7% of every bet goes to the project, and about 93% returns to players over the long run as prizes and jackpots. The breakdown is on the page “Project's share and return”.
The project takes no fee from a top-up, a table prize or a withdrawal. Withdrawal has no waiting period: one signature of your wallet, and SOL usually arrives within seconds. The first top-up also creates your game account: about 0.003 SOL, once, as the network's fee for the record.
How to start
- Choose a way in on the page “Two ways to start”: your own Solana wallet, or a wallet the site creates on your device. Neither way has a sign-up form.
- Top up the game balance in the cashier with SOL, from your wallet or from an exchange. The balance is recorded in the contract under your wallet address.
- Open the game, choose a round size and press the main button. A 24-hour session with a bet limit you set yourself runs the rounds without the wallet window, as the page “No registration” describes.
Questions
Can I set my own win chance or a roll-over target?
No. Every bet is drawn against one table of 6 prizes written in the contract, from ×2 to ×360, and the dice show the prize that came up. The only thing you choose is the round size.
What is the house edge of this dice game?
The house edge is the part of the bets that does not come back to players. The dice table returns 87.7% of paid bets on average, and with the three jackpots about 93% of what is bet returns over the long run. The figure is the same in every FAIRDRUM game.
Does a betting system help in crypto dice?
No. Every bet is drawn against the same table, and earlier rolls have no effect on the next one. A system changes how the bets are spread over the rounds, while the average return stays the same. The simulator on the page “Betting systems” shows this on practice chips with no value.
What is the minimum bet in SOL?
The smallest round is 0.1 SOL: 10 bets of 0.01 SOL placed with one signature. Each of them is drawn against the prize table on its own.
How do I check that a round was fair?
Use the “Verify this round” link under the result, or paste the settlement transaction into the “Verify a round” page. The check runs in your browser on Solana network data, and no wallet is needed for it.
Read on
18+. On average players get back less than they bet. Play only with SOL tokens you are prepared to lose.