Mint a collection

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();

Last updated