Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to create xNFT using CpiContext? #172

Open
vitordhers opened this issue Mar 25, 2024 · 0 comments
Open

How to create xNFT using CpiContext? #172

vitordhers opened this issue Mar 25, 2024 · 0 comments

Comments

@vitordhers
Copy link

Hello, folks, first of all, thanks for this project, I've seen that some amazing stuff can be done using xNFTs.

As of now, I'm trying to develop a program that should mint a collectible xNFT, conditionally. I have a few questions, though.

First of all, what's the difference between collectible and apps xNFTs? I mean, will I be able to write apps for the collectible xNFTs?

Second, is there a way to create a xNFT using a CPI context? If so, how do I do that? As of now, I've declared the xNFT program from this project as a project dependency (like that in my Cargo.toml xnft = { path = 'xnft', features = ["no-entrypoint"] }), but I assume that's simply overkill and I should be able to "upgrade" a regular NFT to xNFT via a CpiContext call, is that possible?

Thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@vitordhers and others