high-performance Solana copy-trading bot written in Rust
A high-performance Solana copy-trading bot written in Rust. It watches a target walletโs on-chain activity and mirrors trades on Raydium and Pump.fun as soon as matching transactions appear.
I open-sourced solana-copytrading-bot for developers in Solana Web3 development. This post walks through what it does, how the pieces fit together, and how to run it locally.
Why I built this
- Automate trading or snipe strategies with a typed codebase
- Backtest ideas before deploying with real capital
- Extend the bot with your own risk rules and market filters
Most tutorials stop at a smart contract or a UI mockup. I wanted a complete vertical slice โ wallet flow, on-chain logic, backend state, and a responsive frontend โ so you can study or fork a production-shaped codebase.
What it does
- Wallet connect โ players sign in with a Solana wallet
- On-chain escrow and outcome resolution
- Automated copy-trading strategy execution
- A high-performance Solana copy-trading bot written in Rust
- It watches a target walletโs on-chain activity and mirrors trades on Raydium and Pump.fun as soon as matching transactions appear
- Rust 1.70+ (edition 2021)
-
Linux / macOS: standard build tools (
build-essential, Xcode CLI tools) - A Solana HTTP RPC endpoint (
RPC_ENDPOINT) with good read performance
Architecture at a glance
- Wallet layer โ users connect a Web3 wallet to sign transactions
- Feature โ Wallet connect โ players sign in with a Solana wallet
- Feature โ On-chain escrow and outcome resolution
- Feature โ Automated copy-trading strategy execution
User Wallet โ On-chain Program โ VRF / Settlement
โ
Backend (API + WebSockets) โ MongoDB / state
โ
Frontend UI (real-time)
Adjust the diagram to match your repo layout if components differ.
Tech stack
- Rust
- Solana
- WebSockets
Quick start
git clone https://github.com/DexCrancer/solana-copytrading-bot.git
cd solana-copytrading-bot
Setup steps:
- Install dependencies (see README โ typically npm install or yarn)
- Copy .env.example to .env and fill in RPC, wallet, and API keys
- Run local validator or point to devnet/mainnet as documented
- Start the backend and frontend; connect wallet and create a test room
See the full README for environment variables, deploy scripts, and test commands: https://github.com/DexCrancer/solana-copytrading-bot
Video walkthrough
- Solana Copytrading Bot on Solana tutorial โ How to set up and run solana-copytrading-bot step by step
- Solana Copytrading Bot on Solana โ Solana Copytrading Bot on Solana โ architecture and demo walkthrough
What to explore in the repo
- Program / contract entrypoints and account models
- API routes and WebSocket event handlers
- Frontend wallet adapter and game room components
- Tests, scripts, and deployment configs
Contributing
Issues and PRs are welcome. If this helped you learn something, a โญ on GitHub makes it easier for others to find.
Links
- Video(tutorial): https://youtube.com/watch?v=IqhpWaUI0T8
- Video(architecture and demo walkthrough): https://youtube.com/watch?v=1kwcA68h7vA
- GitHub: https://github.com/DexCrancer/solana-copytrading-bot
Disclaimer: Educational content only. Not financial advice. Gambling and trading involve risk; use responsibly and comply with local laws.
copytrading #copytradebot #solana #solanabot #tradingbot #opensource
United States
NORTH AMERICA
Related News
Secret Claude Tracker Shocks Users After Anthropic's Anti-Surveillance Stance
12h ago
EV Batteries Defy Expectations, Last Hundreds of Thousands of Miles
1d ago
GBase 8a Performance Anomaly Case Study: How a Single Parameter Change Sparked a Chain Reaction
1d ago
Who Else Has Inherited a Codebase With Zero Comments and a Prayer?
1d ago
ๅฎ็พ็ๅนณๅบธ
4h ago