A Farcaster frame that allows users to mint NFTs on solana directly to their wallets or email after recasting and liking the cast. Check out the blog for more details on how to create this frame and check out this cast to see the frame in action.
Tools used in this project are:
- Next.js: We'll use next.js as our framework for creating the frame.
- Crossmint: To mint NFTs on solana to the user's wallet address or email, we'll use crossmint.
- Neynar: We will use neynar to check whether the user has recasted and liked the cast.
- Onchainkit: We will use the onchainkit to create the frame, and get the message from the frame on our server.
Deploy the frame to vercel:
Set the environment variables:
NEXT_PUBLIC_URL
: The URL of your next.js app.CROSSMINT_API_KEY
: The API key for crossmint. Head over to the API keys section in the Crossmint dashboard and create a new server key with permission to mint NFTs. Then, add the key as an environment variable.CROSSMINT_ENV
: If you switch over your app from testnet to mainnet, you can add the environment variableCROSSMINT_ENV
and set it towww
.CROSSMINT_COLLECTION_ID
: The collection id of the collection in which you want to mint the NFTs.
If you want to check whether the user has recasted and liked the cast, you can add the following environment variables:
WARPCAST_HASH
: The hash of the cast which you want to check has been recasted and liked.NEYNAR_API_KEY
The API key for neynar. You can get it from the neynar dashboard.