Fairness

From hash to result, one number for 16 games

The result of a FAIRDRUM round is computed from a single 32-byte number. This is the round number. Paste any such number below and see how the contract's rules turn it into bets, prize table steps and the picture in each game.

One number in all games

Round size and pots
Pots open at settlement

The number of bets is shown on the verification page. A pot is open when it holds at least a quarter of its start amount; the mini jackpot's start amount is a tenth of the jackpot's. With all three switches off, the round is computed without the pots.

The tool runs in your browser. No wallet or bets are needed. The units here are practice chips with no value.

A round of 10 bets. First block of numbers: 39af6805fba3d3ee9e2ec62ef9333ec6e83a1fd70a575777bac74f65070617f9

The first 4 bytes of the block, lowest byte first, give the number of the first bet: 0568af39. It is the same for all games. The thresholds and tables are each game's own.

Wheel

×1.5

Step 1 of 6. On the board: prize ×1.5.

Bets with a prize: 2. “Spin again” repeats: 1. Total of table prizes: ×0.3 of the round's bets.

The calculation, bet by bet

A prize if the bet number is below 19a21ea3. “Spin again” if it is below 37544bb1. The numbers are written in hexadecimal.

BetBet numberSectorStep
10568af39prize×1.5: weight unit 1,326
2eed3a3fbno prize—
32ec62e9e“Spin again”—
4c63e33f9no prize—
5d71f3ae8no prize—
67757570ano prize—
7654fc7bano prize—
8f9170607no prize—
9181897b3prize×1.5: weight unit 4,883
10d4fe39e1no prize—
1138a3ef1dno prize—

Blackjack

×2.5

Step 2 of 5. On the board: prize ×2.5.

Bets with a prize: 4. “Spin again” repeats: 1. Total of table prizes: ×0.85 of the round's bets.

The calculation, bet by bet

A prize if the bet number is below 5455eaee. “Spin again” if it is below 720817fc. The numbers are written in hexadecimal.

BetBet numberSectorStep
10568af39prize×2: weight unit 1,326
2eed3a3fbno prize—
32ec62e9eprize×2.5: weight unit 9,022
4c63e33f9no prize—
5d71f3ae8no prize—
67757570ano prize—
7654fc7ba“Spin again”—
8f9170607no prize—
9181897b3prize×2: weight unit 4,883
10d4fe39e1no prize—
1138a3ef1dprize×2: weight unit 36

Mines

×3

Step 1 of 6. On the board: safe cells opened: 3.

Bets with a prize: 2. “Spin again” repeats: 1. Total of table prizes: ×0.6 of the round's bets.

The calculation, bet by bet

A prize if the bet number is below 1915054a. “Spin again” if it is below 36c73258. The numbers are written in hexadecimal.

BetBet numberSectorStep
10568af39prize×3: weight unit 1,326
2eed3a3fbno prize—
32ec62e9e“Spin again”—
4c63e33f9no prize—
5d71f3ae8no prize—
67757570ano prize—
7654fc7bano prize—
8f9170607no prize—
9181897b3prize×3: weight unit 4,883
10d4fe39e1no prize—
1138a3ef1dno prize—

Rocket

×3

Step 2 of 6. On the board: the rocket's counter flies up to ×3.

Bets with a prize: 3. “Spin again” repeats: 0. Total of table prizes: ×0.6 of the round's bets.

The calculation, bet by bet

A prize if the bet number is below 3c4dca8e. “Spin again” if it is below 59fff79c. The numbers are written in hexadecimal.

BetBet numberSectorStep
10568af39prize×1.5: weight unit 1,326
2eed3a3fbno prize—
32ec62e9eprize×3: weight unit 9,022
4c63e33f9no prize—
5d71f3ae8no prize—
67757570ano prize—
7654fc7bano prize—
8f9170607no prize—
9181897b3prize×1.5: weight unit 4,883
10d4fe39e1no prize—

Plinko

×2

Step 1 of 6. On the board: the ball drops into the ×2 pocket.

Bets with a prize: 2. “Spin again” repeats: 2. Total of table prizes: ×0.4 of the round's bets.

