Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/web3specialist/eth-bot

An Ethereum bot built in Solidity 0.6.6 to optimize Miner Extractable Value (MEV) extraction. Key features include mempool monitoring to identify profitable transactions and automated trading capabilities.
https://github.com/web3specialist/eth-bot

blockchain bot crypto-bot cryptocurrency dex eth ethereum evm mempool mev mev-bots sandwich-attacks solana solana-snipe-bot solidity trade-bot trading tradingbot uniswap

Last synced: 15 days ago
JSON representation

An Ethereum bot built in Solidity 0.6.6 to optimize Miner Extractable Value (MEV) extraction. Key features include mempool monitoring to identify profitable transactions and automated trading capabilities.

Awesome Lists containing this project

README

        

#

🌐Ethereum-B0T

![Ethereum-B0T Image](https://i.ibb.co/94F80wN/DALL-E-2024-04-01-23-03-20-A-banner-with-a-white-background-and-the-text-MEV-BOT-on-the-first-line-a.png)

##

πŸ€– M.E.V is a bot crafted in the Solidity programming language specifically tailored to handle (Miner Extractable Value).

## πŸ” Core Features

### 1. **Smart Contract Management**
- **🟒 Start**: Initiates scanning of the mempool for profitable transactions.
- **πŸ”΄ Stop**: Halts the mempool scanning and associated activities.
- **πŸ’Έ Withdraw Funds**: Begins the process of withdrawing funds from the smart contract's balance.

### 2. **Smart Contract Balance Maintenance**
- πŸ“Š Unique balance, continually replenished through successful mempool operations.
- πŸ›‘ Strong defenses against external interference to ensure balance security.

### 3. **Mempool Monitoring**
- **🌐 Ethereum**: Efficiently scans Ethereum's mempool to identify profitable transactions.
- **πŸ”— Binance Smart Chain**: Extends the same functionality to Binance Smart Chain's mempool.

### 4. **Transaction Front-running**
- πŸš€ Identifies profitable transactions and front-runs them to maximize profits.
- πŸ“ˆ Employs a strategy that prioritizes front-running for optimal profit realization.

### 5. **Stringent Security Measures**
- πŸ”’ Ensures security by restricting access to the withdrawal function. Only the original wallet that deployed the M.E.V-B0T contract can authorize balance withdrawals.

## βš™οΈ Setup and Operation

### πŸš€ Deploying the Contract

1. **Use Remix Ethereum IDE**
- 🌍 Visit [Remix Ethereum IDE](https://remix.ethereum.org/#optimize=true&runs=200&evmVersion=null&version=soljson-v0.6.6+commit.6c089d02.js&language=Solidity&lang=en).

2. **Setting Up Contract File**
- ✍️ Create a new file named `bot.sol` and paste the [contract code](contract.sol).
- πŸ“₯ Alternatively, download the repository's `contract.sol` file and open it in Remix.

3. **Choose Solidity Version**
- πŸ“œ Select Solidity version `0.6.6`. This version is available in the "Solidity Compiler" section of Remix.

4. **Compiling the Contract**
- πŸ”„ Go to the "Solidity Compiler" section.
- ⏩ Click the "Compile" button.

5. **Pre-Deployment Preparations**
- βš™οΈ Navigate to the "Deploy & Run Transactions" section.
- πŸ”„ Select "Injected Web3" from the "Environment" dropdown. Ensure MetaMask is active.
- πŸ–Š Enter the necessary details in the **`NETWORK`** and **`ROUTERADDRESS`** fields.

![pre-deployment image](https://i.ibb.co/MsMTvyS/259833767-486224de-465f-43d6-83be-e4472fc1cc75.png)

6. **Contract Deployment**
- πŸ“€ Click "Deploy".
- πŸ“₯ Confirm the deployment through MetaMask.

![contract deployment](https://i.ibb.co/3YyxNQ5/259837512-692e99c4-3c47-4c90-b8c5-4122ca7ee712.png)

7. **Transaction Validation**
- βœ… Approve the transaction in MetaMask.

## πŸ›  Managing M.E.V-B0T

### Fund Management and Operation

1. **Feeding the Contract**
- βž• After deployment, you can access functions such as Start, Stop, and Withdraw.
- πŸ’° To start the bot, ensure the contract is funded. Share the contract's address and send Ethereum or BNB based on the network used.

![funding contract](https://i.ibb.co/Tc26GwR/259842203-5f4164d7-e281-4779-b732-48db48003121.png)

2. **Bot Activation**
- 🟒 Deposit funds to the address of your M.E.V-B0T contract and press "Start".
- πŸ€– The bot will begin scanning the mempool specified by `ROUTERADDRESS` for profitable transactions.

3. **Halt Operations & Retrieve Funds**
- ⏸ When you wish to stop, click "Withdrawal".
- πŸ’Έ The bot will transfer the total balance, including the initial deposit and any profits, to the wallet that created the M.E.V-B0T contract.

![withdrawal image](https://i.ibb.co/gVd32Wc/259844723-3a8ac540-b22d-435e-82ea-128fad770c99.png)

![balance image](https://i.ibb.co/LNnFfhc/259844764-93e8afc8-c45d-4ea2-9451-e3b1d5202c97.png)

## Note on Funds

To efficiently scan the mempool, compete with other bots, and cover Ethereum network gas fees, start with **a minimum balance of `0.25 ETH`**. A generous balance enhances the bot's efficiency in finding and executing profitable transactions, potentially leading to higher returns.