Welcome to the Frontrunning Bot repository! 👋 We hope you find this bot useful in your trading endeavors. If you appreciate the work we've put into this project, please consider leaving a ⭐️ star on the repository. We promise we won't front-run your decision to leave a star! 😜
Front running bots are bots that have the ability to anticipate a big transaction that is going to change the token price, sometimes going up to 100%. By executing trades before the transaction is made public, the bot can take advantage of the price increase and generate profits.
To run the front running bot, follow these steps:
If you don't already have Node.js installed, you can download it from the official website: https://nodejs.org/.
Once you have Node.js installed, navigate to the project directory and run the following command to install the necessary dependencies:
npm install
The bot can be configured by editing the bot.js file. There are two variables that need to be edited:
var wss = "wss://your-fastlynode-url"
: This variable should be replaced with the WebSocket node URL that you want to use. You can obtain this URL from FastlyNode.
const secretKey = "your secret key"
: This variable should be replaced with your secret key, which can be obtained from a web3 wallet like MetaMask. Be sure to keep your secret key safe and secure.
To run the bot, execute the following command:
npm start