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.
Need a bot like this built?
We design, build and run trading bots on Solana, Hyperliquid and Polymarket.
Start a projectMore from the blog
Public vs Paid RPC: How to Run a Fair Benchmark
A fair comparison of public and paid RPC endpoints must account for quotas, workload, freshness and support guarantees.
Read articleRPC Benchmark Percentiles Explained: p50, p95 and p99
Why averages hide the latency spikes that break trading bots, wallets and production blockchain applications.
Read articleHyperliquid REST vs WebSocket Benchmark: What to Measure
A benchmark plan for Hyperliquid market data that separates request latency from streaming freshness and recovery.
Read article