Git Product home page Git Product logo

sniperbot's Introduction

HOW TO RUN

  1. clone this repository
  2. $ npm install
  3. Edit your env.json
RPC = //your NODE url. Use the default BSC Dataseed to test it. if a custom node or ETH. Custom nodes are way faster but if you want, you can use free services for BSC nodes like Infuria / Moralis / Quicknode or Binance nodes. For Eth you can also use the same or https://ethereumnodes.com/

CHAIN = //the Chain of your target network such as 56 for BSC, 1 for ETH etc.

RECIPIENT = //Your address to receive tokens at

PRIVATE_KEY = //Your private key to sign the transaction

CONTRACT_TO_SNIPE = //The target contract address you want to snipe

MULTIPLIER: = //How many transactions to submit, ie buy 1 time or 5 times etc

GAS_LIMIT: = //best to leave it at default 1000000

AMOUNT_TO_BUY = //amount in either ETHER or BNB to buy depending on your NODE, accepts decimals

PROFITPERCENT= //profit to take which will initiate a sell

STOPLOSSPERCENT = //loss at which to initiate a sell

percentOfTokensToSellProfit= //sell % when profit is reached

percentOfTokensToSellLoss = //sell % when stoploss is reached

trailingStopLossPercent= //% trailing stoploss

maxLiquiditymax = //max Liquidity in BNB the contract needs to have for the buy to initiate

minLiquidity = //min Liquidity in BNB the contract needs to have for the buy to initiate
  1. run with node bot.js .

  2. Wait the bot do his job

TROUBLESHOOT

  • there are some reason if your tx failed :
  • you haven't approve your BNB
  • your gas price are to small
  • your GWEI are to small (use 15+ for early token)
  • your slippage are to small (use 30+ for early token)

advanced

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.