ChainToss is a simple demo smart contract built in Solidity that simulates a coin flip game directly on-chain. Players send a fixed bet amount (0.01 ETH) and guess Heads or Tails. The contract then generates a pseudo-random result — if the player guesses correctly, they instantly win double their bet!
This project serves as an educational example, ideal for beginners learning:
Payable functions
Events
Randomness (and its limitations on-chain)
ETH transfers and balance handling
GitHub Link :- https://github.com/Aniruddha-Porey/CELO1-project
We aim to make blockchain development more accessible by creating simple, transparent, and educational smart contract examples. ChainToss helps beginners understand key Solidity concepts through real interaction, hands-on testing, and clear code structure.
ChainToss — Simple On-Chain Coin Flip
ChainToss solves this learning gap by providing a clean, minimal, fully on-chain coin flip game. It demonstrates:
How to accept and handle ETH inside a contract
How to emit events for transparency
How pseudo-randomness works (and why it’s unsafe for production)
How to automate payouts
How state variables track results and player interactions
It acts as a practical, interactive tutorial that new developers can deploy, modify, and experiment with.
India