Skip to content

Latest commit

 

History

History

bubblegum_CompressedNFT

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Metaplex Bubblegum (Compressed NFT)

Metaplex Bubblegum example codes.

How can I __?

How to create Compressed NFT?

STEP1: Create Merkle Tree STEP2: Create Collection Standard NFT (Standard NFT = Non-compressed) STEP3: Mint Compressed NFT to Collection

How can I get Asset ID when I minted cNFT?

Use Parse Leaf function in @metaplex-foundation/mpl-bubblegum.

  • without Collection: parseLeafFromMintV1Transaction
  • with Collection: parseLeafFromMintToCollectionV1Transaction

Look at src folder.

How can I identify cNFT?

  • Merkle Tree x Leaf Index => Asset ID(cNFT)
  • Merkle Tree x cNFT Mint Signatuer => Asset ID(cNFT)

FAQ

What's Asset ID?

It's similar Mint Address.

What's Leaf owner?

It's same as Mint Owner.

Which should I mint without Collection or with Collectioin?

I recommend mint with Collection. Because it's standard(e.g. Marketplace).

Setup

% cp .env.example .env

Then, write your Helius or Shyft API in .env.

Run

% npm i
% ts-node src/<TS_FILE>

Compatible with cNFT

Explorers

Explorers Devnet Mainnet
XRAY
SolanaFM N/A
Solscan N/A N/A
Shyft Translator N/A N/A
Solana Explorer N/A N/A

as of Jan.7.2024

RPCs

Metaplex DAS API RPCs