🛠️Getting set up
Last updated
Last updated
The bot runs on linux, so you need to either rent one or use your own. The recommended hardware is 4 core/32GB RAM at least.
To be able to run the bot smoothly, recommend running with Ubuntu 22. WSL on windows is known to have issue and not working well with the bot.
Download
First ssh into your Linux machine, then download the zip file for the latest release.
The latest release can be found here: Releases
Create a new folder for the bot
mkdir bot
cd bot
Install wget
sudo apt update
sudo apt install wget
Download using wget. Note you should replace the link with the one in the latest release:
wget https://sourceforge.net/projects/solanamevbot/files/solana-mev-bot-1.0.7.zip
Install unzip
sudo apt update
sudo apt install unzip
Unzip the file(replace the file name with the one you downloaded)
unzip solana-mev-bot-1.0.7.zip
Upgrade to the latest version
./upgrade.sh
Check if everything is unzipped correctly
ls
You should see at least the following files after running ls
config.yaml.example
download
kill-jup.sh
bot
run.sh
debug.sh
jupiter-swap-api
Prepare
Install the needed packages
sudo apt-get install lsof
Setup
You need to make a few changes to the config files before running the bot
Create a new file called config.yaml
, copy the config from Demo account config and fill in the needed fields. Make sure your wallet has the amount of SOL/USDC/USDT needed, or remove the according config as you need.
It's highly recommended to start with the demo account config and only change the trade size as you see fit. A lot of things can go wrong and cause you to land nothing if you try to setup a config yourself.
Edit your config.yaml file. You can use either vim or nano
nano config.yaml
When using nano, at the bottom of the window, there is a list of the most basic command shortcuts to use with the nano editor.
All commands are prefixed with either ^
or M
characters. The caret symbol (^
) represents the Ctrl
key. For example, the ^X
commands mean to press the Ctrl
and X
keys at the same time. The letter M
represents the Alt
key.
Or, you can copy config.yaml.example
file and name it to config.yaml
, and change configs accordingly.
cp config.yaml.example config.yaml
Last step, give permissions to the bot to run
chmod +x *
Now you are all set to run!
To run the bot, simply do the following:
./run.sh
Then you should see the bot setup everything and start running!
You can find a more detailed configuration guide in Bot configuration and Performance tuning.
Join the Discord to learn how to optimize your setup with other users!
When you ssh into a remote machine and run the bot, once you close the terminal, the bot will stop running. This section shows you how to run it even when your terminal is closed.
Create a screen session, called bot
screen -S bot
Now you are in a screen session. To verify, run
screen -ls
You should see something like the following:
There are screens on:
1059895.bot (05/23/24 03:11:34) (Attached)
Attached means you are now in this screen session.
Now you can run the bot as shown above, which will run the bot inside the bot session, and it won't stop running even if you close the terminal!
./run.sh
Once you close your terminal and reconnect, run the following to open the previous created session.
screen -r bot
To fully close it, run
screen -X -S bot quit
Make sure you don't have 2 sessions both running the bot together, or the bot will fail to run.
To exit a screen session while you are attached, press ctrl+a, then d