Skip to content
Solana accounts

Solana Token Program vs Token-2022: check the mint owner

By MassLauncher · Updated · 4 min read

If an integration asks for the token program, read the owner of the mint account. The mint authority and the owner of a holder’s token account answer different questions.

Get the owner of the mint account

Call getAccountInfo for the full mint address on the intended cluster. Read the outer owner field in the returned value. Then check that the account data decodes as a mint: both token programs also own other account types. An empty result is not enough to determine which program owns a mint.

The owner of the mint account is the program that controls its data. Mint authority is a field that can authorize issuance. A holder’s token account has an owner authority that controls the balance in that token account.

Program IDs to match against the mint account owner
Mint account ownerProgram
TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DAOriginal SPL Token Program
TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEbToken-2022 (Token Extension Program)

Check extensions and the exact Pump instruction

Token-2022 ownership tells you which program to use. Read the mint extensions separately. For example, a transfer fee can change what the recipient receives. A transfer hook can require additional accounts. Check these extensions if your integration needs to move tokens, even if it already displays the name and balance.

Pump documents Token-2022 for coins created by create_v2. Its bonding-curve buy_v2 instruction takes separate base and quote token program accounts. For a create_v2 coin paired with SOL, Pump’s example passes Token-2022 for the coin and the original Token Program for the wrapped SOL quote mint. Verify the actual owner of each mint and the specific instruction’s accounts. The example does not establish that Pump accepts arbitrary Token-2022 mints or extensions.

Open MassLauncher

Review your saved coins and launch history in the web app.

Open web app