Skip to content

Metaplex

Metaplex

Metaplex is the NFT standard and tool suite on Solana, providing a complete solution for creating, selling, and managing NFTs. Metaplex is the foundation of the Solana NFT ecosystem.

Core Components

1. Token Metadata Program Defines the NFT metadata standard: - Name, symbol, URI - Creator information and royalties - Attributes and traits - On-chain and off-chain data

2. Candy Machine NFT minting and distribution tool: - Batch asset upload - Fair distribution mechanism - Whitelist and presale - Bot prevention

3. Auction House NFT auction and trading protocol: - Supports auctions and fixed prices - On-chain bidding - Automatic creator royalty distribution

4. Metaplex Storefront Customizable NFT marketplace frontend template.

NFT Standard

Metadata Account Each NFT has an independent metadata account (PDA):

PDA = ["metadata", metadata_program_id, mint_address]

Metadata Structure

pub struct Metadata {
    pub key: Key,
    pub update_authority: Pubkey,
    pub mint: Pubkey,
    pub data: Data,
    pub primary_sale_happened: bool,
    pub is_mutable: bool,
    pub collection: Option<Collection>,
    pub uses: Option<Uses>,
}

pub struct Data {
    pub name: String,
    pub symbol: String,
    pub uri: String,
    pub seller_fee_basis_points: u16,
    pub creators: Option<Vec<Creator>>,
}

Candy Machine

NFT Distribution Flow 1. Prepare assets (images + metadata JSON) 2. Upload to Arweave/IPFS 3. Configure Candy Machine 4. Users mint NFTs

Configuration Options - Total supply - Price - Start/end time - Whitelist - Presale mechanism

Royalty Mechanism

On-Chain Royalties Royalty percentage and recipients defined in metadata:

{
  "seller_fee_basis_points": 500, // 5%
  "creators": [
    {
      "address": "creator_wallet",
      "share": 100 // 100%
    }
  ]
}

Automatic Execution Supporting marketplaces automatically pay royalties on secondary sales.

Compressed NFT (cNFT)

Breakthrough Innovation Uses state compression technology to dramatically reduce NFT costs: - Traditional NFT: ~0.012 SOL each - cNFT: ~0.0001 SOL each (100x reduction)

Principle - Stores data using Merkle trees - Only the tree root is stored on-chain - Full data is stored off-chain - Ownership verified through Merkle proofs

Use Cases - Large-scale airdrops - Game items - Membership cards - Any scenario requiring low-cost minting

Programmable NFT (pNFT)

Rules Engine Adds on-chain rules to NFTs: - Transfer restrictions - Burn conditions - Delegation permissions - Custom logic

Use Cases - Game items (binding, upgrades) - Membership benefits (non-transferable) - Compliance (KYC required for transfers)

Metaplex Protocol

Open Standard All protocols are open source and available to anyone: - Markets can freely integrate - Developers can extend - Community can contribute

Interoperability NFTs following the Metaplex standard can be traded on all supporting marketplaces.

Mainstream Adoption

NFT Marketplaces - Magic Eden - Tensor - OpenSea (Solana support)

Creator Tools - Candy Machine - Sugar CLI - Metaplex Studio

Development Tools

Sugar CLI Command-line tool that simplifies Candy Machine operations:

# Create Candy Machine
sugar create-config

# Upload assets
sugar upload

# Deploy
sugar deploy

# Mint
sugar mint

JavaScript SDK

import { Metaplex } from "@metaplex-foundation/js";

const metaplex = new Metaplex(connection);
const nft = await metaplex.nfts().findByMint({ mintAddress });

Impact on the Ecosystem

Metaplex laid the foundation for the Solana NFT ecosystem: - Unified standards - Comprehensive tools - Active community - Continuous innovation (cNFT, pNFT)

  • cNFT: Compressed NFT, a Metaplex innovation
  • pNFT: Programmable NFT
  • Candy Machine: NFT distribution tool
  • Royalties: Creator share from secondary sales