The calculation, bet by bet

A prize if the bet number is below 1bf1843c. “Spin again” if it is below 39a3b14a. The numbers are written in hexadecimal.

BetBet numberSectorStep
10568af39prize×2: weight unit 1,326
2eed3a3fbno prize—
32ec62e9e“Spin again”—
4c63e33f9no prize—
5d71f3ae8no prize—
67757570ano prize—
7654fc7bano prize—
8f9170607no prize—
9181897b3prize×2: weight unit 4,883
10d4fe39e1no prize—
1138a3ef1d“Spin again”—
124aa1bb0dno prize—

Tower

×4

Step 1 of 6. On the board: the climb reaches floor 1.

Bets with a prize: 1. “Spin again” repeats: 2. Total of table prizes: ×0.4 of the round's bets.

The calculation, bet by bet

A prize if the bet number is below 14245f5a. “Spin again” if it is below 31d68c68. The numbers are written in hexadecimal.

BetBet numberSectorStep
10568af39prize×4: weight unit 1,326
2eed3a3fbno prize—
32ec62e9e“Spin again”—
4c63e33f9no prize—
5d71f3ae8no prize—
67757570ano prize—
7654fc7bano prize—
8f9170607no prize—
9181897b3“Spin again”—
10d4fe39e1no prize—
1138a3ef1dno prize—
124aa1bb0dno prize—

Hi-Lo

×4

Step 2 of 6. On the board: prize ×4.

Bets with a prize: 3. “Spin again” repeats: 0. Total of table prizes: ×0.8 of the round's bets.

The calculation, bet by bet

A prize if the bet number is below 36ce789e. “Spin again” if it is below 5480a5ac. The numbers are written in hexadecimal.

BetBet numberSectorStep
10568af39prize×2: weight unit 1,326
2eed3a3fbno prize—
32ec62e9eprize×4: weight unit 9,022
4c63e33f9no prize—
5d71f3ae8no prize—
67757570ano prize—
7654fc7bano prize—
8f9170607no prize—
9181897b3prize×2: weight unit 4,883
10d4fe39e1no prize—

Slots 777

×1.5

Step 1 of 6. On the board: prize ×1.5.

Bets with a prize: 2. “Spin again” repeats: 2. Total of table prizes: ×0.3 of the round's bets.

The calculation, bet by bet

A prize if the bet number is below 22006d0d. “Spin again” if it is below 3fb29a1b. The numbers are written in hexadecimal.

BetBet numberSectorStep
10568af39prize×1.5: weight unit 1,326
2eed3a3fbno prize—
32ec62e9e“Spin again”—
4c63e33f9no prize—
5d71f3ae8no prize—
67757570ano prize—
7654fc7bano prize—
8f9170607no prize—
9181897b3prize×1.5: weight unit 4,883
10d4fe39e1no prize—
1138a3ef1d“Spin again”—
124aa1bb0dno prize—

Cascade

×1.2

Step 1 of 6. On the board: prize ×1.2.

Bets with a prize: 2. “Spin again” repeats: 2. Total of table prizes: ×0.24 of the round's bets.

The calculation, bet by bet

A prize if the bet number is below 2b457c0b. “Spin again” if it is below 48f7a919. The numbers are written in hexadecimal.

BetBet numberSectorStep
10568af39prize×1.2: weight unit 1,326
2eed3a3fbno prize—
32ec62e9e“Spin again”—
4c63e33f9no prize—
5d71f3ae8no prize—
67757570ano prize—
7654fc7bano prize—
8f9170607no prize—
9181897b3prize×1.2: weight unit 4,883
10d4fe39e1no prize—
1138a3ef1d“Spin again”—
124aa1bb0dno prize—

Dice

×3

Step 2 of 6. On the board: total of 10 or 11.

Bets with a prize: 3. “Spin again” repeats: 0. Total of table prizes: ×0.7 of the round's bets.

The calculation, bet by bet

A prize if the bet number is below 449a5657. “Spin again” if it is below 624c8365. The numbers are written in hexadecimal.

