- Open the terminal and clone the repo
git clone https://github.com/Deezzir/SolanaBot.git
- Change the directory to the cloned repo
cd SolanaBot
- Install Node.js and npm if you haven't already, and install the dependencies
A good way to install Node.js and NPM is to use npm DOCS
npm install
- Create a
.env
file in the root directory and add the following
RPC=
HELIUS_API_KEY=
TRADE_PROGRAM_ID=
GLOBAL_ACCOUNT=
FEE_RECIPIENT_ACCOUNT=
EVENT_AUTHORITUY_ACCOUNT=
MINT_AUTHORITY_ACCOUNT=
KEYS_DIR=./keys
FETCH_MINT_API_URL=
IPFS_API_KEY=
MONGO_URI=
MONGO_DB_NAME=
- Build the project
npm run build
- Run the project
node dist/bot.js -h
Usage: bot [options] [command]
Solana Buy Bot CLI
Options:
-V, --version output the version number
-h, --help display help for command
Commands:
start|s [options] Start the bot
balance|b Get the balance of the accounts
spl-balance|sb <mint> Get the total balance of a token of the accounts
warmup|w [options] Warmup the accounts with the tokens
collect|c [options] <address> Collect all the SOL from the accounts to the provided address
spl-buy-once|bto <amount> <mint> <keypair_path> Buy the token once with the provided amount
spl-sell-once|sto <mint> <keypair_path> Sell the token once with the provided amount
spl-sell|st [options] <mint> Sell all the token by the mint from the accounts
transfer|tr <amount> <address> <keypair_path> Transfer SOL from the specified keypair to the receiver
spl-collect|ct <mint> <address> Collect all the token by the mint from the accounts to the provided address
topup|t [options] <amount> <keypair_path> Topup the accounts with SOL using the provided keypair
metadata|m <json> <image_path> Upload the metadata of the token using the provided JSON file
promote|pr <count> <cid> <keypair_path> Create promotion tokens using the provided keypair
drop|d [options] <airdrop> <mint> <keypair_path> Do the drop
clean|cl Clean the accounts
clear-drop|cd <airdrop_file_path> Clear the drop
help [command] display help for command