A high-performance arbitrage trading bot for Solana DEX markets, leveraging Jito bundles for fast transaction execution.
This bot identifies and executes arbitrage opportunities across Solana decentralized exchanges by detecting price discrepancies between trading pairs. It uses circular arbitrage strategies (e.g., WSOL → USDC → WSOL) to capture profit from market inefficiencies.
Wallet Address: CEEXTqHaqbVriXoW4uvdaPShkMaHg9AWnFXLS1nS887C
Sample Transaction: View on Solscan
- 🔄 Circular arbitrage detection and execution
- ⚡ Jito bundle integration for fast transaction execution
- 🎯 Zero slippage configuration support
- 📊 Real-time profit calculation
- ⏱️ Low-latency execution monitoring
-
Quote Discovery: The bot continuously queries for circular arbitrage opportunities (WSOL → USDC → WSOL)
-
Profit Calculation: Compares input and output amounts to determine potential profit
-
Threshold Check: Only executes trades when profit exceeds a minimum threshold (currently 3000 lamports)
-
Transaction Building: Constructs a versioned transaction with:
- Compute unit limits
- Setup instructions
- Swap instructions (both legs of the arbitrage)
- Jito tip payment
-
Bundle Submission: Sends the transaction as a Jito bundle to the Frankfurt block engine for prioritized execution
-
Monitoring: Tracks execution time and slot information for performance analysis
Critical Requirement: This bot requires an on-chain program to guarantee profitability.
Even with:
- Zero slippage configuration
- Jito bundle prioritization
- Optimal route selection
You may still incur losses due to:
- Jito tip payments
- Transaction fees
- Price movements between quote and execution
See this example transaction demonstrating the need for program-level profit validation:
The on-chain program should:
- Save initial balance before executing swaps
- Calculate real profit after all swaps complete
- Conditionally pay Jito tip only if profit exceeds all costs
- Revert transaction if profit is insufficient
┌─────────────────┐
│ Arbitrage Bot │
└────────┬────────┘
│
├──► Solana RPC
│ └──► Blockhash & ALT Lookup
│
└──► Jito Block Engine
└──► Bundle Submission
- ✅ Basic arbitrage logic implemented
- ✅ Jito bundle submission
- ✅ On-chain program
- ✅ Multi-pair support
- ✅ Advanced risk management
Contributions are welcome! :
- On-chain program implementation
- Support for additional trading pairs
- Enhanced profit calculation logic
- Risk management features
- Performance optimizations
See LICENSE file for details.