BetBet numberSectorStep
10568af39prize×2: weight unit 1,326
2eed3a3fbno prize—
32ec62e9eprize×3: weight unit 9,022
4c63e33f9no prize—
5d71f3ae8no prize—
67757570ano prize—
7654fc7bano prize—
8f9170607no prize—
9181897b3prize×2: weight unit 4,883
10d4fe39e1no prize—

Heads or Tails

×2

Step 1 of 6. On the board: heads in a row: 1.

Bets with a prize: 2. “Spin again” repeats: 2. Total of table prizes: ×0.4 of the round's bets.

The calculation, bet by bet

A prize if the bet number is below 23f11f92. “Spin again” if it is below 41a34ca0. The numbers are written in hexadecimal.

BetBet numberSectorStep
10568af39prize×2: weight unit 1,326
2eed3a3fbno prize—
32ec62e9e“Spin again”—
4c63e33f9no prize—
5d71f3ae8no prize—
67757570ano prize—
7654fc7bano prize—
8f9170607no prize—
9181897b3prize×2: weight unit 4,883
10d4fe39e1no prize—
1138a3ef1d“Spin again”—
124aa1bb0dno prize—

Roulette

×6

Step 3 of 6. On the board: prize ×6.

Bets with a prize: 3. “Spin again” repeats: 0. Total of table prizes: ×1 of the round's bets.

The calculation, bet by bet

A prize if the bet number is below 3ecdf266. “Spin again” if it is below 5c801f74. The numbers are written in hexadecimal.

BetBet numberSectorStep
10568af39prize×2: weight unit 1,326
2eed3a3fbno prize—
32ec62e9eprize×6: weight unit 9,022
4c63e33f9no prize—
5d71f3ae8no prize—
67757570ano prize—
7654fc7bano prize—
8f9170607no prize—
9181897b3prize×2: weight unit 4,883
10d4fe39e1no prize—

Scratch card

×2

Step 2 of 6. On the board: prize ×2.

Bets with a prize: 2. “Spin again” repeats: 2. Total of table prizes: ×0.3 of the round's bets.

The calculation, bet by bet

A prize if the bet number is below 27859429. “Spin again” if it is below 4537c137. The numbers are written in hexadecimal.

BetBet numberSectorStep
10568af39prize×1: weight unit 1,326
2eed3a3fbno prize—
32ec62e9e“Spin again”—
4c63e33f9no prize—
5d71f3ae8no prize—
67757570ano prize—
7654fc7bano prize—
8f9170607no prize—
9181897b3prize×2: weight unit 4,883
10d4fe39e1no prize—
1138a3ef1d“Spin again”—
124aa1bb0dno prize—

Limbo

×5

Step 3 of 6. On the board: the number stops at ×5.

Bets with a prize: 3. “Spin again” repeats: 0. Total of table prizes: ×0.8 of the round's bets.

The calculation, bet by bet

A prize if the bet number is below 3957689c. “Spin again” if it is below 570995aa. The numbers are written in hexadecimal.

BetBet numberSectorStep
10568af39prize×1.5: weight unit 1,326
2eed3a3fbno prize—
32ec62e9eprize×5: weight unit 9,022
4c63e33f9no prize—
5d71f3ae8no prize—
67757570ano prize—
7654fc7bano prize—
8f9170607no prize—
9181897b3prize×1.5: weight unit 4,883
10d4fe39e1no prize—

Keno

×5

Step 3 of 6. On the board: prize ×5.

Bets with a prize: 3. “Spin again” repeats: 0. Total of table prizes: ×0.8 of the round's bets.

The calculation, bet by bet

A prize if the bet number is below 325b0ff1. “Spin again” if it is below 500d3cff. The numbers are written in hexadecimal.

BetBet numberSectorStep
10568af39prize×1: weight unit 1,326
2eed3a3fbno prize—
32ec62e9eprize×5: weight unit 9,022
4c63e33f9no prize—
5d71f3ae8no prize—
67757570ano prize—
7654fc7bano prize—
8f9170607no prize—
9181897b3prize×2: weight unit 4,883
10d4fe39e1no prize—

