All Questions
6 questions
1
vote
1
answer
217
views
Wrapping Sol results into Error: IncorrectProgramId
I have a PD vault account, I transfer some amount of SOL to WSOL token account for this vault and then I try to call the SyncNative instruction that results into err:
'Program ...
2
votes
1
answer
216
views
Solana approve via signature
I wonder if there's a mechanism of transferring assets with receiver fee payment. Something like permit functions in solidity language?
Is it possible to copy this approach with PDAs? Share some ...
2
votes
1
answer
590
views
How to initialize a PDA mint in anchor
I'm looking to create a mint as PDA in anchor. In this case, the mint will be able to mint tokens.
4
votes
1
answer
1k
views
Can a PDA be the owner of an associated token account?
SPL.createAssociatedTokenAccount(connection, wallet, mint, project, {skipPreflight: true}, undefined, SPL.ASSOCIATED_TOKEN_PROGRAM_ID).then((projectTokenAccount) => {
const mintIx = SPL....
2
votes
1
answer
210
views
How to add metadata to a token whose mint is a PDA?
My token is program-controlled, i.e. my mint address (and authority) is a PDA.
For that reason, I have to create code within my Solana Program to add metadata to my token.
While I can easily mint, it ...
1
vote
2
answers
1k
views
How to create a metadata account for a token whose mint authority is a PDA?
My token's mint authority is my Program.
I need to add metadata so that the token appears nicely in my users' wallets.
So in order to add the metadata, I need to create a new instruction into my ...