Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
1 answer
40 views

Can I burn SPL Tokens that are sent from a user to a Solana Program?

I am trying to write a simple anchor program that will burn the SPL tokens that the user sends to my anchor program. I followed the guide below on QuickNode to build a new program that allows minting. ...
Robert Grospitch's user avatar
1 vote
1 answer
24 views

How to mint token after close mint in Token extension program

I'm a beginner, and I'm learning the close mint part of the token extension program. I want to understand how to mint an amount of tokens then close mint (not allowed to mint any more tokens) Thank ...
Hiderr Kamado's user avatar
2 votes
1 answer
45 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 ...
WowBow's user avatar
  • 213
2 votes
2 answers
538 views

Why do we close WSOL Token Program accounts?

Background: If I understand correctly: During transactions where we transfer SOL to/from wallets, we need to wrap the SOL in a temporarily created WSOL Token Program account. Then use that to transfer ...
Joe's user avatar
  • 133
0 votes
2 answers
38 views

How to filter most recently created pdas of a program

How to filter most recently created pdas of a program, How should date be store in pda data so that we can directly filter based on the data stored in pda. For ex. filtering all pda of a program ...
ashish0411's user avatar
1 vote
1 answer
97 views

Minting a Fungible SPL token to same ATA (more than 1 time) always fails

I'm pretty new solana ecosystem and have been following multiple tutorials on minting Fungible SPL tokens. On all the tutorials, you create a Mint and ATA and the then the first time the mint ...
newbreedofgeek's user avatar
1 vote
0 answers
464 views

how to work sniper bots [closed]

please explain me how sniper bots work in solana. i am interested in their logic of operation. how does it work? the bot finds a coin, but the trading pair may not appear immediately. What does the ...
john mlan's user avatar
2 votes
2 answers
458 views

InterfaceAccount<'_, TokenAccount> fails to create Associated Token Account

I have basic instruction, all it does is create an ATA for a user (mint is already initialized), this is what my context looks like // lib.rs use { crate::constants::*, crate::states::*, ...
Isaac Frank's user avatar
4 votes
1 answer
2k views

Parse transactions in human readable format

How can I convert the data to the same form as it is done on the solana explorer for better readability?
slntrx's user avatar
  • 131
0 votes
3 answers
1k views

how to find a new token in the block

I searched for a similar question but couldn't find one. So, I get the last block, then inside this, block I parsing all transactions. My task is to find information that a new token has been created. ...
slntrx's user avatar
  • 131
0 votes
1 answer
287 views

I have a question about token 2022 program with migration

I wonder what happens to the existing ATA if I migrate from the existing token program to the token 2022 program. If the migration is completed, can't use the existing ATA (before migration) If the ...
jeong's user avatar
  • 23
1 vote
2 answers
663 views

How can I freeze only some tokens in an account?

The SPL token program has support for a freeze/thaw authority where the authority can block any transaction involving a given account. How can I lock only some tokens in an account? E.g. a token ...
lameren's user avatar
  • 173
2 votes
1 answer
178 views

Does one have to generate a special token address for USDT, USDC... when one generates a new address?

In my application I need to generate new addresses from time to time. I need them for SOL as well as for the stable coins on Solana. A new address will be assigned to a new user. Since Solana has ...
Camila326's user avatar
  • 169
4 votes
1 answer
744 views

Why is one of the transactions for my token account missing from my wallet in Solana Explorer?

I have a wallet 5FHwkrdxntdK24hgQU8qgBjn35Y1zwhz1GZwCkP2UJnM that has a token account Tig6ugKWyQqyRgs8CeDCuC3AaenQzRJ5eVpmT5bboDc. I can see the transaction ...
mikemaccana's user avatar
  • 2,744
0 votes
1 answer
2k views

Is the process of creating an Associated Token Account idempotent?

I was unable to determine from the documentation if the process of creating Associated Token Accounts is idempotent: https://spl.solana.com/associated-token-account#creating-an-associated-token-...
OCDev's user avatar
  • 782