PROVABLY FAIR
Verify your bets and learn how SmolPot uses blockchain to ensure nothing is rigged.
How It Works
1. Server Seed
A securely generated random value, created at the start of each round. The SHA-256 hash of this seed is immediately revealed to all players, ensuring transparency.
2. Public Hash (Monad Block)
After the round closes, we use the hash of a future Monad block. This block is chosen at the moment of the draw, and its hash acts as a random value that cannot be predicted or changed by anyone.
3. Winner Selection
After generating the final ticket using the server seed, public seed, and round ID, we assign ticket ranges to all confirmed bets. The winner is the player whose range includes the drawn ticket.
const crypto = require("crypto");
const serverSeed = "example_server_seed";
const publicSeed = "example_public_seed";
const roundId = "example_round_id";
const min = 0n;
const max = BigInt(total_pool_value);
const hash = crypto
.createHash('sha512')
.update(`${serverSeed}-${publicSeed}-${roundId}`)
.digest('hex');
const ticket = seededRandomBigInt(hash, min, max);
function seededRandomBigInt(hash, min, max) {
const uintValue = BigInt("0x" + hash.slice(0, 16));
const range = max - min + BigInt(1);
return min + (uintValue % range);
}Verify Round
Round History
Live data from completed rounds
Loading rounds...
