A confidential on-chain casino built on Inco Lightning. Six games (Coin Flip, Dice, Mines, Plinko, Rock Paper Scissors, Slots) that run on Base Sepolia. You bet with native test ETH, no token or deposit step.
Inco has no synchronous on-chain decryption, so every game is two steps:
play...(...)locks your wager (sent as ETH) and draws a random seed withe.rand().settle(gameId, attestation, signatures)submits the covalidator attestation and pays out.
Bets are capped at 0.0005 ETH per round, and quick games can run up to 10 rounds in one go.
One contract holds the ETH bankroll and all six games. Verified on Basescan.
| Contract | Address |
|---|---|
| Casino | 0x5b5d7d4ad82bac6419c205c395fd208901592357 |
Chain id 84532. The owner funds and withdraws the bankroll from the /owner page.
contracts/ Solidity Casino contract, tests, deploy script
client/ Next.js frontend (wagmi + RainbowKit + viem)
cd contracts
npm install
cp .env.example .env # set PRIVATE_KEY_BASE_SEPOLIA
npm run compile
npm run deploy:baseSepolia # deploys + funds the bankroll, writes deployments/baseSepolia.json
npm testcd client
npm install
npm run devConnect a wallet on Base Sepolia, get some test ETH from a faucet, and play.
- Inco: https://www.inco.org
- Inco docs: https://docs.inco.org
- Explorer: https://sepolia.basescan.org
- Base Sepolia faucet: https://www.alchemy.com/faucets/base-sepolia