This repository contains a basic MEV (Miner Extractable Value) bot for the Solana blockchain, written in Rust. The bot monitors the Solana blockchain for arbitrage opportunities and executes trades to capture these opportunities.
- Monitors the Solana blockchain for arbitrage opportunities.
- Executes trades to capture arbitrage opportunities.
- Written in Rust for performance and safety.
- Rust (latest stable version)
- Cargo (Rust's package manager)
- A Solana RPC endpoint (e.g., https://api.mainnet-beta.solana.com)
-
Clone the repository:
git clone https://github.com/trofiiiimova/mev-bot-solana.git cd mev-bot-solana
-
Build the project:
cargo build --release
-
Update the Solana RPC endpoint in
src/main.rs
if necessary:let client = RpcClient::new("https://api.mainnet-beta.solana.com".to_string());
-
Provide your keypair for signing transactions. Replace the placeholder bytes with your actual keypair bytes in
src/main.rs
:let keypair = Keypair::from_bytes(&[0; 64]).unwrap();
Run the bot with the following command:
cargo run --release
The bot will start monitoring the blockchain for arbitrage opportunities and execute trades when opportunities are found.
src/main.rs
: Main logic for the MEV bot, including finding and executing arbitrage opportunities.
Contributions are welcome! Please open an issue or submit a pull request for any changes or improvements.
This project is licensed under the MIT License. See the LICENSE file for details.