We are developing a lottery app based on blockchain technology. The app will include various game variants, such as dice games. We are utilizing verifiable randomness on the blockchain to ensure fair play.
Our project is a decentralized casino platform developed for the HackFS 2024 hackathon, featuring a classic dice game. This platform leverages blockchain technology to ensure transparency, fairness, and security in gaming. By integrating DeFi principles, the casino allows users to place bets and receive payouts in cryptocurrency. Our main objective is to provide a seamless and trustless gaming experience where users can enjoy the thrill of casino games without the need for intermediaries. The decentralized nature of the platform guarantees that game outcomes are fair, and users can trust that their funds are safe.
The project is built using a combination of modern web and blockchain technologies. For the frontend, we utilized Next.js. We integrated several libraries to streamline blockchain interactions: Wagmi, which provides React hooks for Ethereum; RainbowKit, which facilitates a polished wallet connection experience; and Viem, for handling Ethereum JSON-RPC requests, enabling smooth communication between our frontend and the blockchain.
On the backend, we wrote our smart contracts in Solidity. These contracts encapsulate the core logic for dice game. We employed Hardhat for local testing, deployment, and other blockchain development tasks. Hardhat's comprehensive suite of tools enabled us to simulate blockchain interactions, ensuring our smart contracts are robust and secure before deployment.