Inspiration

I was inspired by navigating through the base app to look for interesting apps and I found framedl which was a lot like wordle on base app with some changes. I then thought about a game I liked playing which is more/less game with categories and came up with the idea to build it and try to add incorporate some fun ideas to it.

What it does

The game allows players to guess between two choices on whichever option has higher of some metric and in this instance I have built categories for Spotify monthly listeners and movie IMDb scores. The game runs once a day and is reset at midnight and has new unique artists and movies each time. I also made a leaderboard and a free-mint NFT that generates unique image and allows for user to mint gasless with paymaster.

How we built it

I built it by approaching the problem by looking up ways to first fetch the data for top artists and movies from APIs and we fetch from this once a day at midnight. I used Cursor and utilized the base docs to implement the mini app and used Wagmi and the farcasterminiapp to talk to the embedded Base account. On chain, I deployed a custom ERC-721 contract on base sepolia testnet that allows for players who finished the game to mint their daily achievements as NFTs using vercel open graph image generation automatically.

Challenges we ran into

I ran into challenges during the development on the game API that fetches the artists and the movies. For artists, the website would have global monthly listeners but it was mixed with many different artists but I wanted only english artists so I had to find a way to filter them through. I came up with the idea of using spotify's api with kworb website to filter to only include English genres.

Accomplishments that we're proud of

I am proud of the base mini app integration and the nft minting, I liked its concept and was able to make it work within the given time. The leaderboard is also fun as it includes the basenames ens for the names on the leaderboards grabbed from the base account that the user plays from. I am most proud of making the minting process secure, meaning it requires a signature so to mint, it has to be from the server side and users cant mint their own NFTs with fake achievements embedded.

What we learned

I learned a lot about Base mini apps, I wanted to use this hackathon to build on base for the first time and experiment although I've built on other networks. It was fun and opened a lot of doors to many other ideas that I see now possible. I also learned a lot about account abstraction and the embedded wallets that base mini apps has with the paymaster integration.

What's next for mintle

For mintle, I want to build more games and integrations on top of the current system with guess the chart, and more unique ideas in the future.

Built With

Share this project:

Updates