All articles
Solana·August 5, 2026·1 min read

Solana Token-2022 Transfer Fee Integration for Trading Bots

How trading bots, wallets and indexers should account for Token-2022 transfer fees and withheld balances.

How trading bots, wallets and indexers should account for Token-2022 transfer fees and withheld balances.

Inspect mint extensions before quoting

Transfer-fee configuration changes the received amount and can update for a later epoch. Cache extension data with an expiry and reject unsupported combinations.

Calculate net economic amounts

Store gross transfer, configured fee, capped fee and net received amount. Token balance deltas may include withheld value that is not immediately spendable by the receiver.

Simulate the exact transaction

Quotes should use the current mint configuration and instruction set. Validate account size, token program ID and expected fee before signing.

Fix analytics and reconciliation

Wallet PnL and swap parsers must distinguish transferred, withheld, harvested and withdrawn fees. Preserve raw instruction evidence for reprocessing.

Add Token-2022 support

TierZero develops Solana bots, wallet trackers and data pipelines. Request an integration via contact.

Discuss your integration

Share the current stack, API surface, production constraints and target launch date through the TierZero contact page.

Need a bot like this built?

We design, build and run trading bots on Solana, Hyperliquid and Polymarket.

Start a project
#Solana#Token-2022#Trading Bots