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)

Create a space

PreviousOverviewNextCalculate a space

Last updated 1 year ago

First, we create an on-chain "space" to store cNFTs.

Once the space is created initially, it can be utilized until the storage capacity of the space is full.

example

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

const inst = await CompressedNft.createSpace(
  "7tm6RBvnYNUb4N6Pvkc4JMk1AZX...", // secret key of the space owner
  10000,                            // space size
);

await inst.submit();

space size: The available space sizes are: 8, 16,000, 1,00,000, 16,700,000, 67,000,000, 1,000,000,000


createSpace | Solana Suite API Reference