-
-
Original Splash screen
-
Login/Signup Screen
-
Signup Generate private key screen
-
Instructions screen
-
Wallet Screen
-
Sent Electroneum to another account
-
Swap Chip Screen
-
Buy CHIP Screen
-
Buy chip in progress screen
-
Game List screen
-
Slot Machine
-
Fortune Wheel
-
Mystic Dice screen
-
Roulette Betting Board screen
-
Roulette wheel spin
-
Game Lost screen
-
Game WIN Screen
-
Profile Management screen
Inspiration 🎰🚀
In today's modern world, cryptocurrency is everywhere, yet if you browse app stores, you'll find very few real crypto casino apps. Most casinos operate through websites, while mobile gaming has become the preferred and most convenient way for users to play anytime, anywhere. Unfortunately, most casino-style apps on the Play Store are either fake, offer no real value, or rely on in-app purchases with fiat money, removing the sole fact of winning real money in casino, and not leveraging the electronic way of money.
Blockchain technology presents an alternative way of thinking about money—with electronic currency and smart contracts, there is nothing stopping us from creating a truly decentralized and autonomous casino, which ensures fair and transparent gameplay, allowing users to wager real crypto instead of fake in-game coins, as seen in most casino apps.
When I came across Electroneum’s blockchain, I saw a unique opportunity. With its ultra-fast single-block finality and low transaction fees, it provides the perfect foundation for a seamless gaming experience. Unlike Ethereum, where users often pay $1–$2 per transaction, causing bottlenecks and unnecessary expenses, Electroneum allows for instant transactions at a fraction of the cost. This ensures that players only spend their bet amount—just like in a real-world casino.
With faster transactions, ultra fast single block finality, lower transaction fees, and blockchain transparency, I envisioned integrating crypto into online casinos, creating real utility for Electroneum token, while dominating the online casino market with cryptocurrency.
What it does 🎰💰
ETN Vegas is an online crypto casino powered by the Electroneum (ETN) token, designed to provide a decentralized and immersive gaming experience.
Key Features:
Integrated Electroneum Wallet:
ETN Vegas comes with a built-in Electroneum wallet, making it easy to send and receive Electroneum (ETN) securely without leaving the app. 🔑Buy & Swap Chips:
Players can use their Electroneum to buy chips within the app, and they can also swap chips back into Electroneum 🪙
Exciting Games Supported:
ETN Vegas currently offers four classic and fun casino games:
Slot Machine:
Spin and win! The game includes numbers from 1 to 10, and you win if two or three numbers are same. It's a fast-paced and fun game with simple rules! 🎰Fortune Wheel:
Bet on a number on the fortune wheel. If your chosen number matches the result, you win your original bet amount plus a betamount X choice. Classic yet exciting! 🎡European Roulette:
Experience the traditional roulette game! Bet on a variety of options:- Single number, odd/even, red/black, high/low, dozen bets, column bets, and more.
- All bets are supported except corner and split bets. Place your bet and let the wheel decide! 🎯
- Single number, odd/even, red/black, high/low, dozen bets, column bets, and more.
Mystic Dice:
Inspired by craps, but is a much simpler and fun version, this game lets you predict the face a dice will land on. Get it right, and you win your original bet plus a *bet amount X choice *. 🎲
Fair Gameplay with Real Casino Experience:
- Just like in a real casino, if you lose, only your bet amount is deducted, and no extra charges are added. This ensures you get a fair, transparent gaming experience. 🏠
Profile Management Features:
- Private Key Management:
Users can easily view their private key, back it up manually, and manage all wallet activities securely. 🔒 - Wallet Functionalities:
Whether you're logging out, logging in from an existing wallet, or generating a new wallet, all these actions are streamlined for easy access. 🔐
Over time, I envision ETN Vegas to expand into a full-fledged online casino, supporting 10-20 traditional casino games to offer an even more immersive and diverse gaming experience to players around the globe.
Architecture of Our DApp 🏗️
Below is a visual representation of our DApp's architecture:
How we built it 🔧💻
Our ETN Vegas app was built using a combination of cutting-edge technologies, leveraging Electroneum’s blockchain and modern development tools for an optimal gaming experience. Here’s how we made it happen:
Backend - Smart Contract 💡
We deployed a smart contract on the Electroneum network, encoding the core logic of the casino. We chose Electroneum for its ultra-fast, single block finality, low transaction fees, and high-speed transactions to ensure a smooth and efficient gaming experience. ⚡️
Frontend - Android App 📱
The frontend of the app is an Android application built using Android Studio. The app is compiled and packaged into a signed APK for easy installation on any Android device. 🔐
Additionally, we’ve created a website to allow users to download the app directly until it is listed in the android playstores, Listing to aptoide playstore is under review. 🌐
Technologies Used ⚙️
- Java, Gradle, Web3j, and Android Studio were used to develop the Android app.
- Solidity was used to build the smart contract.
- We also used solc to generate a Java wrapper for our smart contract, enabling seamless interaction between the smart contract and the Android app. 🤖
By combining these technologies, we’ve created a smooth, decentralized gaming experience backed by Electroneum's blockchain power. 🚀
Challenges we ran into
1. Finding the Correct Web3j Library 🔧
I faced the challenge of finding a compatible Web3j library that worked well with the Solc version for generating a smart contract wrapper. After extensive experimentation and research, I discovered the right combination of Bouncy Castle, Web3j, and Solc libraries to make everything work seamlessly. ⚙️
2. Managing Multiple Games in the UI 🎮
Managing multiple games in the app’s UI was initially tricky. I wanted to make sure the app remained user-friendly and scalable. To solve this, I decided to make the UI modular, meaning adding a new game only requires creating two activities and a card layout. This approach ensures flexibility as I continue adding more games. 🧩
3. Generating Random Numbers in Solidity 🎲
Since blockchain technology doesn't provide a true source of randomness, generating random numbers in Solidity was a challenge. Initially, I considered using an oracle service to solve this, and I plan to implement that later. For now, I’ve passed the source of randomness directly from the application to maintain fairness in the game outcomes. 🔒
4. Managing Game Logic and Gas Fees ⛽
Gas optimization is essential especially when it comes to managing complex game logic. To solve this, I optimized the smart contract by converting several functions into mappings and increased a one-time fee during the contract creation to reduce the overall gas costs for the user. 💸
5. Encoding Roulette Bet Board for Solidity 🎯
The challenge with encoding the roulette bet board was how to format it into something that Solidity could understand. I solved this by using a uint256 array, where each position on the board is mapped to a specific index of the array. This method allows efficient tracking of bets on the roulette table. 🎰
6. Frequent Chip and Electroneum Swaps 💰
Managing the frequent swapping of chips and Electroneum tokens was a problem, as users may swap CHIPS to ETN too quickly. To address this, I introduced a withdrawal fee, which encourages users to play before making a withdrawal, keeping them engaged with the platform longer. 🔄
Accomplishments that we're proud of 🎉
Developing a Production-Ready Casino App 🎰
I’m proud to have created a nearly ready-to-launch casino app, which supports classic games like European Roulette. The app offers a seamless and immersive experience, ready for users to enjoy.Writing and Optimizing Game Logic in Solidity 🔧
I’m glad to have written modular game logic in Solidity, while also optimizing gas fees. This ensures that users experience smooth and efficient gameplay. Additionally, adding new games to the smart contract is now easy and scalable. 💡Successfully Using Web3j and Blockchain Tools 💻
I’m happy with how I used the Web3j library, Bouncy Castle, and Solc to generate blockchain transactions and broadcast them directly from the Android app. It was my first time building a DApp on Android, and it was an exciting learning journey. 🚀Creating a Clean, Visual, and Aesthetic UI 🎨
I’m proud of the UI design I developed, which gives users a casino-like experience. I’ve received positive feedback from colleagues and friends, which reassures me that the visual appeal enhances the user experience. ✨Building Utility for the Electroneum Blockchain 💎
I’m also proud of creating a useful application that leverages the Electroneum blockchain to provide real utility to users. This adds meaningful value to the whole crypto ecosystem. 🔗
What we learned 🚀
Blockchain Efficiency with Electroneum 🛠
I learned how the Electroneum blockchain provides ultra-fast single block finality, enabling real-time gaming experiences with zero delays. This was critical for our casino app, as it allowed smooth gameplay without any lag, which is essential for user engagement.Low Transaction Fees and Seamless Gameplay 💸
I discovered the power of low transaction fees on the Electroneum network, which ensures that users only pay for their bet amount and minimizes additional costs. This helps maintain the focus on the game and reduces the risk of losing more money on transaction fees.Solidity Smart Contract Optimization 🧠
Through the hackathon, I gained experience in writing modular game logic in Solidity and optimizing gas fees. By using mapping and one-time fees during contract creation, I was able to make the gaming process more efficient, allowing for a scalable and cost-effective solution.Integration of Web3j for DApp Development 📱
I learned how to use the Web3j library, Bouncy Castle, and Solc to integrate the Electroneum blockchain with the Android app, broadcasting blockchain transactions smoothly from the mobile interface. This was my first experience building a DApp on Android, and it was an exciting challenge.User Experience with Crypto in Casino 🎰
By using Electroneum’s blockchain and integrating its features into the casino app, I realized how crypto can enhance transparency and fairness in online casinos. Additionally, providing users with real utility tokens (ETN) rather than fake coins brings more value and trust to the gaming experience.Android UI Design with Grid Layouts 📱💻
I learned how to use GridLayout in Android to create a dynamic roulette board, allowing for flexible and scalable layouts. The grid layout made it easy to manage the placement of roulette positions and customize them based on screen size, which is crucial for delivering an optimal experience on various devices.Handling Dynamic Content in Mobile UI 🔄
I gained hands-on experience in handling dynamic content and state changes on the mobile app. For instance, the ability to update the game results in real-time, adjust the balance of chips, and display user data efficiently, was key to improving user engagement and minimizing lag.Optimizing Android App Performance ⚡
I learned about performance optimization in Android, ensuring that the app runs smoothly even with high-frequency game updates. I focused on using asynchronous background tasks for network requests, minimizing UI thread blocking, and keeping the app responsive.Balancing Security and Usability 🔒
Creating the Electroneum wallet within the app taught me the importance of balancing security and usability. I focused on ensuring that private key management and wallet backups were secure, while also making them easy to access and use for the player without compromising on the overall gaming experience. To handle security I used shared preference of android studio.
What's next for ETN Vegas 🚀
Gather Funding for Initial Liquidity & Promotion 💸
The next step is to secure funding to ensure initial liquidity and promote the app across various channels. This will help us reach a wider audience and make ETN Vegas available on multiple app stores, further boosting its presence.Create an iOS Version of the App 📱🍏
To expand the user base, I plan to create an iOS version of the app, making ETN Vegas accessible to iPhone users. This will ensure that players across both major platforms can enjoy the casino experience seamlessly.Modular Smart Contract Design 🔧
I aim to enhance the smart contract architecture by making it more modular. This will involve splitting the logic for different games into separate smart contracts, allowing new games to be added without the need to update the backend contract or migrate data, ensuring flexibility and scalability.Improving Visual Appeal of the Android App 🎨📲
One of the primary goals is to make the Android app more visually appealing with modern UI elements, smooth animations, and an overall polished design to improve user experience and increase engagement.Integrate NFT Gambling Features 🖼️💎
I will also introduce NFT-based gambling features. By allowing players to bet with unique NFTs, we can offer a more innovative and exclusive experience, integrating the world of digital collectibles into the casino environment.Expand Game Portfolio 🎮🎰
Over the long term, I plan to grow ETN Vegas into a full-fledged casino app supporting 10-20 games. This will include a variety of popular casino games such as Blackjack, Poker, Baccarat, and more, providing users with a rich and engaging experience.Loyalty & Rewards Program 🏆🎁
After profitting from the intial release, I plan to add a loyalty program to reward regular players with bonus chips, exclusive NFTs, and free spins could significantly enhance user engagement and retention. Players can earn rewards based on their activity and participation in games.
Built With
- android
- android-studio
- electroneum
- html5
- java
- solidity
- web3

Log in or sign up for Devpost to join the conversation.