anilpandey071999 / UniswapAutoBuyScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Uniswap Auto Buy Script

Overview

This is a script developed to automatically buy tokens from Uniswap V2 when liquidity is added. It utilizes Node.js and Ethereum's Web3 library (ethers.js) to interact with the Ethereum blockchain and Uniswap's smart contracts.

Prerequisites

  • Node.js
  • npm (usually comes with Node.js)
  • An Ethereum wallet with its private key
  • Infura account or other Ethereum JSON RPC provider

Installation

To use this script, you need to have Node.js installed on your machine. Once Node.js is installed, you can clone this repository and install the dependencies.

git clone https://github.com/anilpandey071999/UniswapAutoBuyScript.git
cd UniswapAutoBuyScript
npm install

Configuration

In the script, you need to set the private key of your Ethereum wallet, the provider, the addresses of the tokens you want to buy, and the number of buys per run.

To find the liquidity for the tokens, you can follow this link.

Usage

Once everything is set up, you can start the script by running:

node app.js

This will start the script, and it will check for added liquidity every minute. If liquidity is added, the script will execute the desired amount of buy transactions.

About


Languages

Language:JavaScript 100.0%