Back to Blog

NFT Lootbox Sample

NFT Lootbox Sample

Try it out yourself! (must be on desktop)

NOTE: These NFT images are fake and were not used in the deployment of the real Core Disruption NFTs.

NFT lootbox is a showcase project to demonstrate my skills with Solidity and blockchain development based on work I have done at MPLEX.

I used Pinata to store the data in the backend for NFT images on blockchain's protocol, Interplanetary File System (IPFS).

You cannot see it in the GIF, but this connects via Metamask, which signs the request on behalf of the connected Metamask account!

I have used various testnets to deploy the blockchain. The best one to try out is Sepolia, so I went with that. In the future I can add an option to choose between different blockchains.

This is a smart contract built off of ERC721r, which is a randomized contact that uses the Fisher-Yates algorithm (similar to shuffling a deck of cards) in order to drive which NFT will be minted.

If you would like to try out the project, you can try it out at link above. You can only mint one NFT per wallet to avoid spam.

I also have the smart contract uploaded in a repository, as well as the site source code, if you wanted to try it out yourself!

Also, if you would like to view how NFTs could be used in game, you can download this free Unreal Engine 5 Showcase demo and input wallet addresses that were used to mint NFTs such as:

0x0146F396d141F02A4DFE203B81237fD70F5D217d 0x570472b3E9BDb4c943dc19F696fDE8618Aff5c88

References on Github for projects for download:

NFT Lootbox Showcase on Github

Randomized Contract built off of ERC721r on Github