NotArb - Solana Arbitrage Bot
  • Getting Started
    • Welcome
    • Changelog
    • The Basics
  • Setup
    • Start Here!
    • Prerequisites
      • Recommended Apps
      • RPC Providers
      • Linux Machines
    • Logging in Using SSH
    • Securing Your Machine
      • User Management
      • SSH Key-Based Authentication
      • Setting up UFW
      • Setting up fail2ban
      • Securing Wallet Private Key
    • Setting up for FTP
    • Initial Setup of NotArb
    • Using Screens
    • Making a Solana Wallet
  • Configurations
    • Using Nano
    • Config Basics
    • bot-config.toml
      • General Bot Settings
      • WSOL Unwrapper
      • JITO Strategy Settings
      • Spam Strategy Settings
      • Token Lists Settings
      • Swap Settings
    • jupiter-config.toml
      • Manager Settings
      • Env Settings
      • Mint Filters
    • Shell Scripts
      • run-bot.sh
      • run-jupiter.sh
      • run-screens.sh
  • Usage
    • Strategies
      • Jito Strategy
      • Spam Strategy
    • Updating
  • EXPERIMENTAL FEATURES
    • Overview & Caution
    • New Setup Configurations
  • New Mint Configurations
  • Default Strategy Fields
  • Jito Example
  • Spam Example
  • Extra Features
  • Support
    • FAQ
    • Common Issues
    • Troubleshooting
    • NotArb Docs Tracker
    • Contact
Powered by GitBook
On this page
  • Version 0.1.95
  • Example Spam Bot Configuration File
  • Basic Bot Configuration File
  1. Usage
  2. Strategies

Spam Strategy

PreviousJito StrategyNextUpdating

Last updated 3 months ago

This section will go over the basic set up for your spam bot.

Version 0.1.95

Example Spam Bot Configuration File

[bot_misc] # required
keypair_path="/path/to/keypair.json OR /path/to/keypair.txt" # required for signing transactions
swap_threads=0 # Leave at 0 if not sure.
spam_threads=0 # Leave at 0 if not sure.

[jupiter] # required
url="http://127.0.0.1:8080/"
http_timeout_ms=3000
http_pool_max_size=50

[[rpc]]
id="sender-1" # change this to any name you'd like, it's used as an identifier throughout this file
url="https://api.mainnet-beta.solana.com" # change this to your rpc's url
http_timeout_ms=5000

[[rpc]]
id="sender-2" # change this to any name you'd like, it's used as an identifier throughout this file
url="https://api.mainnet-beta.solana.com" # change this to your rpc's url
http_timeout_ms=5000

[[static_mints]]
enabled=true
random_order=true
max_per_cycle=5
list=[
    "So11111111111111111111111111111111111111112",  # sol
    "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB", # usdt
    "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", # usdc
    "4k3Dyjzvzp8eMZWUXbBCjEvwSkkk59S5iCNLY3QrkX6R", # ray
    "J1toso1uCk3RLmjorhTtrVwY9HJ7X8V9yYac6Y7kGCPn", # jitosol
    "7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs", # weth
    "3NZ9JMVBmGAqocybic2c7LQCJScmgsAZ6vQqTDzcqmJh", # wbtc
    "JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN",  # jup
    "HZ1JovNiVvGrGNiiYvEozEVgZ58xaU3RKwX8eACQBCt3", # pyth
    "5oVNBeEEQvYi1cX3ir8Dx5n1P7pdxydbGF2X4TxVusJm", # inf
]

[[file_mints]]
enabled=false
random_order=true
max_per_cycle=5
path="/path/to/mints.txt OR /path/to/mints.json"

####################################
#        Define your swaps!        #
####################################

#########
#  SOL  #
#########
[[swap]]
enabled=true
mint="SOL"

[swap.strategy_defaults]
wrap_unwrap_sol=false
coldown="1s" # examples: 100ms, 5s, 2m

[[swap.strategy]]
min_spend=2
max_spend=6
min_gain_sol=0.05
spam_senders=[
    { rpc="sender-1", skip_preflight=true, max_retries=0 },
    { rpc="sender-2", skip_preflight=true, max_retries=0 },
]
spam_max_opportunity_age_ms=1500

Basic Bot Configuration File

This configuration will use Shark, Pixel Labs and o7 node to send transactions with one swap strategy. This configuration is using the feature skip_user_accounts_rpc_calls where the token_accounts_fetcher feature will fetch the accounts already in the wallet where it doesn't have to create the token accounts to perform the transaction.

```
[bot_misc]
keypair_path="key.txt"
swap_threads=0
spam_threads=-1
acknowledge_terms_of_service=true
acknowledge_external_price_risk=true
protect_keypair=true

[jupiter]
url="http://127.0.0.1:8080/"
http_timeout_ms=3000
http_pool_max_size=50

####################################################################################################

[[rpc]]
id="SHARK"
url="https://staked-va.sharklabs.sh/" 
http_pool_keep_alive="10m"
http_pool_max_size=50

[[rpc]]
id="PP"
url="http://va.pixellabz.io/" 
http_pool_keep_alive="10m"
http_pool_max_size=50

[[rpc]]
id="o7"
url="http://va.o7node.com:7799" 
http_pool_keep_alive="10m"
http_pool_max_size=50

[wsol_unwrapper]
enabled=true
rpc="SHARK"
check_minutes=1
min_sol=0.5
unwrap_sol=0.5
priority_fee_lamports=10000

[token_accounts_fetcher]
enabled=true
rpc="SHARK"


####################################################################################################

[[file_mints]]
enabled=true
untradable_cooldown="5m"
update_seconds=60
path="/path/to/mints.txt"

####################################
#        Define your swaps!        #
####################################

#########
#  SOL  #
#########
[[swap]]
enabled=true
mint="SOL"

[swap.strategy_defaults]
wrap_unwrap_sol=false
jito_enabled=false
spam_senders=[
    { rpc="SHARK", skip_preflight=true, max_retries=10, unique=false },
    { rpc="PP", skip_preflight=true, max_retries=10, unique=false },
    { rpc="o7", skip_preflight=true, max_retries=10, unique=false },
]
spam_max_opportunity_age_ms = 10
min_swap_routes=2
skip_user_accounts_rpc_calls=true


[[swap.strategy]]
min_spend=0.0001
max_spend=0.01
cu_limit=180_000
min_priority_fee_lamports = 1_200_000
max_priority_fee_lamports = 1_550_000
min_gain_sol = 0.1
max_swap_routes=2

```