← Back to home

web3-lottery

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

Screenshots

web3-lottery screenshot 1
web3-lottery screenshot 2
web3-lottery screenshot 3

Problem Statement

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.

Solution

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.

Hackathon

Road to Web3

2024

Prizes

  • 🏆

    🏊 NFTPort Pool Prize

  • 🏆

    🏊 Polygon Pool Prize

Contributors