- Mint a set of NFTs
- Build a page that plays a video
- This page can only be accessed if you own atleast one of the minted NFTs
Giving a brief overview of the files:
Giving a brief overview of the files:
nft.sol
file. This smart contract consists of functions required to mint nfts, transfer nfts from one user to another and also a validating function to verify if a given account/user owns one among the many minted nfts. This function further helps us to determine whether the user should be given access to the webpage consisting the video. Through the IDE, we are able to mint these nfts and also have account 1 as their owner (for demonstrating the functioning of the above functions). The following are the files on ipfs used in the process of minting nfts.index.html
wherein the page prompts the user to select (if not already done!) their account on the metamask wallet extension. We have made use of test ether for demonstrating purposes on the ropsten test network. Once the user wishes to proceed onto the next page, they click the button shown below which then calls the validating function as described earlier and determines whether the user should be allowed to view the video or not. As account 1 is the owner of the nfts, they will be able to view the video (described in main.html
.