This repository contains the cnft-burn program, a Solana Anchor program that allows you to burn compressed NFTs (cNFTs) in your collection. The program interacts with the Metaplex Bubblegum program through CPI to burn cNFTs.
Components
- programs: Contains the anchor program
- tests: Contains the tests for the anchor program
Deployment
The program is deployed on devnet at FbeHkUEevbhKmdk5FE5orcTaJkCYn5drwZoZXaxQXXNn. You can deploy it yourself by changing the respective values in lib.rs and Anchor.toml.
How to run
- Configure RPC path in cnft-burn.ts. Personal preference: Helius RPCs.
- run
anchor buildat the root of the project i.e cnft-burn in this case. - run
anchor deployto deploy and test the program on your own cluster. - run
anchor testto run the tests.
Acknowledgements
This Example program would not have been possible without the work of:
- Metaplex for providing the Bubblegum program with ix builders.
- @nickfrosty for providing the sample code for fetching and creating cNFTs.