project screenshot 1
project screenshot 2
project screenshot 3

web3-lottery

A lottery that allows users to stake their MATIC and if they are lucky, they will win the jackpot

web3-lottery

Created At

Road to Web3

Winner of

trophy

🏊 NFTPort Pool Prize

trophy

🏊 Polygon Pool Prize

Project 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.

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.

background image mobile

Join the mailing list

Get the latest news and updates