Skip to content

A receipt for a compressed NFT is a lightweight on-chain record proving ownership of a cNFT. It works like a claim ticket that ties your wallet to the NFT inside the Merkle tree, making NFTs cheaper and scalable without losing security.

License

Notifications You must be signed in to change notification settings

TStar7-dev/solana-compressed-receipts

Repository files navigation

Solana Compressed NFTs Receipts

This is a simple example of how to generate a compressed NFT receipt using Cavnas, CrossMint and ShadowDrive.

I have also included an example implementation to integration with Solana Pay.

Note: this is working, but still in progress...use at your own risk. I probably won't be actively maintaining this--just wanted to demonstrate the concept. Feel free to contribute!

Local Deployment

  • Clone this repo
  • Run yarn or npm install
  • Update constants:
    • Rename example.ts to constants.ts
    • Update constants.ts with your own values (see comments in file)
    • *Note You'll need a crossmint account and a shadow drive (Create a Shadow drive wallet w/ some storage (configure and run createShdw.ts)).
  • Run ts-node src/app

Example output: https://www.crossmint.com/tokens/sol:C4Uh1SaegzihN99VZqzBUrXmFrx5Ug97QhdG5rKs7WQ2

Sample

About

A receipt for a compressed NFT is a lightweight on-chain record proving ownership of a cNFT. It works like a claim ticket that ties your wallet to the NFT inside the Merkle tree, making NFTs cheaper and scalable without losing security.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published