🎲 How does on-chain randomness work?

Unlike traditional games where randomness can be faked, our system guarantees fair draws using smart contracts and secure oracles.

Here’s how it works:

  1. You place a bet via a smart contract.

  2. The contract requests a random number from Pyth Entropy.

  3. Pyth generates the number using two secure seed values:

    • One from our platform

    • One from Pyth’s oracle

  4. The final number is cryptographically signed and returned.

  5. The winner is determined, and payouts are instant.

Everything is recorded on-chain. The system is immutable and verifiable by anyone.

🧠 For tech-savvy⬇️

BaseWin uses two smart contracts:

  • Game Contract – handles bets, draws, and payouts.

  • Randomness Contract (Pyth Entropy) – provides secure, verifiable randomness.

Step-by-step flow:

  1. User triggers a draw by placing a bet.

  2. Game contract requests randomness from Pyth Entropy.

  3. Two independent seeds are combined securely.

  4. Pyth signs and returns the result.

  5. Game contract calculates the winning ticket.

  6. If the user wins, funds are sent automatically.

Why this matters:

✅ Secure: Dual-seed generation prevents manipulation.

✅ Transparent: All events are on-chain and auditable.

✅ Decentralized: No one — including us — can alter the outcome.

Last updated