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
Pump.fun Launch Tooling: Development Cost, Scope and Safe Delivery
How to scope compliant Pump.fun launch execution, liquidity monitoring and operational tooling without wash trading or artificial-volume features.
Read articleJito Bundle Status Monitoring: Pending, Landed, Failed and Invalid
Production-safe Jito bundle reconciliation using getInflightBundleStatuses, getBundleStatuses and Solana signature confirmation.
Read articleBest Solana RPC for Trading Bots: Reproducible Latency Benchmark
Benchmark Helius, QuickNode, Triton and self-hosted Solana RPC endpoints with a reproducible Node.js harness for p50/p95/p99 latency, errors and slot freshness.
Read article