Dev.to
7/20/2026
Simulate Before You Trade: Dry-Run APIs for High-Stakes DeFi Bots
Short summary
The article argues that DeFi trading bots need dry-run simulation APIs to test transactions against pending block state before committing on-chain. A proper simulation returns state deltas, event logs, and gas estimates without modifying chain state. The author emphasizes that simulation must be fast enough to fit within opportunity windows — for Solana arbitrage, that means sub-400ms latency with colocated infrastructure.
- •Dry-run APIs simulate full transaction execution without committing to chain state
- •Simulating against pending block state is critical for liquidation and arbitrage opportunities
- •Simulation latency must be minimal — colocated infrastructure needed for sub-400ms opportunity windows
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



