Solana Copy Trader
by @youthaiagent
Solana whale copy trading bot. Track any wallet, copy trades in real-time via Jupiter + Pump.fun APIs, with paper trading simulation and live execution. Use...
clawhub install solana-copy-traderπ About This Skill
name: solana-copy-trader description: > Solana whale copy trading bot. Track any wallet, copy trades in real-time via Jupiter + Pump.fun APIs, with paper trading simulation and live execution. Use when user wants to copy trade a Solana wallet, track whale transactions, scan for arbitrage opportunities, monitor pump.fun token launches, or set up an autonomous Solana trading bot.
Solana Copy Trader
Real-time Solana whale copy trader using Helius WebSocket + Jupiter API + Pump.fun.
Quick Start
cd solana-bot
npm install
cp .env.example .env # fill in keys
node index.js copy # paper mode (safe)
node index.js watch # whale tracker only
node index.js scan # arb scanner
Modes
| Mode | Command | Description |
|------|---------|-------------|
| copy | node index.js copy 0.01 | Copy whale trades (paper by default) |
| watch | node index.js watch | Watch whale txs live |
| scan | node index.js scan | Scan arb opportunities |
| paper | node index.js paper | Full paper trading sim |
| analyze | node index.js analyze | Wallet pattern analysis |
| safety | node index.js safety | Token rug check |
.env Setup
PRIVATE_KEY=your_base58_private_key # leave blank for watch-only
RPC_URL=https://mainnet.helius-rpc.com/?api-key=YOUR_KEY
HELIUS_API_KEY=your_helius_key # free at dev.helius.xyz
BOT_TOKEN=telegram_bot_token # for alerts
CHAT_ID=your_telegram_chat_id
MAX_TRADE_SOL=0.01 # safety limit per trade
MIN_PROFIT_PCT=0.5
Architecture
Helius WebSocket β whale tx detected
β
parseTransaction() β decode token changes
β
Jupiter quote β can we route?
β (if no route)
Pump.fun DAS check β bonding curve token?
β
safety check β price impact < 50%?
β
paper: log trade | live: executeRealSwap()
β
Telegram alert sent
Key Files
src/copy_trade.js β Core copy trader enginesrc/wallet_tracker.js β Helius WebSocket + tx parsingsrc/arbitrage.js β Jupiter arb scannersrc/pumpfun.js β Pump.fun token metadata via Helius DASsrc/sniper.js β New token sniper (paper mode)src/config.js β Wallet + connection setupsrc/alerts.js β Telegram notificationsLive β Paper Switch
In copy_trade.js startCopyTrader():
paper: true // paper mode (safe, no real money)
paper: false // LIVE mode β real trades
Or use index.js mode copy (always paper) vs direct startCopyTrader({ paper: false }).
Safety Limits
MAX_TRADE_SOL β max SOL per trade (default 0.01)maxPositions: 3 β max open positions at oncepriceImpact > 50% β skip (rug protection)Whale to Copy
Default whale: AgmLJBMDCqWynYnQiPCuj9ewsNNsBJXyzoUhD9LJzN51
src/copy_trade.js β WHALE constantRequirements
See references/api-setup.md for getting free API keys.
See references/trading-concepts.md for how Solana MEV/arb works.
π‘ Examples
cd solana-bot
npm install
cp .env.example .env # fill in keys
node index.js copy # paper mode (safe)
node index.js watch # whale tracker only
node index.js scan # arb scanner