GTokenTool

How do I collect withheld Token-2022 transfer fees?

Create & ManageFEE

Fee Withdrawal

Token-2022 can withhold transfer fees in holder accounts. This tutorial explains how to identify a fee-enabled token, scan accounts and collect the withheld balance.

About 2 min - read before you start

Before you start

  • Identify the exact token or token account first. On-chain management actions also require the matching authority wallet.
  • Before signing, check the fee, network cost and account rent shown by the page. Read-only tools do not need a wallet connection.
Supported tokens
Token-2022 mints that carry the transfer-fee extension; standard SPL tokens and Token-2022 mints without the extension are rejected as soon as the address is loaded
Required authority
The connected wallet must be the mint's current withdraw-withheld authority; when the authority is unset the page reports that the fees cannot be collected
What gets scanned
Every token account of the mint is read for its withheld balance, including pool vaults and program accounts; only accounts with a withheld amount above zero are packed into the withdrawal, and the page prints how many were found
Where the fees go
Your own associated token account for this mint; created in the first transaction when missing (about 0.00204 SOL rent, refundable after the account is closed)
Batching and signing
Up to 30 fee-bearing accounts per transaction, each carrying the priority fee set in the page settings; all transactions share one blockhash, are signed in a single approval and then sent and confirmed one after another
Service fee
0.05 SOL, appended to the last withdrawal transaction; network and priority fees are paid by the same wallet, which must hold at least 0.052 SOL before the scan starts

How it works

  1. Confirm the Token-2022 fee extension

    Load the token and check that it uses Token-2022 with a transfer-fee configuration. If the token does not use the Token-2022 transfer-fee extension, this page cannot collect fees.

  2. Connect the withdrawal wallet

    Use the wallet recorded as the current withdrawal authority and leave enough SOL for network fees. The withdrawal authority must match the connected wallet, not just the token owner.

  3. Scan holder accounts

    Run the scan and review how many accounts currently hold withheld fees. Zero-value accounts are skipped. Review the number of matched accounts before signing; zero-fee accounts are intentionally skipped.

  4. Sign and check the payout

    Approve the prepared transactions and verify that the collected fees arrived in your associated token account. After settlement, verify the collected amount in the associated token account shown by the page.

What happens next

Use the result shown by the page to verify the change or downloaded data. If a transaction was sent, wait for confirmation and keep its signature.

Back to tutorials

Related tutorials