Automated cross-DEX arbitrage bot for Solana. Detects price discrepancies across 7 DEXes and executes multi-hop swaps in real time. Built for speed with Yellowstone gRPC streaming, Jito integration, and optimized on-chain programs.
A high-performance Solana arbitrage bot that monitors price differences between decentralized exchanges (DEXes) and executes profitable swaps. The bot supports 2-hop, 3-hop, and 4-hop arbitrage routes using a custom on-chain program with address lookup tables for minimal transaction size.
| DEX | Program Type |
|---|---|
| PumpSwap | Pump.fun bonding curve |
| Raydium AMM v4 | Constant product |
| Raydium CLMM | Concentrated liquidity |
| Raydium CPMM | Centralized liquidity |
| Orca Whirlpool | Concentrated liquidity |
| Meteora DLMM | Dynamic liquidity market maker |
| Meteora DAMM v2 | Dynamic AMM |
- Real-time token discovery — Subscribes to token migrations and trending tokens for automatic opportunity detection
- Multi-hop arbitrage — 2, 3, and 4-hop swap routes via optimized on-chain program
- 7 DEX integration — PumpSwap, Raydium (AMM/CLMM/CPMM), Orca, Meteora (DLMM/DAMM)
- Low-latency execution — Yellowstone gRPC streaming, cached pool data, Jito block engine support
- Address lookup tables — Reduced transaction size for faster inclusion
- Configurable thresholds — Minimum profit, slippage, and price difference filters
- Telegram alerts — Optional notifications for executed trades
- Runtime: Node.js 22+
- Language: TypeScript
- Blockchain: Solana (mainnet-beta)
- APIs: Yellowstone gRPC, Jito Block Engine
- Key SDKs:
@solana/web3.js, Raydium, Orca, Meteora, Pump.fun
- Node.js 22 or higher
- Solana RPC endpoint (Helius, QuickNode, or similar)
- Geyser gRPC endpoint (for account streaming)
- Minimum 1 SOL in wallet for transaction fees and arbitrage capital
# Clone the repository
git clone https://github.com/your-username/solana-arbitrage-bot.git
cd solana-arbitrage-bot
# Install dependencies
npm install-
Copy the example environment file:
cp .env.example .env
-
Edit
.envwith your credentials:Variable Description PRIVATE_KEYBase58-encoded wallet secret key RPC_ENDPOINTSolana RPC URL for reads SWQOS_ENDPOINTRPC for sending transactions GRPC_ENDPOINTYellowstone/Geyser gRPC URL API_KEYGeyser API key QUOTE_AMOUNTTrade size in SOL SLIPPAGEMax slippage tolerance (%) MINIMUM_PROFITMinimum profit threshold (SOL) BLOCK_ENGINE_URLJito Block Engine URL ISJITOtrueto use Jito,falsefor standard RPC -
Create
tokens.txtin the project root with initial token mint addresses (one per line).
# Start the arbitrage bot
npm start
# Run swap calculation tests
npm run test
# Generate address lookup table from alts.txt
npm run createAltThe on-chain arbitrage program is deployed at:
6UZznePGgoykwAutgJFmQce2QQzfYjVcsQesZbRq9Y3b
| Arbitrage Testing | Results |
|---|---|
- Flash loan integration — Enable larger trades without upfront capital
- Dynamic tip optimization — Adaptive Jito tip for improved inclusion rate
- Additional DEX support — Expand to more Solana liquidity venues
This software is provided as-is for educational and research purposes. Arbitrage trading involves risk. Use at your own discretion. Always verify transactions and amounts before execution.
- Telegram: @crewsxdev
Built with Raydium, Orca, Meteora, Pump.fun, Yellowstone gRPC, and the Solana ecosystem.