Skip to the page
Open Raven

Token-2022 explained: transfer fees, hooks and frozen coins

Token-2022, also called Token Extensions, is a second token program on Solana. It does everything the original one does, and lets a coin’s creator switch on extras such as a fee on every transfer, a program that runs on every transfer, or the power to move coins out of any wallet.

By the Raven Wallet team · Updated · 6 min read

What Token-2022 is

Every coin on Solana is run by a token program. For years there was only one, usually called the Token program or SPL Token. Teams that wanted extra features copied it and changed the copy, but a copy is hard for wallets and apps to support.

So Solana put a second program at a separate address: TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb. Its docs call it “a strict superset of Token”. Every old instruction works the same way, and the first 165 bytes of a token account look exactly like an old one. The new features, called extensions, are stored after that.

A creator picks extensions when they make the coin. Some settings can change later, such as the fee rate, the hook program or the pause switch. For you as a holder, the point is simple: a Token-2022 coin may come with rules the old kind never had, and you should know which ones before you buy.

The extensions that affect holders

There are many extensions. Most are harmless, like metadata (the coin’s name, symbol and image kept inside the mint). These are the ones that change what you can do with your coins:

ExtensionWhat it doesWhat it means for you
Transfer feeTakes a cut of every transferYou receive less than was sent
Transfer hookRuns the creator’s own program on every transferThat program can block a transfer
Permanent delegateOne authority can “burn or transfer any amount of tokens” from any accountYour coins can be taken without your signature
PausableStops all transfers, mints and burns at onceNobody can sell while it is paused
Default account stateCan make every new holder’s account start frozenYou may need the issuer to unlock it
Non-transferableThe coin “cannot be moved to any other entity”You can burn it and close the account, never sell it
Interest-bearing, scaled UI amountChange the number shown, not the coins held“No new tokens are ever created”
Required memoIncoming transfers need a memoSome sends fail without one

From the Token-2022 extensions docs, read 25 November 2026.

The old freeze authority still exists too. How freezing works, and what to do about a frozen coin, is in why a coin is frozen in your Solana wallet.

How a transfer fee works

The creator sets two numbers: a rate in basis points (100 basis points is 1%) and a maximum fee per transfer. The docs' own example is 50 basis points, or 0.5%, with a cap of 5,000 tokens.

With that setup:

  • Send 1,000 tokens and the fee is 5. The other wallet can use 995.
  • Send 10,000,000 tokens and 0.5% would be 50,000, but the cap stops it at 5,000.

Three details matter:

  1. The fee is held in the receiving account. The docs say it is “withheld on the recipient account, untouchable by the recipient.” The receiver never gets to spend it. Later, anyone can sweep withheld fees to the mint, and the creator’s withdraw authority collects them.
  2. The rate can be as high as 100%. The program’s code says the “maximum possible fee in basis points is 100%”. A low fee today is not a promise.
  3. A new rate starts at a set epoch. The mint keeps an older and a newer fee, and the newer one applies from the epoch the creator named. A rate change does not land in the middle of a transfer you already sent, but it can land between two of yours.

The program rounds the fee up, so a tiny transfer can still pay at least one of the smallest unit.

Transfer fees in a swap

A swap moves the coin at least once, so the fee applies there too. Raydium’s docs walk through it: when you sell a coin with a fee, the pool receives the amount minus the fee and prices your trade on what actually arrived. When you buy one, the pool sends the full amount and the token program takes its cut on the way to you.

Two things follow. A coin with a 5% transfer fee costs you about 5% on the way in and again on the way out, on top of any swap fee. And Raydium notes that your slippage limit is checked against what the pool sends, not what you receive, so the amount that lands can be lower than the minimum you set. If a swap result looks short, see slippage tolerance exceeded and check the coin for a fee first.

Transfer hooks and the permanent delegate

A transfer hook points the coin at another program. Token-2022 calls that program on every transfer, after the coins move, so it can check the result and stop the whole transaction. Raydium’s docs say plainly: “The hook program can block transfers arbitrarily.” A hook can be used for honest rules, like only letting approved wallets hold a coin. It can also be used to let people buy and never sell. The only real check is whether the hook’s code is public and does what the project says.

A permanent delegate is stronger than a freeze. The docs describe “unlimited delegate privileges over any account for that mint”. The holder of that power can move or burn your coins without asking you. Regulated stablecoins use it for court orders: PayPal’s PYUSD lists it among the extensions it has switched on. On an unknown meme coin it is the clearest red flag there is.

Apps react to these too. Phantom’s developer docs say it “will display a warning for any token that has this extension enabled” and shows the fee on the confirmation screen of a send when a coin has a transfer fee. Raydium blocks pool creation for coins with a permanent delegate or that are non-transferable.

How to check a coin

  1. Search by mint address, never by name. Names are free to copy.
  2. Look at which program owns the mint. If it is the Token-2022 address above, the coin may have extensions. If it is the old Token program, none of this applies, though a freeze authority still can.
  3. Read the extension list on the token’s page. Look for a transfer fee and its current rate, a transfer hook and which program it calls, a permanent delegate, a pause authority and a default frozen state.
  4. Read your wallet’s warning. If your wallet flags a permanent delegate or shows a transfer fee on the send screen, believe it.

Not every extension is a trap. PayPal’s post on PYUSD says it set up a transfer fee “initialized to 0” as a fail-safe, and a transfer hook “with a null program ID” for possible future use. Switched on but unused is common for regulated coins. What matters is who holds each power and what they could do with it. More checks for trading wallets are in how to set up wallets for trading memecoins.

Token-2022 accounts can be larger than 165 bytes because of the extension data, and every byte adds to the refundable deposit. See Solana rent explained.

Where Raven fits

Raven holds many Solana wallets in one place, up to 1,000 in a vault, and every send, swap or clean up across them goes through one review before anything is signed. Check a coin’s extensions before you buy it, then use that review to look over every move once more. Raven is open to everyone: open Raven and make an account. More on the about page.

Questions

Is a Token-2022 coin a scam?

No. Token-2022 is an official Solana program, audited several times, and stablecoins like PYUSD run on it. What matters is which extensions a coin has switched on and who controls them.

Why did I receive fewer tokens than were sent?

The coin probably has a transfer fee. Part of every transfer is held back in your account where you cannot spend it, and the creator collects it later.

Can a transfer fee be changed after I buy?

Yes. The fee authority can set a new rate, up to 100%, and it takes effect from a set epoch, so a low fee when you buy can be a high one when you sell.

Can a permanent delegate take my coins?

Yes. It can transfer or burn that coin from any account that holds it, without your signature. It cannot touch your SOL or your other coins.

Sources

Raven runs many Solana wallets in one place, with one review before anything is signed.

Open Raven

See how Raven does it: How Raven works, How moves work, Gas wallet.