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 projectMore from the blog
Jito Low-Latency Transaction Send Integration for Solana Bots
How to integrate Jito low-latency transaction submission with blockhash management, tips, retries and landing analytics.
Read articleSolana Confidential Transfer Integration for Wallets and dApps
A production checklist for adding Solana confidential transfers, including account configuration, proof workflows and recoverable client keys.
Read articleHyperliquid HIP-3 DEX Bot Integration: Asset IDs and Multi-DEX State
Engineering requirements for bots that trade builder-deployed Hyperliquid perps across multiple HIP-3 DEXs.
Read article