Solana Suite Develpoment Guide
  • Overview
  • Features
    • Install
    • Function Driven
    • Result Type
    • Configuring settings
  • Usage
    • Airdrop in devnet
    • Compressed NFT(cNGFT)
      • Overview
      • Create a space
      • Calculate a space
      • Mint a collection
      • Mint the cNFT
    • Upload to decentrized storage
  • API Reference
  • Github
Powered by GitBook
On this page
  1. Usage
  2. Compressed NFT(cNGFT)

Mint a collection

PreviousCalculate a spaceNextMint the cNFT

Last updated 1 year ago

A Collection is a mechanism for grouping Solana NFTs.

example

import { CompressedNft } from "@solana-suite/compressed-nft";

const inst = await CompressedNft.mintCollection(
  "HTpCqDfm7NwxKrwaQww6yHp...",  // mint collection's owner Secret  
  {
    filePath: "./animals.jpeg",  // upload image path
    name: "Animals Collection",  // collection name
    symbol: "ANIC",              // collection symbol
  }
);

await inst.submit();

mintCollection | Solana Suite API Reference