The default token account for a given wallet and mint, at an address derived from the wallet, the token program and the mint. Anyone can compute that address, so wallets and programs know where to send tokens.
Why it matters
Almost every token transfer goes to an associated token account, so programs that accept token accounts have to check them. A token account that is not the expected one, or belongs to another mint, is a classic way to redirect funds.
What to check
- Ask how each instruction checks the mint, owner and token program of every token account it receives.
- Ask whether the code handles both the Token program and Token-2022 where it accepts any mint.
How it works in practice
The Associated Token Account program derives the address from the wallet, the token program and the mint. Because the token program is part of the seeds, the same wallet and mint give a different address under Token-2022.
The account has to exist before it can receive tokens. Senders often create it in the same transaction with an idempotent create instruction, which costs rent paid by the creator.
Common mistakes
- Accepting a token account without checking its mint and owner.
- Deriving the address with the Token program for a Token-2022 mint.
- Forgetting that a PDA owner is off the curve and needs the matching option in client libraries.
Related terms
- SPL tokenA fungible or non-fungible token created with the Solana Program Library Token Program or its successor, Token-2022, which adds extensions such as transfer fees and confidential transfers.
- Token-2022 (Token Extensions)The newer Solana token program.
- PDA (program derived address)An address derived deterministically from seeds and a program ID that has no private key, so only that program can sign for it.
- RentThe SOL balance an account must hold to stay on-chain, proportional to its data size.
Guides
Describe your project in plain English. Smart Match suggests verified Solana providers with a reason for each match. Free for teams.
Get matched →