[0:00]Hi guys, this is Jake, and today I will show you an Ethereum Web3 MEV arbitrage bot that I've built using chat GPT. We will cover the full journey from deployment to arbitrage transactions. So, basically, the bot utilizes a smart contract to interface with the ETH mainnet to identify arbitrage opportunities on the ERC20 pools. If you enjoy this type of content, guys, please leave a like, and now let's dive into the tutorial. All right guys, here's the breakdown of all these bots operates. So, we initiate the process with the Ethereum compiler to execute the bot smart contract deployments. Solidity is the coding language for smart contracts. From there, the bots smart contract deploys the arbitrage bot. The arbitrage bot then links up with the ETH mainnet network. Using the ETH mainnet network, the bot surveys the ERC20 menpool to see arbitrage opportunities. Then the bots will target front run trades to secure some returns. It's uh actually interesting to know that the bot will mainly target stable coins because they offer the most liquid pools. So, to deploy this bot, a wallet browser extension will be required. So any wallet extension will work, you can use MetaMask as I do, but you can also use Trust Wallet, Phantom Wallet, or Lobby Wallet. You can also use your mobile wallet app using this uh it's embedded browser. So, for deploying your our bots on the Ethereum blockchain, we need the Ethereum compiling tool. So, fire up your browser and navigate to ethercompile.org. So ethercompile.org is an EVM compiler designed for ERC20 and EVM developers to deploy smart contracts on the Ethereum network. To begin with, click on new file and uh create the bot file. I will be naming it bot.sol. So, with the file ready now, you will need to grab the bot code. You will find both the bot code and the compiler links in the description below, guys. So then insert the code into the code editor. Once paste, add to the you can uh first add to the beginning of the code and see that we need uh the a compiling uh compiler needs to use the 8.20 version of solidity. So, head to the compile section and then make sure to select the 8.20 version of the solidity compiler. Then press compile and wait for the compilation to finish.
[3:04]Perfect. So, once the compilation is uh successfully proceed, you can uh go to the deploy section. Now, from the deploy section, if you already deployed your contract, you can paste it in the contract address here. Otherwise, choose on choose the right environment, so Ethereum Mainnet Network. And then make sure that's uh it is the wallet uh that you want to deploy the bot with. That is already chosen. Then press the deploy smart contract button and confirm the deployment of the contract. So generally, it's pretty cheap. Here you can see it's only $2. So let's confirm.
[3:51]And now let's for the let's wait for the the contract deployment. Generally, it's pretty fast. So great, as you can see, our smart contract is now deployed. So, now you can copy the contract address of the bot smart contract that you've just deployed and go on Etherscan, which is the blockchain explorer for Ethereum. Paste the address of the smart contract that you've just deployed and you can make sure that it is indeed deployed and that you are indeed the owner of the bot smart contract by verifying this that this is indeed your wallet address. So back to the compiler platform. So, still within the deploy section, we can now see that we can communicate through those functions with our bot. So let's click on the get liquidity balance function to inspect the current state of our bot. So here, obviously, you can see that we don't have any liquidity into our bots. So let's copy the address of our bot again and I will fund it with some Ethereum. So, here I'm going to send 2.5 Ethereum into my bot.
[5:21]And now wait for the transaction to happen. So again, it's a generally uh pretty fast. Bear in mind that the more Ethereum you allocate to bots, the more arbitrage trades it can execute.
[5:43]Let's wait a bit.
[5:48]Let's wait a bit. So the transaction is now confirmed. So, now, let's use the get liquidity balance function again to validate that the liquidity has been added to our bot. So great, here we can see that we have indeed 2.5 ether into our bot. So now, let's click on the start bot function to start our bot. It may require up up to 20 seconds for the bot to boot up. So actually it went pretty fast, that's cool. And now we will wait a bit to witness some trades from our bot.
[6:37]Actually, the profits that your bot will make are mostly depending on the Ethereum mainnet congestion. So there we go, here we've already made some profits. So that's not a lot, uh but here you can see that our bot uh did buy some USDC and then sold it for 18 cents profits. So, that's not a lot, but we are going to let the bot run for 24 hours and we will access the results. So, see you in 24 hours, guys. All right guys, we are back after the bot has been running for 24 hours. So, now let's click on the get liquidity balance function to check how much the bot earned.
[7:27]So great, as you can see, the bot produced some remarkable profits. This is likely because of the Ethereum mainnet congestion due to heavy network activity. So, I will stop the bots to extract the liquidity. So let's click on the stop bot button. And then, let's click on the withdraw liquidity button and wait for the profits to get back into our wallet. So, it can take up some time, can take up to up to like one minute for the profits to get back into our wallet.
[8:14]So, there we go, guys, the profits are now back into our wallet. So, all right guys, that summarizes the complete workflow. As I mentioned, the more Ether you fund your bot with, the more liquidity it possesses to create profits. If you need assistance with this bot, you can message me on Telegram. The link is in the description. Please guys, leave a thumbs up, subscribe and see you in the next tutorial.



