Skip to content

Latest commit

 

History

History
73 lines (45 loc) · 2.01 KB

README.md

File metadata and controls

73 lines (45 loc) · 2.01 KB

🚀 Solana Copy Trading Bot (Rust)

Welcome to the Solana Copy Trading Bot! This bot enables real-time tracking of target wallets (whales) on the Solana blockchain and seamlessly replicates their trades. 🌟


🔥 Features

Real-time WebSocket Streaming – Connects to Solana's blockchain using Helius Geyser RPC WebSocket to monitor transactions in real-time.
Ultra-Fast Transaction Filtering – Efficiently filters transactions within ~0.3ms for minimal latency.
Automated Copy Trading – Uses the Pump.fun program ID and Raydium module to mirror target transactions.


🎯 Example Transactions

  • Source Transaction: View on Solscan
  • Copied Transaction: View on Solscan
  • Target Wallet: GXAtmWucJEQxuL8PtpP13atoFi78eM6c9Cuw9fK9W4na
  • Copy Wallet: HqbQwVM2fhdYJXqFhBE68zX6mLqCWqEqdgrtf2ePmjRz

🚀 Getting Started

Follow these steps to set up and run the bot:

📌 Prerequisites

  • Rust & Cargo (Version 1.84.0 or later)
  • Solana Wallet with access to Helius Geyser RPC API

📥 Installation

1️⃣ Clone the Repository:

git clone https://github.com/BitFancy/Copy-Trading-Bot-Rust

2️⃣ Navigate & Build:

cd copy-trading-bot
cargo build

3️⃣ Configure Environment Variables:

Update the ENDPOINT and WSS_ENDPOINT in your config:

const ENDPOINT = "https://mainnet.helius-rpc.com/?api-key=xxx";
const WSS_ENDPOINT = "wss://atlas-mainnet.helius-rpc.com/?api-key=xxx";

4️⃣ Run the Bot:

cargo run

💬 Need Help? Contact Me!

If you have any questions, feel free to reach out via:

📩 Telegram: @bitfancy
🎮 Discord: [@bitbanana717]

🌹 You're always welcome! 🌹