
APT-Casino
A Fully On-Chain, Provably-Fair Casino Powered by Pyth Entropy 6 blocks lightning speedVRF
Demo
About
A couple of days back, I was was on etherscan exploring some transactions and saw an advertisement of https://stake.com/ which was giving 200% bonus on first deposit, I deposited 120 USDT into stake.com they gave 360 USDT as total balance in their controlled custodial wallet and when I started playing casino games I was shocked to see that I was only able to play with $1 per game and was unable to increase the betting amount beyond $1 coz and when I tried to explore and play other games on the platform the issue was persisting, I reached the customer support and got to know that this platform has cheated him under the name of wager limits as I was using the bonus scheme of 200%. When I asked the customer support to withdraw money they showed a rule list of wager limit, which said that if I wanted to withdraw the deposited amount, then I have to play $12,300 worth of gameplay and this was a big shock for me, as I was explained a maths logic by their live support. Thereby, In the hope of getting the deposited money back, I played the different games of stake.com like roulette, mines, spin wheel, etc, the entire night and lost all the money. I was very annoyed of that's how APT-Casino was born, all in one platform where new web3 users can play games, perform gambling, but have a safe, secure, transparent platform that does not scam any of their users. Also, I wanted to address common issues in traditional gambling platforms. Problems The traditional online gambling industry is plagued by several issues, including: - Unfair Game Outcomes: 99% of platforms manipulate game results, leading to unfair play. - Restrictive Withdrawal Policies: Withdrawal limits and conditions often prevent users from accessing their funds. - Bonus Drawbacks: Misleading bonus schemes trap users with unrealistic wagering requirements. - Lack of True Asset Ownership: Centralised platforms retain control over user assets, limiting their freedom and security. - User Adoption of Web2 users: Bringing users to web3 and complexity of using wallet first time is kinda difficult for web2 users. - No Social Layer → No live streaming, no community chat, no collaborative experience. Solution APT-Casino addresses these problems by offering: - Provably Fair Gaming: Utilising the PYTH ENTROPY, my platform ensures all game outcomes are 100% transparent and verifiably fair. - Flexible Withdrawal Policies: Providing users with unrestricted access to their funds. - Transparent Bonus Schemes: Clear and Clean bonus terms without hidden traps. - True Asset Ownership: Decentralised asset management ensures users have full control over their assets. - Fully Gasless and Zero Requirement of Confirming Transactions: Our Users does not require the user to pay gas fees, it's paid by our treasury address to approve a single transaction we do it all, they can just play as of they are playing in their web2 platforms. - Live Streaming Integration → Built with Livepeer, enabling real-time game streams, tournaments, and live dealer interaction. - On-Chain Chat → Socket.IO + wallet-signed messages ensure verifiable, real-time communication between players. Casino games as modular, composable primitives (Roulette, Mines, Plinko, Spin Wheel), designed to be: - Provably fair (pyth entropy verified on-chain), - Gas-efficient (L2 execution on Arbitrum), - Composable (shared interfaces, shared bankroll & risk controls), - Extensible (drop-in adapters for future RNG providers, payments, or account-abstraction). Roulette (European): Supported bets: Straight, Split, Street, Corner, Line, Dozen, Column, Red/Black, Odd/Even, High/Low. Resolution: n = randomWord % 37. Payouts follow standard 35:1 down to 1:1. Fairness: No biases; same distribution for all spins; house edge encoded as payout schedule. Mines: Grid: 5×5 with 1–24 mines configured per round. Seeded layout: Mines placement derived from randomWord with Fisher-Yates permutation. Cash-out anytime: Progressive multiplier curve; payout locked at cash-out event. Plinko: Tree depth configurable; path bits read from randomWord. Slot table defines multipliers; risk modes adjust tail heaviness. Spin Wheel: Segments with different multipliers; segment index = randomWord % N. Risk tiers (low/med/high) mapped to segment tables with different EVs.
How it's made
Arbitrum Blockchain: Ensures transparency, security, and efficiency in all transactions and game outcomes. PYTH Entropy: Guarantees fair and unbiased game results. Frontend → Next.js + TailwindCSS for smooth, responsive UI. Relayers → Gasless UX powered by treasury-funded relayer infrastructure. Livepeer → Live video streaming integrated for casino games & tournaments. Socket.IO & Supabase→ Real-time on-chain chat with cryptographic message signing.