Under the hood
How a spin works
Your bet lives on-chain. The roll happens off-chain for real randomness. Here’s the whole loop.
- 1 ⛓ On-chain You bet Your transaction transfers tokens and records your bet on the SpinGame contract.
- 2 ⛓ On-chain Settlement Your $HIT goes to the House vault; the burn fee goes to the Burn Pit.
- 3 🎲 Off-chain We roll A secure random draw happens off-chain with real entropy.
- 4 ⛓ On-chain Finality The result is written to the contract, and a win is paid from the House in the same op. Until it lands on-chain, it isn’t final.
On the blockchain
Public, permanent, anyone can verify.
- SpinGame — the bet ledger. Every bet is a public record.
- $HIT House — the bankroll. Pays winners on command.
- Burn Pit — where the per-spin burn fee lands.
Off the chain
One job, on purpose.
- The roll — a cryptographically secure random draw decides your result.
Provable
Every bet and every settled result is on-chain. Nothing about your play is hidden in a private database.
Never lost
If our system ever blinks, your bet just waits on-chain. When we’re back, it settles automatically — or you hit Recover and pull it yourself. No spin is ever stranded.
Fair by design
On-chain, every value is public and re-computed by every node so random number fairness is not possible. We roll with a CSPRNG (a cryptographically secure generator seeded by real system entropy), unpredictable and impossible to game, then lock it in on-chain. Why on-chain randomness can’t be trusted ↗