This is an arbitrage bot that gets profit by token price difference between several dexs. It finds prifitable router and confirm transaction. This is not full source code, just sharing old version for giving vision about solana arbitrage bot, feel free to reach out of me when you need full code or custom arbitrage bot [Whatsapp: https://wa.me/13137423660 Or Telegram: https://t.me/DevCutup].
- Pumpfun
- Pumpswap
- Raydium
- Meteora
On off-chain side, it fetches token's price on several dexs, and determine profitable router.
Once bot finds profitable router on off-chain side, it builds transaction then send to on-chain program. On-chain program confirm it by CPIs to multi dexs.
- Clone the repository
git clone https://github.com/cutupdev/Solana-Arbitrage-Bot.git
cd Solana-Arbitrage-Bot- Off-chain
- Build the project
cargo build- Run the project
cargo run- On-chain
- Build smart contract
anchor build- Deploy smart contract
anchor deployoffchain/: off-chain arbitrage bot codeswap/: on-chain swap programpools/: dex pool metadataonchain/: analysis of other arbitrage swapsmainnet/: fork mainnet account states to test swap input/output estimates
- Telegram: https://t.me/DevCutup
- Whatsapp: https://wa.me/13137423660
- Twitter: https://x.com/devcutup