NFTZen
Basic tamagotchi NFT with dynamic on chain metadata that you keep alive by feeding it
Screenshots




Problem Statement
I wanted to create an NFT where the user was required to continuously engage with it. I was inspired by the concept of a Tamagotchi, where players are required to feed and take care of their pet, or else it dies. This is a proof of concept whereby a player must continuously feed their NFTZen (NFT citizen) or else it dies.
Solution
This project uses a few pieces of tech:Magic Connect SDKBasic solidity contractReact Once the user authenticates via Magic, they can interact with their NFT via the feed transaction. Feed updates the "lastFed" parameter which is used to determine if there's any food left for the NFT citizen. Food remaining = maxFood - foodConsumptionRate*timeElasedSinceLastFed.For this proof of concept, the contract is actually points to a global lastFed parameter, but the plan is to fast follow this with a real ERC721.
Hackathon
ETHSanFrancisco 2022
2022
Contributors
- vmathur
17 contributions