The Base Arbitrage Bot is an automated trading bot designed to execute arbitrage strategies on decentralized exchanges (DEXs). It leverages blockchain technology to detect price discrepancies between different tokens in different DEXs, allowing users to profit by buying low on one exchange and selling high on another.
• Automated Arbitrage Execution: The bot identifies arbitrage opportunities between different pairs of tokens across DEXs automatically.
• Blockchain Integration: Built on top of blockchain smart contracts, ensuring transparency and security.
• Fast Execution: Optimized for speed to minimize missed opportunities.
• Configurable Settings: User-configurable parameters such as minimum price discrepency tolerance.
To run the Base Arbitrage Bot, ensure you have the following installed:
- Node.js (v14 or later) or Docker
- NPM (for node.js only)
- A Web3 wallet (e.g., MetaMask) or access to a Web3 wallet.
- Sufficient cryptocurrency balance ETH to cover gas fees and WETH to perform transactions.
Tutorial Videos: Part1 - https://youtu.be/j1HwQIAzFdQ?si=NYYKXPZcLuoqHhHF Part2 - https://youtu.be/ZQL5wvImFKI?si=6HwF7DJlQqPg0gWx Part3 - https://youtu.be/WRLYNIROD9w?si=wG3qbBQN19rt89lv
Follow the steps below to clone and install the bot on your local machine:
-
Clone the repository:
git clone https://github.com/Fluronix/base-arbitrage-bot.git cd base-arbitrage-bot
-
Edit the ./src/.env file with your preference and wallet private key or seedphrase. Note the websocket rpc url "ws://base.node.fluronix.app:8546/" might not be active in the future.
-
Build to a docker image
docker build -t base-arbitrage-bot .
-
Run bot
docker run --env-file ./src/.env base-arbitrage-bot
-
Stop bot
docker stop base-arbitrage-bot
Enjoy!
-
Install dependencies:
npm install npm install typescript -g
-
Change the "outDir": "./src" from "src" to "dist" in the tsconfig.json file
-
compile code
tsc
-
Navigate to ./dist directory and edit the .env file with your preference and wallet private key or seedphrase. Note the websocket rpc url "ws://base.node.fluronix.app:8546/" might not be active in the future.
-
On the root of the /dist directory project
node main.js
Enjoy!