Solana Inner Instructions and Token Balance Decoding for Bot Developers
Why top-level instructions are insufficient for understanding Solana swaps and wallet activity.
Why top-level instructions are insufficient for understanding Solana swaps and wallet activity.
Top-level limits
Aggregators invoke multiple programs through CPI, so the economic transfer often appears only in inner instructions and balance deltas.
Account resolution
Resolve versioned transaction address lookup tables and map token accounts back to owners and mints.
Net effects
Compare pre/post SOL and token balances, then subtract fees and temporary wrapped-SOL movements.
Decoder strategy
Use protocol-specific parsers when available but keep a generic balance-delta fallback and preserve raw unknown events.
Building this for production?
We turn this architecture into tested, non-custodial software with monitoring, documentation and deployment support.
Related technical guides
How 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 articleToken Launch Anti-Bot Measures on Solana and How Bots Adapt
Launchpads increasingly deploy delay pools, fee tiers, and blocklist logic to deter bots. This post catalogs common anti-bot patterns seen on Solana launchpads and the countermeasures sophisticated sniper bots employ.
Read articleOrca Whirlpool Tick Ranges and How Bots Snipe New Positions
Orca's concentrated liquidity Whirlpool pools create predictable initial tick ranges on launch. This post dissects the pool initialization instruction and shows how bots size entries relative to the initial price range.
Read article