Search projects, hackathons, sponsors and tech

    ← All projects

    NFTZen

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

    About

    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.

    How it's made

    This project uses a few pieces of tech: - Magic Connect SDK - Basic solidity contract - React 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.