GithubHelp home page GithubHelp logo

bazickoff / fronter_runner Goto Github PK

View Code? Open in Web Editor NEW

This project forked from a-e-e-collier/fronter_runner

0.0 0.0 0.0 469 KB

front running crypto bot, feel free to fork and improve or whatever

JavaScript 100.00%

fronter_runner's Introduction

fronter_runner

front running crypto bot, feel free to fork and improve or whatever. you should be able to modify it to work on various exchanges if you fork and modify please give credit This is a tutorial to help run the front-runner bot (javascript version).

Let’s get started.

Part 1. Main software installations.

Extract the front-run-bot.zip anywhere you like.

If you don’t have Node.Js installed, download and install Node.js (LTS version, recommended).

Part 2. Editing the settings.

Open the bot folder find ‘.env’ file and try to open it with a text-editor:

REACT_APP_RPC_URL and REACT_APP_RPC_URL_WSS: Here comes your providers HTTP-URL and WSS, for example: Infura. You can register on Infura for free, and get a 100.000 requests / day limit. Make sure, you don’t share these two links, because others can abuse it. Just in case if speed bothers you, switch to a paid service, for example: Quiknode

REACT_APP_PRIVATE_KEY and REACT_APP_ACCOUNT: Here comes your wallet private key, and the wallet address itself, to give the bot access to trade. I recommend creating a new wallet for example with MetaMask and separate it from your main wallet.

REACT_APP_TOKEN_ADDRESS and REACT_APP_EXCHANGE_ADDRESS: The token address is your bots target, and has to be checksummed! To checksum an address, you can use this DEMO site by clicking HERE. (or if you are familiar with JavaScript check this Medium article to do it manually).

Change the exchange address, it will need to be updated. (ie. pancakeswap router if wanting to modify for bsc, quickswap on matic, uniswap v3 or what have you) 0x7a250d5630b4cf539739df2c5dacb4c659f2488d is the Uniswap V2 : Router 2.

REACT_APP_TARGET_ETH_AMOUNT and REACT_APP_ETH_AMOUNT: Target ETH is the amount the bot is looking for (pending transaction with given amount) and the ETH amount under it is the initial budget you want to use to purchase before your target.

Part 3. Guide to usage.

WARNING! Before you run the bot, make sure to approve the tokens ! Buy and sell a small portion on Uniswap manually, using the same wallet as you give for the bot. OTHERWISE it's gonna buy in but fail to sell everytime:

After approving the token you wish to front-run on, let’s run the script. To execute the process, go to START and type in: node.js command prompt and open it.

Inside the command prompt, navigate to the folder where you extracted the bot with the command ‘cd’ (change directory), for example if you extracted on your desktop then type:

cd C:\Users<user_name>\Desktop\bot-folder

MAKE SURE your settings are correct in the ‘.env’ file, then type in the following line to start the bot:

node index.js

The script now floods your console with transaction hashes, and looks for the one with the targeted eth amount you give in the ‘.env’ file. If the bot spots the right transaction you’ll see this pattern below:

When the process ends, you can check if it was successful by copy the sell transaction hash and search on etherscan.

Happy hunting! :)

fronter_runner's People

Contributors

a-e-e-collier 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.