Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
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 ...
Nika Pestvenidze's user avatar
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 ...
Ruarin's user avatar
  • 23
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.
vicyyn's user avatar
  • 4,295
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....
user2421's user avatar
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 ...
AllBlooming's user avatar
  • 2,309
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 ...
AllBlooming's user avatar
  • 2,309