current location:Home >> Solana Tutorial >> how to mint nfts on solana

how to mint nfts on solana

admin Solana Tutorial 531

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

  1. how to mint nfts on solana

    Solana Wallet (Phantom, Solflare, or Backpack)

  2. SOL tokens for transaction fees (0.01-0.05 SOL typically needed)

  3. Node.js installed on your computer

  4. TypeScript/JavaScript knowledge (for CLI method)

Method 1: Using a Platform (Easiest)

  1. Choose an NFT platform:

  2. Connect your wallet to the platform

  3. Upload your media file (image, video, etc.) and metadata

  4. Configure your NFT:

    • Name

    • Description

    • Royalty percentage

    • Properties/attributes

  5. 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:

  1. Create a new SPL token

  2. Set supply to 1 (for NFT)

  3. Create metadata account using Metaplex Token Metadata program

  4. 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

If you have any questions or uncertainties, please join the official Telegram group: https://t.me/GToken_EN

GTokenTool

GTokenTool is the most comprehensive one click coin issuance tool, supporting multiple public chains such as TON, SOL, BSC, etc. Function: Create tokensmarket value managementbatch airdropstoken pre-sales IDO、 Lockpledge mining, etc. Provide a visual interface that allows users to quickly create, deploy, and manage their own cryptocurrencies without writing code.

Similar recommendations