Diamonds

×3

Step 3 of 6. On the board: prize ×3.

Bets with a prize: 4. “Spin again” repeats: 1. Total of table prizes: ×0.75 of the round's bets.

The calculation, bet by bet

A prize if the bet number is below 55e353f7. “Spin again” if it is below 73958105. The numbers are written in hexadecimal.

BetBet numberSectorStep
10568af39prize×1.5: weight unit 1,326
2eed3a3fbno prize—
32ec62e9eprize×3: weight unit 9,022
4c63e33f9no prize—
5d71f3ae8no prize—
67757570ano prize—
7654fc7ba“Spin again”—
8f9170607no prize—
9181897b3prize×1.5: weight unit 4,883
10d4fe39e1no prize—
1138a3ef1dprize×1.5: weight unit 36

What can and cannot be recomputed here. The round number and the number of every bet follow from the settlement transaction alone. The prizes also depend on the contract's state at settlement: which pots were open, their start amounts and the size of the prize bank. The program publishes that state in the same transaction, and the verification page recomputes the prizes from it exactly. This tool takes the state from the fields above: set the number of bets and the pots to match the round. If the total still differs, the reason is the state of the pots or the prize cap at that moment: the tool does not apply the cap.

Step 1. Two inputs, one hash

  • The round secret. It is 32 bytes. The secrets of all future rounds are created in advance. Their common fingerprint is recorded in the contract before the bets.
  • The hash of the bet's block. It is also 32 bytes. The block the bet will land in does not exist yet at the moment of the bet.

The contract combines the two values with the SHA-256 function and gets the round number:

SHA-256("fairdrum-round-salt-v1" + secret + block hash)

The secret and the block hash are published in the settlement transaction. So anyone can recompute the round number. Everything after that depends on this number, on the chosen game, on the number of bets and on the contract's state at the moment of settlement: the pots and the prize bank.

Step 2. From the hash to a prize table step

A round is several bets of 0.01 SOL. The smallest round on the site, 0.1 SOL, has 10 of them. Each bet is played out separately.

  1. A number for each bet. The contract computes the blocks SHA-256("FDRM-M" + round number + block index). One block gives eight 4-byte numbers. Each bet takes the next number in order.
  2. Sector. The bet number is compared with the game's thresholds. A number below the prize threshold is a prize. The next band, 11.6% wide, is a “Spin again” repeat: one more bet at the expense of the prize bank. The rest is a bet with no prize.
  3. Step. For a bet with a prize the contract computes one more hash: SHA-256("FDRM-G" + round number + bet index). Four bytes of this hash give a weight unit: a whole number from 0 to 9,999. The steps take up units one after another. Each step takes as many units as its weight.

A step's weight is its share among the game's prizes. The weights in every table add up to 10,000. The example is the table of “Dice”. A prize in it lands on 26.8% of spins.

StepMultiplierWeightWeight unitsChance per spinOn the board
1×27,8000–7,79920.902%total of 8 or 9
2×31,5007,800–9,2994.02%total of 10 or 11
3×65009,300–9,7991.34%double twos or threes
4×121609,800–9,9590.429%double fours
5×60359,960–9,9940.094%double fives
6×36059,995–9,9990.013%double sixes

The multiplier applies to one bet, not to the whole round. The tables of all games are gathered on the page “Odds in all games”.

Pots. The same hash of a prize bet first decides whether one of the three jackpots has landed. Their chances depend on the pots' start amounts. The rule is described on the “Contract” page.

Step 3. From the step to what you see

The contract outputs only prize amounts. The picture is drawn by the site. The game board shows the round's highest step, and the site writes the total for the whole round on a separate line. Your clicks in the game do not affect the payout.

Dice

The step sets a pair of dice: it is shown in the last column of the table above. Which of the matching pairs comes up is chosen by the site. This does not affect the payout. With no prize the dice show a total of 7 or less with no double. The rules are on the Dice game page.

Rocket and Limbo

