Our games are provably fair and perpetuated by the blockchain. You can calculate the winning result for any block backwards, but you cannot know the outcomes for the future. The spinning wheel and the dice on our website are only a graphical representation of the result, that is actually calculated from the Chia blockchain block header hash and a secret plaintext, set in advance and valid 24h.
For the coin game, we calculate the result using your coin name and our secret plaintext.
A single game lasts 5 blocks of the Chia blockchain. We gather all bets made in each 5 blocks (transactions confirmed in blocks ending in 1 to 5 and blocks ending in 6 to 0). The result of the bets is than calculated from header hashes of blocks ending in 5 and in 0.
Example: you send your bet in XCH to our receive address and see the following in your Chia wallet:
Your transaction is confirmed in block 1,504,884, so we include it in the game of blocks from 1,504,881 to 1,504,885. The result for this block will be calculated from the header hash of block 1,504,885 and a secret plaintext generated in advance. Nobody can predict the outcome or change it.
In rare cases, where the blocks of the blockchain rearange themselves after we fist see the transaction (called the Foliage), the correct transaction block is the one where we first observed the transaction.
Here is how the result is calculated:
HMAC(algorithm=SHA256, data=header_hash, key=secret_plaintext). We take first 12 digits of the outcome, calculate it from hexadecimal to decimal and then:
For the Ultimate Wheel: We divide this number by 21 and then multiply the decimal part with 21.
We always add +1 to the result, to avoid 0.
For the Magic Dice: We divide this number by 6 and then multiply the decimal part with 6.
We always add +1 to the result, to avoid 0.
The table of winnings for each game is below:
Field number WHEEL | Multiplier |
---|---|
1 | 4 |
2 | 0 |
3 | 1.5 |
4 | 2 |
5 | 0 |
6 | 1.5 |
7 | 1.5 |
8 | 0 |
9 | 2 |
10 | 2 |
11 | 0 |
12 | 1 |
13 | 0.5 |
14 | 0.5 |
15 | 0 |
16 | 0.5 |
17 | 0 |
18 | 2 |
19 | 0 |
20 | 0.5 |
21 | 0 |
Field number DICE | Game | Multiplier |
---|---|---|
1 | Bet on Odd | 1.93 |
Bet on 1 and 2 | 2.75 | |
Bet on 1 | 5.55 | |
2 | Bet on Even | 1.93 |
Bet on 1 and 2 | 2.75 | |
Bet on 2 | 5.55 | |
3 | Bet on Odd | 1.93 |
Bet on 3 and 4 | 2.75 | |
Bet on 3 | 5.55 | |
4 | Bet on Even | 1.93 |
Bet on 3 and 4 | 2.75 | |
Bet on 4 | 5.55 | |
5 | Bet on Odd | 1.93 |
Bet on 5 and 6 | 2.75 | |
Bet on 5 | 5.55 | |
6 | Bet on Even | 1.93 |
Bet on 5 and 6 | 2.75 | |
Bet on 6 | 5.55 |
Formula to get the random winner:
HMAC(algorithm=SHA256, data=coin_name, key=secret_plaintext). We take first 12 digits of the outcome, calculate it from hexadecimal to decimal. If the number is divisable by 2 (even number), you win, if the number is odd, we win.
Here are the hashes for secret plaintexts by day. The secret plaintext will be released every day at midnight CET and you can check it against the hash using SHA256(secret_plaintext).
Date | Secret Plaintext | Secret Hash | Date / Secret Plaintext / Secret Hash |
---|---|---|---|
2025-01-17 | 0x9b580a4bd9b1c5111217a61a2e79bfbed8a906f29044b77a317d3899cb8b1825 |
2025-01-17
0x9b580a4bd9b1c5111217a61a2e79bfbed8a906f29044b77a317d3899cb8b1825
|
|
2025-01-16 | 0xc72ab78a0fc382c5e1d175fc3b4337e06856153aa116f7aa17e4942a42dfd870 |
2025-01-16
0xc72ab78a0fc382c5e1d175fc3b4337e06856153aa116f7aa17e4942a42dfd870
|
|
2025-01-15 | 0x3f32343140148365140351e7b441e7505842fc944883c0bd3d9962f646c38bfa | 0xc8062a447af6beb2c46f51be57ec7ee7412fa8754709e472ac6eb086000dd8b1 |
2025-01-15
0x3f32343140148365140351e7b441e7505842fc944883c0bd3d9962f646c38bfa
0xc8062a447af6beb2c46f51be57ec7ee7412fa8754709e472ac6eb086000dd8b1
|
2025-01-14 | 0x20a9a42c3b1b4aff602c68538c8062d7d85cc1160e5021d83005c84586a4f78a | 0xdf555271dd4eff5add09946bfc22f9ddaca313ce98e3e0ab27c80163aaf946ea |
2025-01-14
0x20a9a42c3b1b4aff602c68538c8062d7d85cc1160e5021d83005c84586a4f78a
0xdf555271dd4eff5add09946bfc22f9ddaca313ce98e3e0ab27c80163aaf946ea
|
2025-01-13 | 0xc07bd05d27cf221c5fad282fb19caf80feebc13649317470e978408e90ef075c | 0x438460e5189e4ee45582bda4d5224e11def783822ef0b20f26a4c9e98da84fa6 |
2025-01-13
0xc07bd05d27cf221c5fad282fb19caf80feebc13649317470e978408e90ef075c
0x438460e5189e4ee45582bda4d5224e11def783822ef0b20f26a4c9e98da84fa6
|
Each ticket is calculated into a numeric value. The prizes are than given out in a descending manner (highest number wins). The formula to get the value for each ticket is:
HMAC(algorithm=SHA256, data=coin_name, key=block_header_hash). We take first 12 digits of the outcome, calculate it from hexadecimal to decimal. If an user purchases multiple tickets, the data field in calculation is created from coin name and addition of a -$number. For example, first ticket is coin_name-1, second coin_name-2 and so on. The block_header_hash is taken from first block ending in 10 after the pay-in round is closed (for example, block 2,000,010).