solana trading bot solana trading bot solana trading bot solana trading bot solana trading bot solana trading bot solana trading bot solana trading bot solana trading bot solana trading bot solana trading bot solana trading bot solana trading bot solana trading bot solana trading bot solana trading bot solana trading bot solana trading bot

Solana Trading Bot (RC)
The Solana Trading Bot is a software tool designed to automate the buying and selling of tokens on the Solana blockchain. It is configured to execute trades based on predefined parameters and strategies set by the user.
The bot can monitor market conditions in real-time, such as pool burn, mint renounced and other factors, and it will execute trades when these conditions are fulfilled.
The current version has undergone multiple optimizations, including stability and processing speed improvements, making it better suited for the complexity of the current Solana market. Note: the previous @2.0.0 version repository is no longer maintained and has now continued here.
Setup
To run the script you need to:
- Convert some SOL to USDC or WSOL. (WSOL is more recommended. You can go to https://jup.ag/ and click “Manage” to wrap some SOL into WSOL. Click “MANUAL” to set “Use wSOL”, and finally click “Manage” to convert part of SOL to WSOL.)
- Configure the script by updating
.env.examplefile (remove the .example from the file name when done).
- To run this program, you must have a NodeJS environment. If you don’t have it, please go to https://nodejs.org/en to download and install it first.
- Install dependencies by typing:
npm install - Run the script by typing:
npm run startin terminal
.env file:
Configuration
Wallet
PRIVATE_KEY- Your wallet's private key.
Connection
RPC_ENDPOINT- HTTPS RPC endpoint for interacting with the Solana network.RPCWEBSOCKETENDPOINT- WebSocket RPC endpoint for real-time updates from the Solana network.COMMITMENT_LEVEL- The commitment level of transactions (e.g., "finalized" for the highest level of security).
Bot
LOG_LEVEL- Set logging level, e.g.,info,debug,trace, etc.ONETOKENATATIME- Set totrueto process buying one token at a time.COMPUTEUNITLIMIT- Compute limit used to calculate fees.COMPUTEUNITPRICE- Compute price used to calculate fees.PRELOADEXISTING_MARKETS- Bot will load all existing markets in memory on start.
CACHENEWMARKETS- Set totrueto cache new markets.
TRANSACTION_EXECUTOR- Set towarpto use warp infrastructure for executing transactions, or set it to jito to use JSON-RPC jito executer
CUSTOMFEE- If using warp or jito executors this value will be used for transaction fees instead ofCOMPUTEUNITLIMITandCOMPUTEUNIT_LIMIT
Buy
QUOTE_MINT- Which pools to snipe, USDC or WSOL.QUOTE_AMOUNT- Amount used to buy each new token.AUTOBUYDELAY- Delay in milliseconds before buying a token.MAXBUYRETRIES- Maximum number of retries for buying a token.BUY_SLIPPAGE- Slippage %
Sell
AUTO_SELL- Set totrueto enable automatic selling of tokens.
MAXSELLRETRIES- Maximum number of retries for selling a token.AUTOSELLDELAY- Delay in milliseconds before auto-selling a token.PRICECHECKINTERVAL- Interval in milliseconds for checking the take profit and stop loss conditions.
PRICECHECKDURATION- Time in milliseconds to wait for stop loss/take profit conditions.
TAKE_PROFIT- Percentage profit at which to take profit.
STOP_LOSS- Percentage loss at which to stop the loss.
SELL_SLIPPAGE- Slippage %.
Snipe list
USESNIPELIST- Set totrueto enable buying only tokens listed insnipe-list.txt.
SNIPELISTREFRESH_INTERVAL- Interval in milliseconds to refresh the snipe list.
Note: When using snipe list filters below will be disabled.
Filters
FILTERCHECKINTERVAL- Interval in milliseconds for checking if pool match the filters.
FILTERCHECKDURATION- Time in milliseconds to wait for pool to match the filters.
CONSECUTIVEFILTERMATCHES- How many times in a row pool needs to match the filters.
CHECKIFMUTABLE- Set totrueto buy tokens only if their metadata are not mutable.CHECKIFSOCIALS- Set totrueto buy tokens only if they have at least 1 social.CHECKIFMINTISRENOUNCED- Set totrueto buy tokens only if their mint is renounced.CHECKIFFREEZABLE- Set totrueto buy tokens only if they are not freezable.CHECKIFBURNED- Set totrueto buy tokens only if their liquidity pool is burned.MINPOOLSIZE- Bot will buy only if the pool size is greater than or equal the specified amount.
0 to disable.
MAXPOOLSIZE- Bot will buy only if the pool size is less than or equal the specified amount.
0 to disable.
Warp transactions (RC)
In case you experience a lot of failed transactions or transaction performance is too slow, you can try using warp for executing transactions. Warp is hosted service that executes transactions using integrations with third party providers.
Note: Warp transactions are disabled by default.
Security
When using warp, transaction is sent to the hosted service. Payload that is being sent will NOT contain your wallet private key. Fee transaction is signed on your machine. Each request is processed by hosted service and sent to third party provider. We don't store your transactions, nor we store your private key.
Note: Warp transactions are disabled by default.
Fees
When using warp for transactions, fee is distributed between developers of warp and third party providers. In case TX fails, no fee will be taken from your account.
Common issues
If you encounter an error that is not listed here, please contact me. To collect more information on an issue, please change LOG_LEVEL to debug.
Unsupported RPC node
- 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 Helius or Quicknode. I recommend Helius.
No token account
- 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 USDC/WSOL token account.
- FIX: Go to https://jup.ag/ and swap some SOL to USDC/WSOL.
Support
- The current version has undergone multiple audits and testing, demonstrates strong profitability, and is free of errors. However, you should always pay attention to market changes and make adjustments accordingly. If you happen to encounter an overall market downturn while using it, I suggest waiting until the market stabilizes before running it again.
- If it helps you, please leave a star🌟. It will have a positive impact on future maintenance.
Disclaimer
The Solana Trading Bot is provided as is, for learning purposes. Trading cryptocurrencies and tokens involves risk, and past performance is not indicative of future results. The use of this bot is at your own risk, and we are not responsible for any losses incurred while using the bot.