https://github.com/SolanaNinja/sniper-bot-solana/tree/main
π― Sniper-Bot-Solana
the sniper-bot-solana! is an advanced trading tool designed for the Solana blockchain's Raydium decentralized exchange. This bot is built to automatically identify and purchase tokens from newly created liquidity pools on Raydium, providing users with the ability to capitalize on fresh trading opportunities faster than manual methods or the Raydium UI.
π Key Features
- WSOL Support: Uses WSOL (Wrapped SOL) for trading; SOL is needed for transaction fees.
- Auto-Sell: Automatically sells tokens based on take profit and stop loss settings.
- Configurable Take Profit/Stop Loss: Default settings are 50% take profit and 30% stop loss, adjustable as needed.
- Sniping List: Target specific tokens by adding them to a snipe list.
- Liquidity Checks: Verifies token liquidity, including checks for burns, locks, and renounced mints.
- Fast Execution: Executes trades faster than the Raydium UI for timely opportunities.
π Take Profit & Stop Loss
- Take Profit: Default is 50%. Modify in the configuration if needed.
- Stop Loss: Default is 30%. Adjust according to your risk management preferences.
π Auto-Sell
By default, auto-sell is enabled. To customize:
- Set
AUTO_SELL
tofalse
to disable auto-sell. - Adjust
MAX_SELL_RETRIES
to define the number of sell retries. - Set
AUTO_SELL_DELAY
to control the delay before selling. A delay of 0 means immediate selling (which may not guarantee profit).
π― Sniping List
To focus on specific tokens:
- Set
USE_SNIPE_LIST
totrue
. - Add token mint addresses to the
snipe-list.txt
file, one address per line. - Update the list during script runtime; the script will refresh based on the
SNIPE_LIST_REFRESH_INTERVAL
.
π οΈ Setup Instructions
Option 1: Local Machine
Clone the Repository:
git clone https://github.com/AhmedRabby2002/Solana-Raydium-Sniper-Bot.git
Or download the ZIP file from GitHub.
Install Node.js:
Download from nodejs.org.Install Dependencies:
Navigate to the project directory and run:
npm install
Convert SOL to WSOL:
Create a New Solana Wallet:
- If you donβt have a Solana wallet, you can create one using Phantom Wallet, a popular and user-friendly option.
Transfer SOL:
- Transfer some SOL to your Phantom Wallet.
Convert SOL to USDC or WSOL:
- Use Jupiter to convert SOL to USDC or WSOL, depending on your needs.
Install Dependencies:
npm install
Option 2: Using Gitpod (No Local Machine Required)
Open Gitpod:
Click on the following link to open this project in Gitpod: Open in Gitpod.Gitpod Workspace Setup:
- Gitpod will automatically set up a development environment for you in the cloud.
- Once the workspace is ready, Gitpod will open a terminal where you can install dependencies and configure the script.
Install Dependencies:
In the Gitpod terminal, run:npm install
Configure the Script:
- Gitpod should have already copied
.env.copy
to.env
. If not, you can manually copy it. - Update
.env
with your private key, RPC endpoints, and other settings.
- Gitpod should have already copied
Convert SOL to WSOL:
Ensure you have a way to convert SOL to WSOL as Gitpod wonβt have access to external services directly. You might need to use a web-based service or API for this.
βοΈ Configuration
- Configure the script by updating
.env.copy
file (remove the .copy from the file name when done). PRIVATE_KEY
(your wallet private key)RPC_ENDPOINT
(https RPC endpoint)RPC_WEBSOCKET_ENDPOINT
(websocket RPC endpoint)QUOTE_MINT
(which pools to snipe, USDC or WSOL)QUOTE_AMOUNT
(amount used to buy each new token)COMMITMENT_LEVEL
CHECK_IF_IS_BURNED
(liquidity burn check)CHECK_IF_IS_LOCKED
(liquidity lock check)USE_SNIPE_LIST
(buy only tokens listed in snipe-list.txt)SNIPE_LIST_REFRESH_INTERVAL
(how often snipe list should be refreshed in milliseconds)CHECK_IF_MINT_IS_RENOUNCED
(script will buy only if mint is renounced)MIN_POOL_SIZE
(script will buy only if pool size is greater than specified amount)TAKE_PROFIT=50
(in %)STOP_LOSS=30
(in %)BIRDEYE_API_KEY=
(TP/SL, Burn/Lock) generate here : https://docs.birdeye.so/docs/authentication-api-keys
RPC Recommendation: Try Helius Labs for a reliable RPC service. Sign up for free and use the referral code 3wISAeRX8K
to get 5,000,000 free credits on the paid plan.
Run the Script:
In the terminal, start the script by typing :npm run start
β Common Issues
- Empty Transactions: Change commitment level to "finalized".
- Unsupported RPC Node: Use supported nodes like Shyft, Helius, or Quicknode.
- No Token Account: Ensure your wallet has a WSOL token account by swapping SOL to WSOL.
π Notes
- Testing: Run the bot for a few hours to evaluate its performance before full-time use.
π Future Plans
- Notifications: Integrate notifications via Discord or Telegram to keep you updated on bot activity and trading events. Stay tuned for updates on how to configure these notifications.
- Docker Integration: Introduce Docker support to simplify deployment and management of the bot in various environments. Instructions will be provided once Docker support is added.
π§ Contact
For support or inquiries about the premium version, please email: [email protected]
Hereβs a revised version of your donation message with emojis and a more prominent look:
π Support Our Project! π**
Help us continue our work by making a donation to the Solana address below. Every contribution counts and is greatly appreciated!
π Solana Address:
3nNESw5TypzEY1982zAJnokwX8x2dGij99M39E2meRRn
Thank you for your support! π
Future Plans: We're looking to expand the team and potentially integrate AI into the project. If you're interested in contributing or have ideas, please get in touch!
Thank you, friend!
I'm @steem.history, who is steem witness.
Thank you for witnessvoting for me.
please click it!
(Go to https://steemit.com/~witnesses and type fbslo at the bottom of the page)
The weight is reduced because of the lack of Voting Power. If you vote for me as a witness, you can get my little vote.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit