Giter Club home page Giter Club logo

solanabot's Introduction

Solana Buy Bot

Quick Start

  1. Open the terminal and clone the repo
git clone https://github.com/Deezzir/SolanaBot.git
  1. Change the directory to the cloned repo
cd SolanaBot
  1. 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
  1. 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=
  1. Build the project
npm run build
  1. 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

solanabot's People

Contributors

deezzir avatar

Stargazers

TrongDang avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.