CoinFlip

Provably Fair On-Chain Casino Game

A minimalist, on-chain coinflip game proving the feasibility of decentralised gambling infrastructure.

Built with Solidity, React, and WalletConnect, deployed on Base Sepolia with full test coverage.

Delivered as a POC for a licensed gambling partner who ultimately disengaged post-deployment.

Overview

Coinflip is a fully on-chain, provably fair betting game developed as a working proof of concept for a licensed UK/Dubai-based gambling distributor. The project demonstrates a practical implementation of decentralised gambling mechanics, offering trustless, transparent, and auditable gameplay using blockchain-native infrastructure.

We delivered a complete solution encompassing both backend and frontend components. The smart contracts were written in Solidity and use block hash entropy with a delayed result resolution (block N+8) to ensure fairness and eliminate miner predictability. The contracts include full Hardhat test coverage, gas optimisations, and a flexible payout structure designed to accommodate house fees or token-based incentive layers in future iterations.

The frontend dApp was built in React and provides seamless multi-wallet support through WalletConnect, MetaMask, and Coinbase Wallet. It interacts directly with the deployed smart contracts on the Base Sepolia testnet. The application is fully hosted and operational on AWS and can be accessed at cf.gtc.finance.

The architecture was deliberately kept modular and lightweight, with a clean component structure enabling rapid extension to other game formats like dice or roulette. The gas usage was minimised without compromising verifiability or integrity.

Tech Stack

Solidity
Hardhat
Ethers.js
React
WalletConnec...
AWS
Base Sepolia...

Live Repositories

Status & Outcome

The project was fully delivered and deployed as a proof of concept. The PoC game remains live and functional. It is available for demonstration, integration, or licensing by other platforms interested in provably fair, on-chain gaming infrastructure.

CoinFlip Games List
CoinFlip Games List