Project Overview
User can enter lottery with ETH based on a USD fee. Here an admin will choose when the lottery starts and end (usually the person who deployed the contract). Once the lottery ends, it will select a random winner.
The random number is generated offchain using Chainlink VRF, using request and recieve protocol. A user not only pays for contract deployment, but also has to pay oracle gas fee using the respective LINK token, which then calls its associated function on the VRF network to get our random number. After the number is generated, a winner is selected and all the price amount is sent to their account.