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.
Building this for production?
We turn this architecture into tested, non-custodial software with monitoring, documentation and deployment support.
Related technical guides
Solana Copy-Trading Bots: How to Mirror Winning Wallets
Learn how to build a Solana copy-trading bot that selects wallets by on-chain edge, replicates trades with sub-100ms latency, and protects capital with kill-switches.
Read articleBuilding a Solana Copy-Trade Bot That Tracks Alpha Wallets
Copy-trading on Solana means streaming transaction logs, filtering by target wallets, decoding swap instructions, and replaying them with minimal latency. This tutorial covers the full implementation pipeline.
Read articleHow Solana Sniper Bots Work: Jito Bundles, Priority Fees & Anti-Rug
What actually makes a Solana sniper land first — block engines, priority fees, transaction simulation and the rug checks that keep you out of honeypots.
Read article