Skip to content

A Farcaster frame that allows users to mint NFTs on solana directly to their wallets or email after recasting and liking the cast.

Notifications You must be signed in to change notification settings

avneesh0612/farcaster-frame-solana

Repository files navigation

NFT minting Farcaster frame on Solana

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

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.

How to use

Deploy the frame to vercel:

Deploy with 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 variable CROSSMINT_ENV and set it to www.
  • 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.

About

A Farcaster frame that allows users to mint NFTs on solana directly to their wallets or email after recasting and liking the cast.

Topics

Resources

Stars

Watchers

Forks