Install Commands
Installation guide
Follow these steps to set up your Node.js project:
-
Install Node.js
Download and install Node.js from the official website: https://nodejs.org/.
-
Open your terminal
Navigate to the root folder of the project.
cd seawolfie
-
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 theSolana Priority Fee API
extension in the above RPC. -
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;
-
Install project dependencies
Run the following command:
npm install
-
Start the application
Run:
node index.js
Tip: For base58 private keys like phantom use this code in Python to get the key:
import base58
MY_PRIVATE_KEY_IN_BASE58 = 'your_key_here'
byte_array = base58.b58decode(MY_PRIVATE_KEY_IN_BASE58)
json_string = "[" + ",".join(map(lambda b: str(b), byte_array)) + "]"
print(json_string)
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)
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)
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%)
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
balance 24
- Shows PNL for last 24 hoursbalance 0.1
- Shows PNL for last 10 minutes