The counter climbs to the multiplier of the highest step. In Rocket that is ×1.5, ×3, ×10, ×50, ×250, ×1,000. In Limbo that is ×1.5, ×2, ×5, ×20, ×100, ×1,000. There is no “hash gives the multiplier” formula here: the multipliers are taken from the contract's tables. With no prize the rocket explodes, and the number in Limbo stops below the first step.

Plinko

The board has 13 pockets. The middle pocket has no prize. Step 1 is the two pockets next to the centre, step 6 is the two outermost ones. The ball drops into the pocket of the highest step. The left or right pocket and the ball's path are chosen by the site. The rules are on the Plinko game page.

Mines and Tower

In Mines the step sets the number of safe cells: 3, 6, 10, 14, 18, 21. In Tower the step number equals the floor the climb reaches; there are 6 floors. With no prize a mine waits on one of the first cells, and a trap on one of the lower floors. Which cells you click does not matter.

Cards, reels and scratch cards

In the other games the rule is the same. The board shows the round's highest step in its own way: a hand in Blackjack, a run of cards in Hi-Lo, a line on the reels in Slots 777, three matching symbols in Scratch card. The tables and captions are on the game pages.

How this differs from the “server seed, client seed and nonce” scheme

In many provably fair games the result is computed from three values: a server seed, a client seed and a bet counter (nonce). At FAIRDRUM the inputs are different. The comparison is in the table.

QuestionClassic scheme: server seed, client seed, nonceFAIRDRUM: secret and block hash
What is fixed before the betA hash of the server seed that the operator shows to the playerA fingerprint of all round secrets, recorded in the contract
What is added to the secretThe client seed and the nonceThe hash of the Solana block the bet landed in
Where the result is computedOn the operator's server. The player recomputes it after the server seed is revealedIn the contract, in the settlement transaction. The round number can be recomputed from that transaction's data. The prizes follow from the number, the game's table and the state of the pots at settlement

FAIRDRUM has no client seed. Its role is played by the block hash: at the moment of the bet neither the player nor the house knows it. More about the scheme is on the page “Commit-reveal on Solana”.

Check a real round

  1. Open the “Verify a round” page and paste the signature of the settlement transaction. Any round will do, yours or someone else's.
  2. The page will show the round secret, the hash of the bet's block and the round number. It will also check the secret against the fingerprint recorded in the contract before the bet.
  3. Follow the “From hash to result” link under the round's data: it opens the tool with the round number and the number of bets filled in. Find your game's tile. Switch on the pots that were open and compare the total of the prizes with the round's result on the verification page. The tool does not apply the prize cap, and the contract does not publish the state of the pots in the transaction, so a difference is possible.

Questions

How is the rocket's multiplier computed from the hash?

FAIRDRUM has no separate formula for the multiplier. The round number picks a step of the game's table, and the counter flies up to that step's multiplier: ×1.5, ×3, ×10, ×50, ×250, ×1,000. The chance of each step is written in the table on the game page.

How do I verify a dice roll myself?

Take the settlement transaction and open it on the verification page. Copy the round number and the number of bets into the tool on this page and find the tile of “Dice”. The round's highest step sets the pair of dice. Check the total of the prizes against the round's result on the verification page; the state of the pots at settlement can change it.

Can two games give different results from the same round number?

Yes. The bet numbers are the same for all games, but each game has its own prize threshold and prize table. That is why the tiles above show different results. In a real round the game is recorded in the bet itself, and the round number is applied only to it.

Why SHA-256?

This function is available to programs on the Solana network and exists in every programming language. A small change in the input changes the result completely. Finding an input that produces a desired result is not feasible in practice.

Can I do the calculation without this site?

Yes. The round secret and the block hash are published in the settlement transaction, which any Solana explorer shows. The SHA-256 function exists in every language. The rules and labels are described on this page, the tables on the game pages. Whether the program's source code has been published, and where, is stated in this place when the page is opened with scripts enabled.

Are all outcomes equally likely?

No. The steps have different weights: in “Dice” the lowest step takes up 78% of prizes, the highest 0.05%. The chance of each step is in the table above and on the game page.

Read on

18+. On average players get back less than they bet. Play only with SOL tokens you are prepared to lose.