Git Product home page Git Product logo

pancakeswap-bot's Introduction

pancakeswap-bot

๐Ÿฅž Trading bot Pancakeswap

Instalation and running

To install run:

npm install

And to start script/bot run:

node start.js

Usage

In config.txt file edit:

  • WBNB - Token address
  • factory and router - Pancakeswap factory and router
  • recipient - Wallet address for recieving earnings
{
"data": { 
    "WBNB": "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c",
    "factory": "0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73",
    "router": "0x10ED43C718714eb63d5aA57B78B54704E256024E",
    "recipient": "0xB45fB0624924f470f9011EE62347231CD1E46" 
  }
}

Wallet mnemonic

const mnemonic = ''

You need to put there node web socket provider (Ankr for example)

const provider = new ethers.providers.WebSocketProvider('wss://apis.ankr.com/wss/')

Here you need to put how much you want to buy BNB, there is 0,001 BNB for example

const amountIn = ethers.utils.parseUnits('0.001', 'ether')

Important is to adjust gasPrice and gasLimit for amount you want to buy, gasPrice and gasLimit have WEI value

{
    gasPrice: '10000',
    gasLimit: '2000000'
},

pancakeswap-bot's People

Contributors

ivekivek avatar

Watchers

 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.