Solana Raydium Sniper Bot that listens to new Raydium SOL pools and buys tokens for a fixed amount in SOL. Depending on the speed of the RPC node, the purchase usually happens before the token is available on Raydium UI for swapping. This version is free, but it can still generate stable profits of several hundred dollars per day. You can run it for a few hours to check the earnings. If you want to purchase the premium version, my Telegram is at the bottom.
SOL Snipe
Auto-Sell
TP/SL
Min Liq
Burn/Lock Check
Renounce Check
Fast Buy
Note
This is provided as is, for learning purposes.
- Fast detect new token in pool, use can see we could buy token in very very soon as launch token, so as soon we buy, as good price/profit we get
- Easy to setup. All you need just your wallet token to buy and sell. If you want to try, just leave other fields as default
- Easy to modify take profit and stoploss percent as you want.
- Configure the script by updating
.env
file PRIVATE_KEY
(your wallet private key)QUOTE_AMOUNT
(amount used to buy each new token)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 sol amount in liquid pool is greater than this, normally is 50 or above)TAKE_PROFIT=50
(in %)STOP_LOSS=30
(in %)
- Install dependencies by typing:
npm install
- Run the script by typing:
npm run start
in terminal
Note
By default, 50 %
Note
By default, 30 %
By default, auto sell is enabled. If you want to disable it, you need to:
- Change variable
AUTO_SELL
tofalse
- Update
MAX_SELL_RETRIES
to set the maximum number of retries for selling token - Update
AUTO_SELL_DELAY
to the number of milliseconds you want to wait before selling the token (this will sell the token after the specified delay. (+- RPC node speed)).
If you set AUTO_SELL_DELAY to 0, token will be sold immediately after it is bought. There is no guarantee that the token will be sold at a profit or even sold at all. The developer is not responsible for any losses incurred by using this feature.
By default, script buys each token which has a new liquidity pool created and open for trading. There are scenarios when you want to buy one specific token as soon as possible during the launch event. To achieve this, you'll have to use snipe list.
- Change variable
USE_SNIPE_LIST
totrue
- Add token mint addresses you wish to buy in
snipe-list.txt
file (add each address as a new line).
This will prevent script from buying everything, and instead it will buy just listed tokens.
You can update the list while script is running. Script will check for new values in specified interval (SNIPE_LIST_REFRESH_INTERVAL
).
Pool must not exist before the script starts. It will buy only when new pool is open for trading. If you want to buy token that will be launched in the future, make sure that script is running before the launch.
Important
If you have an error which is not listed here, please create a new issue in this repository.
To collect more information on an issue, please change LOG_LEVEL
to debug
.
If you see empty transactions on SolScan most likely fix is to change commitment level to finalized
.
If you see following error in your log file:
Error: 410 Gone: {"jsonrpc":"2.0","error":{"code": 410, "message":"The RPC call or parameters have been disabled."}, "id": "986f3599-b2b7-47c4-b951-074c19842bad"}
It means your RPC node doesn't support methods needed to execute script.
FIX: Change your RPC node. You can use Shyft, Helius or Quicknode.
If you see following error in your log file:
Error: No SOL token account found in wallet:
it means that wallet you provided doesn't have SOL token account.
Telegram: @AhmedRabby2002
Important
Use this script at your own risk.