OpenViSTAI · Agents · Blockchain · Crypto
Menu
Developer Tools

Compressed NFT Example Code

Compressed NFT Example Code is a public TypeScript repository demonstrating Solana state compression and workflows for creating, retrieving and transferring compressed NFTs. Its examples use hashes to fingerprint off-chain data and store those fingerprints in an on-chain Concurrent Merkle Tree.

Independent OpenViST project profile, based on linked sources.

Compressed NFT Example Code — OpenViST project profile in Developer Tools.
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when you want concrete TypeScript examples of Solana compressed NFT workflows and can configure a local Node.js, Yarn and RPC environment.

Who it is for

  • Solana developers learning or prototyping compressed NFT workflows.
  • Developers exploring state compression, NFT asset lookups, proof verification or transfers.

Documented uses

  • Create a Merkle tree and NFT collection, then mint compressed NFTs.
  • Fetch compressed NFT assets by owner or collection.
  • Study proof retrieval, client-side verification and compressed NFT transfer flows.
  • Explore Metaplex SDK examples for reading, minting and transferring compressed NFTs.
Before you choose

Requirements & limits

The repository is public. Its README specifies a local Node.js and Yarn setup and a supporting RPC provider URL; no pricing information is provided.

  • The documented stack is TypeScript, Node.js and Yarn.
  • A supporting RPC provider’s cluster URL is required in the setup instructions.
  • Some examples depend on data saved by earlier scripts, making the recommended sequence important.
  • Metaplex SDK examples require an existing tree and collection for the documented mint-to-collection workflow.
  • The repository’s illustrative one-million-NFT cost comparison is an estimate in the README, not a current cost quote.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Set up the repository for local exploration

Prepare the documented local environment and RPC configuration for the included examples.

Before you start

  • Node.js
  • Yarn
  • A supporting RPC provider’s cluster URL
  • For the documented local-wallet configuration, the Solana CLI and a local testing-wallet keypair JSON file

Steps

  1. Clone the repository and install its packages with yarn install.

  2. Rename example.env to .env.

  3. Set RPC_URL to the cluster URL of a supporting RPC provider.

  4. If using the Solana CLI, set LOCAL_PAYER_JSON_ABSPATH to the absolute path of the local testing-wallet keypair JSON file.

Expected outcome

The repository is configured for the documented script workflow.

Guide limitations

  • This covers setup only; it does not establish that a script was executed successfully.
  • The README recommends running verbose create-and-mint, owner lookup, and transfer scripts in that order because earlier steps save data in .local_keys for later scripts.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
18 October 2026
Original website title
solana-developers/compressed-nfts · Official homepage title · retained in its source language