All Questions
Tagged with spl-token-program associated-token-account
15 questions
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.
...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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::*,
...
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?
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. ...
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 ...
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 ...
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 ...
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 ...
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-...