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
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