Developed by
Powered by: Jupiter Aggregator, Solana Web3.js, and SPL Token libraries.
Welcome to the Solana Copy Trading Bot, a cutting-edge tool designed to replicate successful trades on the Solana blockchain! This bot monitors live transactions, automatically executes trades, and optimizes profits, making it easier for you to stay ahead in the market.
- Live Monitoring: Tracks Jupiter swap transactions in real-time using WebSocket.
- Key Insights: Extracts essential details, including token addresses, amounts, and prices, as soon as the transaction occurs.
- Automated Trading: Executes buy or sell trades based on monitored swap data.
- Maximized Profits: Ensures an optimal SOL balance while maintaining reserves for future trades.
- Token Info: Retrieves metadata such as token name, symbol, and logo with the help of the Metaplex SDK.
- Market Value: Calculates token prices and displays them in USD for clearer insights.
- Easy Configuration: Adjust target wallet, buy/sell limits, and RPC endpoints to fit your needs with minimal effort.
- Transaction Logging: Keeps detailed logs of transaction values and links to Solscan for transparency, ensuring you have full control and oversight of your trades.
git clone https://github.com/dieharye/solana-copy-trading-bot.git
cd solana-copy-trading-bot
npm install
- Create a
.env
file and include the following details:
PRIVATE_KEY=<your_wallet_private_key>
RPC_ENDPOINT=https://api.mainnet-beta.solana.com
RPC_WEBSOCKET_ENDPOINT=wss://api.mainnet-beta.solana.com
TARGET_WALLET=<target_wallet_public_key>
MAXIMUM_BUY_AMOUNT=<max_amount_in_SOL>
JUP_AGGREGATOR=<jupiter_program_id>
Simply run:
npm run start
- Monitors: Tracks live Jupiter swaps and logs the transaction details.
- Executes: Automatically buys or sells SOL and tokens based on predefined trading conditions.
- Reports: Displays transaction outcomes, including detailed links to Solscan for easy tracking.
- The bot subscribes to Solana transaction streams using WebSocket for live updates.
- Extracts swap data and token metadata, including name, symbol, and logos, for better decision-making.
- Automatically buys or sells tokens based on your custom-defined logic using the best available prices via Jupiter Aggregator.