Install Commands

Installation guide

Follow these steps to set up your Node.js project:

  1. Install Node.js
    Download and install Node.js from the official website: https://nodejs.org/.
  2. Open your terminal
    Navigate to the root folder of the project.
    cd seawolfie
  3. Configure the env
    Edit the .env file to set your API keys: private node endpoint, and secret key.
    PRIVATE_KEY=your_private_key
    PRIVATE_RPC=your_quicknode_private_rpc
    Get a free private RPC from here.
    Enable the Solana Priority Fee API extension in the above RPC.
  4. Configure the project
    Edit the index.js file to set the correct initial buy amount for sniper.
    let initialTradePriceInLamports = sol_amount_invested * 1_000_000_000;
  5. Install project dependencies
    Run the following command:
    npm install
  6. Start the application
    Run:
    node index.js
Bot Commands

Control your trading strategy

Buy Command
b amount slippage

Execute a buy order with specified amount and slippage tolerance.

Parameters:
  • amount - The quantity to buy (e.g., 0.5 SOL)
  • slippage - Maximum acceptable slippage percentage (e.g., 12)
Example:
b 0.3 10 - Swaps 0.3 SOL with max 10% slippage
Sell Command
s amount slippage

Execute a sell order with specified amount and slippage tolerance.

Parameters:
  • amount - The quantity to sell (e.g., 100000, or 0 to all)
  • slippage - Maximum acceptable slippage percentage (e.g., 1.5)
Example:
s 0 5 - Swaps back to SOL all tokens with max 5% slippage
Sniper Command
sniper percentage

Monitor the price and execute trades when it reaches a certain percentage change.

Parameters:
  • percentage - The target percentage change to watch for (e.g., 5 for 5%)
Example:
sniper 5 - Triggers when price moves 5% from current level
Exit Command
e

Halt execution.

Example:
e - Immediately exits snipers or recurrent tasks
Balance Command
balance time

Get the profit and loss (PNL) balance for a specific time period.

Parameters:
  • time - Time period to check in hours
Examples:
balance 24 - Shows PNL for last 24 hours
balance 0.1 - Shows PNL for last 10 minutes