Questions tagged [ata]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
13 views

Accidentally sent Solana to an ATA (fluxbot) on Solflare & not my wallet [closed]

I accidentally sent SOLANA to an ATA (fluxbot) on Solflare. Coinbase couldn’t help me. How do I access the ATA?
user9433's user avatar
0 votes
1 answer
82 views

I sent my token (from Trust Wallet) to my ATA (Solflare), the balance still 0? Can I recover from this? [duplicate]

So basically what I did was, sending my Solana token from my Trust Wallet to my ATA of the token on my Solflare. The balance still says 0, how do I recover from this? Is it possible or not? And for my ...
SomeRandomCode's user avatar
1 vote
1 answer
51 views

Error: Signature verification failed while initialising PDA

I've been working on Solana program that should hold two different tokens for me in a Vault in an ATA. The first token should be deposited during Vault initialisation, the second will be deposited by ...
Kamil Słuszniak's user avatar
1 vote
1 answer
62 views

The data structure of an associated token account's data field

I used 'solana account --output json 'address'' to obtain the data field of a Token account, which is encoded in base64. I would like to know how it is structured.
Solextra's user avatar
2 votes
2 answers
53 views

Validate if optional account was passed in

Let's say I have an account passed in the instruction #[account(mut), constraint = optional_ata.mint = treasury_ata.mint] pub optional_ata: Option<Account<'info, TokenAccount>> Is this ...
gud's user avatar
  • 395
0 votes
0 answers
66 views

Getting bumps for an account that may be an ATA or not

Let's say I have a token account and I want to check if the owner is the signer OR the account is an ATA and the signer is one of the seeds. pub some_account: Box<Account<'info, TokenAccount&...
Whiteseal's user avatar
  • 2,617
2 votes
1 answer
406 views

How do I transfer SPL-token programmatically when the recipient is the transaction signer?

I want to transfer my custom SPL-token programmatically from my vault (source token account) to George (user destination token account), where the transaction caller-payer is George. Hence, I must use ...
nene's user avatar
  • 23
3 votes
3 answers
86 views

Can we think of Associated Token Account as a good example of a Program Derived Address?

I am trying to get a deeper understanding of PDAs and am thinking of examples. Is ATA a good one?
user3026's user avatar
3 votes
2 answers
707 views

How to create ATA (Associated Token Account ) for a PDA (Program Derived Addresses) on devnet?

I am creating a token-sale program, to sale tokens, I want to transfer spl-tokens to a PDA-address, so I can transfer them from PDA-token-account to recipient(transaction-signer)-token-account by ...
Mahesh Ghamaand's user avatar
2 votes
1 answer
161 views

sendAndConfirm transaction signers

I'm taking my initial steps in Solana / Anchor / Smart Contracts / etc etc. My doubt is regarding the creation of the ATA. After creating all the needed steps, when trying to send and confirm the ...
ASCorreia's user avatar
  • 243
4 votes
1 answer
628 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
2 answers
103 views

I transferred my tokens to an ATA derived from an ATA. Can I get them back?

I transferred token to an associated token account derived from an associated token account, can I get my tokens back?
reditable's user avatar
5 votes
1 answer
61 views

what's the difference of these two ways to create a token account?

#[account(init, payer = funder, token::mint = token_mint_a, token::authority = authority)] pub token_vault_a: Box<Account<'info, TokenAccount>>, #[account(init, ...
reditable's user avatar
7 votes
4 answers
606 views

What is an Associated Token Account?

The term "Associated Token Account" is often used when talking about tokens on Solana. What is it?
Jacob Creech's user avatar
  • 3,439