A Rust-based trading bot for Solana blockchain that monitors and executes trades based on specified target prices.
-
Clone and Install
git clone [your-repository-url] cd [project-directory]
-
Configure Environment
Create a
.env
file in the root directory:TARGET_PRICE=0.000000000000001 TARGET_ADDRESS=Bb5dXLex6oPhmsUs7BNAqrjv5bohCySgJpoCWHTdrWnu RPC_URL=https://mainnet.helius-rpc.com/?api-key=YOUR_API_KEY
-
Build and Run
# Build the project cargo build # Run in development mode cargo run # Or build and run in release mode for better performance cargo build --release cargo run --release
Variable | Description | Required |
---|---|---|
TARGET_PRICE |
The target price for trading | Yes |
TARGET_ADDRESS |
Your target pool address | Yes |
RPC_URL |
Solana RPC endpoint URL | Yes |