https://github.com/0xtan1319/mint-cnft-web3-integration
Mint cnft using metaplex bubblegum
https://github.com/0xtan1319/mint-cnft-web3-integration
Last synced: about 2 months ago
JSON representation
Mint cnft using metaplex bubblegum
- Host: GitHub
- URL: https://github.com/0xtan1319/mint-cnft-web3-integration
- Owner: 0xTan1319
- Created: 2024-11-26T05:55:59.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-11-26T14:38:40.000Z (6 months ago)
- Last Synced: 2025-02-05T10:25:10.509Z (3 months ago)
- Language: TypeScript
- Size: 80.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Mint CNFT (Compressed NFT)
## How can I mint cnft?
### 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### 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/
```## Compatible with cNFT
### Explorers
| Explorers | Devnet | Mainnet |
| ---- | ---- | ---- |
| [XRAY](https://xray.helius.xyz/) | ✅ | ✅ |
| [SolanaFM](https://solana.fm/) | N/A | ✅ |
| [Solscan](https://solscan.io/) | N/A | N/A |
| [Shyft Translator](https://translator.shyft.to/) | N/A | N/A |
| [Solana Explorer](https://explorer.solana.com/) | N/A | N/A |
as of Jan.7.2024### RPCs
[Metaplex DAS API RPCs](https://developers.metaplex.com/rpc-providers#rp-cs-available)