How to Mint NFTs on Solana
Minting NFTs on Solana involves several steps, from setting up your wallet to creating and deploying your NFT. Here's a comprehensive guide:
Prerequisites

Solana Wallet (Phantom, Solflare, or Backpack)
SOL tokens for transaction fees (0.01-0.05 SOL typically needed)
Node.js installed on your computer
TypeScript/JavaScript knowledge (for CLI method)
Method 1: Using a Platform (Easiest)
Choose an NFT platform:
Metaplex (https://www.metaplex.com/)
Magic Eden (https://www.magiceden.io/)
SolSea (https://solsea.io/)
Connect your wallet to the platform
Upload your media file (image, video, etc.) and metadata
Configure your NFT:
Name
Description
Royalty percentage
Properties/attributes
Pay the minting fee and confirm the transaction
Method 2: Using Command Line (More Technical)
1. Set Up Your Environment
npm install -g @solana/cli @metaplex-foundation/metaplex
2. Configure Solana CLI
solana config set --url devnet # or mainnet-beta for production
3. Create NFT Metadata
Create a JSON file (e.g., metadata.json):
{
"name": "My NFT",
"symbol": "MNFT",
"description": "My first Solana NFT",
"seller_fee_basis_points": 500, // 5% royalty
"image": "image.png",
"attributes": [
{"trait_type": "Rarity", "value": "Common"}
],
"properties": {
"files": [{"uri": "image.png", "type": "image/png"}],
"creators": [
{
"address": "YOUR_WALLET_ADDRESS",
"share": 100
}
]
}
}4. Mint the NFT
Using Metaplex's sugar CLI:
sugar create-config sugar upload sugar deploy sugar verify
Method 3: Using Solana Program Library (SPL Token)
For developers who want more control:
Create a new SPL token
Set supply to 1 (for NFT)
Create metadata account using Metaplex Token Metadata program
Upload your asset to Arweave or IPFS
Important Notes
Test on devnet first before using mainnet
Storage: NFT assets are typically stored on Arweave or IPFS, not on-chain
Royalties: Configured during minting and enforced by marketplaces
Verify: Always verify your NFT after minting
Costs
Devnet: Free (test SOL available from faucets)
Mainnet: Approximately 0.01-0.05 SOL for minting
