SolanaMevBot setup

This tool wraps around smb-onchain, so you must first download and run smb-onchain with a basic configuration. At minimum, this step is required to generate the ENCRYPTED_PRIVATE_KEY file, which copychain depends on to run.

If you already have a working SMB installation, you can just skip to next section

You must first follow the installation instructions in the SMB documentation until Step 4:

For Step 4 (configure and run), here is a minimal configuration that doesn’t perform any actions but will create the ENCRYPTED_PRIVATE_KEY file:

config.toml
[bot]
merge_mints = false
compute_unit_limit = 600_000
skip_ata_creation = true

[[routing.mint_config_list]]
mint = "GUM5Vd4qe5kgTBHNfmLRaZSKKmYdAWxLJ18DY1Uzpump"
pump_pool_list = []
meteora_dlmm_pool_list = []
raydium_pool_list = []
raydium_cp_pool_list = []
raydium_clmm_pool_list = []
whirlpool_pool_list = []
meteora_damm_pool_list = []
meteora_dammv2_pool_list = []
solfi_pool_list = []
lookup_table_accounts = []
process_delay = 100000

[spam]
enabled = false
sending_rpc_urls = []
compute_unit_price = { strategy = "Random", from = 1, to = 1, count = 1 }
max_retries = 0

[jito]
enabled = false
block_engine_urls = []
ip_addresses = []
use_separate_tip_account = true
no_failure_mode = false
block_engine_strategy = "AllAtOnce" # "OneByOne" or "AllAtOnce"

[jito.tip_config]
strategy = "Random" # Random/Linear/Exponential/File
from = 1
to = 1
count = 0 # This configs how many different tips to generate. All the tx will be send out together.

[flashloan]
enabled = true

# ############################################################
# Replace here with your values
[rpc]
url = "xxx"

[wallet]
private_key = "xxx"

You only need to start the binary once:

./smb-onchain run config.toml

You should see:

1. Creating RPC client...
   RPC client created with URL: [...]
   Sending RPC client created with URLs:

2. Setting up wallet and token accounts...
Keypair exported and encrypted to ENCRYPTED_PRIVATE_KEY
   Encrypted keypair saved to ENCRYPTED_PRIVATE_KEY
Error: Please remove your private key from the config file and restart the bot

Now delete the last line of your SMB configuration:

...

[flashloan]
enabled = true

# ############################################################
# Replace here with your values
[rpc]
url = "xxx"

[wallet]
# <-- Delete this line

You’re all set!

Last updated