How to create an NFT Drop on Solana

How to create an NFT Drop on Solana

This guide will show you how to deploy an NFT Drop to the Solana network.

By the end, you'll learn how to create a simple NFT Drop smart contract, deploy it to the Solana devnet, and mint an NFT on the program. Once you get the hang of the flow on testnet, you can deploy it to Solana Mainnet!

Let's get started!

What is the Solana Blockchain?

Solana is a blockchain built for mass adoption. It's a high-performance network that is utilized for a range of use cases, including finance, NFTs, payments, and gaming. Solana operates as a single global state machine and is open, interoperable and decentralized.

Create an NFT Drop on Solana

To begin, head to the Programs page in your thirdweb Dashboard and hit Deploy New Program:

deploy new program

You will be taken to the programs page — where you can choose which program you want to deploy. For this guide, we will choose the NFT Drop program:

Programs page thirdweb

Set up your program with an image, name, symbol, and description, and enter the total supply of your NFT Drop:

Setup your NFT drop

Now, let's deploy the smart contract on Solana Devnet! But before that, we need devnet funds.

Get devnet SOL in your wallet

Head over to the Solana faucet and connect your wallet. You will notice that the address your wallet is connected to will automatically be filled. Click on the Request Funds button here:

Request funds from Solana faucet

You will then see a toast saying funds have been sent to your wallet:

Funds have been sent to your wallet

Deploy the NFT Drop

Now that you have your devnet SOL. We can deploy our NFT Drop

We have already filled out the metadata so click on "Deploy Now" after selecting Devnet. It will prompt you to approve a transaction, approve it:

Confirm the transaction to deploy the contract

And you're done! You have just deployed to the Solana Devnet.

Setting Up Our NFT Collection

In our example, we created an NFT drop program, so we'll quickly set it up and mint our first NFT by performing the following steps:

  1. Lazy mint a batch of NFTs.
  2. Configuring our claim conditions.
  3. Claim an NFT from the drop!
We won't go into too much detail about this process in this guide, check out our other NFT Drop Guides for more information!

Once we've set up our NFTs, we can click the Claim button in the NFTs tab to mint our first NFT, and voilà! We just minted an NFT on the Solana devnet!

Claimed NFT

What's Next?

Now that you've deployed your smart contract, you can use our SDK to build a web3 application! Where users can connect their wallets and interact with the functions of your programs.

Need help?

For support, join the official thirdweb Discord server or share your thoughts on our feedback board.