Pick a side (tails or heads). Deposit ETH. Flip a coin. Win 190% or loose 100% of your deposit.
This project utilizes Chainlink VRF (Verifiable Random Function) and it's just for demonstration purposes.
Install dependencies with
npm installRun local node with
npx hardhat nodeDeploy to local network with
npx hardhat run --network localhost scripts/deploy.jsRun tests with
npx hardhat testCheck tests coverage with
npx hardhat coverage