Game guides

How a Solana coin flip works on a smart contract

A Solana coin flip is a heads-or-tails game in which a program on the network takes the bet in SOL and computes the payout. In FAIRDRUM Heads or Tails the contract picks a step of a published prize table, and the coin shows it as a streak of heads: ×2 for one heads and up to ×128 for 6 in a row. A round starts at 0.1 SOL.

Prize per spin14%
Most frequent prize×27.3%
Top prize×1281 in 1,425
Smallest round0.1 SOL
Return to player≈93%

How a coin flip round 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 coin plays the result as a series of flips. The first heads is ×2, and each next heads moves one step up the table: ×2, ×4, ×8, ×16, ×32, ×128. Tails ends the series, and tails on the first flip is a round with no prize. The series runs by itself and shows the best bet of the round, and the round's total is written under the game.

What decides a flip

The length of the series is fixed before the coin moves. The turns in the air and the pauses between flips are drawn by the page for looks.

The usual crypto coin flip is double or nothing: you call a side, and one flip decides. Heads or Tails has no call of a side. It is a streak game with a prize table: for a single bet, heads on the first flip comes up as often as a prize does, on 14% of spins, where a physical coin gives one in two. The table puts that frequency into multipliers of up to ×128 on one bet.

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”.

Heads or Tails prize table and chances

The table has 6 steps, and a prize lands on 14% 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”.

Chance per spin
The coin showsMultiplierPrize per spin, SOLChance per spinOnce in how many spins
1 heads×20.027.3%1 in 14
2 heads in a row×40.043.65%1 in 27
3 heads in a row×80.081.83%1 in 55
4 heads in a row×160.160.842%1 in 119
5 heads in a row×320.320.351%1 in 285
6 heads in a row×1281.280.0702%1 in 1,425

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.1% 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

  1. 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.
  2. 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

  1. 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.
  2. 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.
  3. 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

Is a Solana coin flip 50/50?

A classic double-or-nothing flip is. FAIRDRUM Heads or Tails is a streak game: the contract picks a step of its prize table, and the coin shows that step as a number of heads in a row. The chance of every step is in the table on this page.

Can the site or the player change a flip?

No. The contract computes the length of the series from the round number before the coin moves, and after the bet that number cannot be changed. The page only draws the flips.

Is a fee taken from a coin flip prize?

The project takes no fee from a table prize or from a withdrawal. Its share is inside every bet. On top of the bet there is only the Solana network fee.

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.