Description

This project allows users to stake their MATIC tokens into the lottery contract and when the lottery is drawn by the contract owner, all the tokens in the contract will disperse to the winner. This platform is meant to allow users to participate in gambling in a decentralized manner. This platform also allows users to mint an NFT to prove their membership/interaction with the platform.

web3-lottery showcase

How it's made

This project leverages the mumbai polygon network as the backend. The contract was built using solidity and was deployed on the mumbai testnet. Users interact with the contract through their metamask on the mumbai network. The frontend was built using web3.js and next.js. Minting nft's was built using the nftport's api and downloading blockchain data was built using the convalent api. The nft's are deployed on the polygon mainnet.