Web3 Slot Game Integration with Pi Coins

Job ID: 39415700

Budget: $10 – $50 USD

Technical Specification – “Pi for Spin” Web3 Slot Game

1. Project Overview

“Pi for Spin” is a web-based slot machine game hosted at https://piforspin.eu. The goal is to fully integrate Pi Coin payments using the Pi Wallet and make the game functional within the Pi Browser ecosystem.



2. Technology Stack
• Frontend: HTML5, CSS3, JavaScript (preferably React or optimized Vanilla JS)
• Backend: Node.js (Express) or Python (Django/Flask)
• Database: MongoDB or PostgreSQL
• Hosting: Currently on Hostinger
• Blockchain SDK: Pi SDK (https://developers.minepi.com/)



3. User Authentication
• Login using Pi SDK Authentication
• Backend to handle sessions or JWT tokens for security
• Auto-create user profile on first login with Pi credentials



4. Chips and Pi Coin Conversion
• Fixed rate: 1 Pi = 1000 chips
• Users can buy chips by paying with Pi via the Pi Wallet
• All purchase transactions must be logged in the backend



5. Chips Withdrawal to Pi
• Users may redeem chips back into Pi coins
• Daily withdrawal limit: 2 Pi per user
• If the limit is exceeded, the system should notify the user
• Backend must control and validate withdrawals securely



6. In-Game Hamburger Menu

Accessible from all screens, mobile-optimized, with the following sections:
1. Profile: User details, current chips, lifetime Pi earned, etc.
2. Refer a Friend: Generate personal referral link (e.g., https://piforspin.eu/?ref=username)
3. Buy Chip: Trigger Pi payment flow to purchase chips
4. Withdraw Chip: Request Pi withdrawal (up to 2 Pi/day)
5. History: Transaction history (purchases, games, withdrawals)
6. Privacy Policy: Link to the app’s privacy policy page



7. Backend Functionalities
• Store user data and balances securely
• Manage chip purchases and withdrawals
• Implement referral tracking and bonuses
• Monitor and enforce daily withdrawal limits
• (Optional) Admin dashboard to monitor activity and logs
Related categories: JavaScript HTML5 Web3.js