All Questions
Tagged with spl-token-program anchor-lang
4 questions
1
vote
1
answer
31
views
How to handle both SPLs and native SOL token in my contract?
Hi I was working on making a contract that should support both SOL and SPL tokens.
Is there a recommended way to manage SOL and SPL token altogether? It looks like we need to wrap SOL to make it work. ...
2
votes
1
answer
46
views
Why is token_program needed when initiating an associated token account?
In the code below if I don't have token_program defined, I get compile time error. However, I am only initializing the ATA but not minting, transferring, approving, or burning the token mint which is ...
1
vote
1
answer
306
views
Is this a standard SPL token?
I'm looking to deploy a new SPL token, hopefully with more custom features. This was some code I scraped together for a standard SPL fungible token. Do you see any issues with it?
I'm doubting myself ...
3
votes
2
answers
407
views
How to get the Collection's public key out of certain NFT in Anchor
How can I find out the Collection's public key of some NFT in Anchor? I know it was easy to do with the Solana SDK, but as far as I know it is not compatible with Anchor.
More specifically, how can I ...