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 

20230204  0x57ae2e5e4729c2ec166aca82a6e7bdedcaeceb30e4802fb88118f9aef2af8247 
20230204
0x57ae2e5e4729c2ec166aca82a6e7bdedcaeceb30e4802fb88118f9aef2af8247


20230203  0x47a21b060738f33d178877596d7d502ec44c9cc0bafe3cd8ba463c3d7772542a 
20230203
0x47a21b060738f33d178877596d7d502ec44c9cc0bafe3cd8ba463c3d7772542a


20230202  0x6f978863a6d993034ce51e649dcf6616eaa7fa1d51d5b0ec18d76c2125936ed6  0x5dbe947a396e1263894853f4e40949f22e0af8c4f3790478c1e7430cf104a4ee 
20230202
0x6f978863a6d993034ce51e649dcf6616eaa7fa1d51d5b0ec18d76c2125936ed6
0x5dbe947a396e1263894853f4e40949f22e0af8c4f3790478c1e7430cf104a4ee

20230201  0x7552401c22148741914f03154d4b6266a60fc47e8fbe64d0819c5b040f27cfbd  0x88de30c50e016b5bc9729064e5c5cd5046f9f3dbcf6322a9eb7e4d7f8f77bbe6 
20230201
0x7552401c22148741914f03154d4b6266a60fc47e8fbe64d0819c5b040f27cfbd
0x88de30c50e016b5bc9729064e5c5cd5046f9f3dbcf6322a9eb7e4d7f8f77bbe6

20230131  0x56ba1f8d33bb5cba5ec1287c16c83da7f66251148a90b8008c80601f385f2da7  0x3b4efaa4af36d1d7b72c6afb814b61eaec736bcd2c08ca41f44970512b13cf8c 
20230131
0x56ba1f8d33bb5cba5ec1287c16c83da7f66251148a90b8008c80601f385f2da7
0x3b4efaa4af36d1d7b72c6afb814b61eaec736bcd2c08ca41f44970512b13cf8c

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_name1, second coin_name2 and so on. The block_header_hash is taken from first block ending in 10 after the payin round is closed (for example, block 2,000,010).