TubeSum ← Transcribe a video

How to Build an AI Crypto Trading Bot with Gemini

0h 05m video Published Aug 4, 2026 Transcribed Aug 4, 2026 Thomas Coding Thomas Coding
Intermediate 5 min read For: Developers and crypto enthusiasts with basic knowledge of Ethereum and smart contracts, interested in automated trading.
AI Trust Score 65/100
⚠️ Average / Some Fluff

"Delivers a functional tutorial but oversells 'AI' and profitability; results are modest and dependent on market conditions."

AI Summary

This video provides a step-by-step tutorial on setting up an AI-powered arbitrage trading bot for Ethereum. The bot uses AI to detect price differences in stablecoin mempools and execute arbitrage trades. The tutorial covers deploying the bot on a cloud server, creating a smart contract, funding it with Ether, and starting the bot.

[00:01]
Bot Overview

The bot makes profitable transactions on the Ethereum network by noticing price differences on stablecoin mempools and running arbitrage trades to grab the spread.

[00:15]
Prerequisites

Recommends using MetaMask wallet, but Trust Wallet or Phantom Wallet are fine alternatives. A free guide in the description provides steps and links for the wallet part.

[00:42]
Creating Bot File

On the hosting website, create a new file with a .py extension (e.g., bot.py) and paste the bot code from the description guide into the code editor.

[01:10]
Compiling and Deploying

Switch to the compile tab and press compile and build to handle dependencies. Then open the deploy tab and click deploy on cloud environment to deploy the bot container.

[01:49]
Smart Contract Deployment

Before making transactions, the bot needs a smart contract on Ethereum. Deploy it on Ethereum mainnet using the load smart contract function. Cost is about $50.

[02:17]
Verifying Contract

Verify the smart contract deployment on Etherscan to confirm ownership and successful deployment on the Ethereum network.

[02:30]
Funding the Contract

Copy the smart contract address and fund it with at least one Ether to cover gas fees and provide liquidity. More funds allow the bot to profit more from the spread.

[03:18]
Checking Liquidity

Use the update liquidity balance function to check the total liquidity balance, confirming the deposited Ether is available.

[03:34]
Starting the Bot

Kick off the start bot function. The bot initializes and begins scanning mempools in real time for profitable trades.

[04:24]
Results After 24 Hours

After running for 24 hours, the bot may have made trades, but results can be affected by network congestion and gas fees. To withdraw liquidity, stop the bot and run the liquidity function.

The tutorial provides a complete walkthrough for setting up an AI arbitrage trading bot on Ethereum, from creating the bot file to deploying and funding it. While the bot can generate profits, results depend on network conditions and gas fees.

Mentioned in this Video

Tutorial Checklist

1 00:42 Create a new file with .py extension (e.g., bot.py) in the files explorer tab.
2 00:56 Copy the bot code from the description guide and paste it into the code editor.
3 01:10 Switch to the compile tab and press 'compile and build' to handle dependencies.
4 01:27 Open the deploy tab and click 'deploy on cloud environment' to deploy the bot container.
5 02:01 Use the 'load smart contract' function to deploy a smart contract on Ethereum mainnet.
6 02:17 Verify the smart contract deployment on Etherscan to confirm ownership.
7 02:30 Copy the smart contract address and fund it with at least one Ether.
8 03:18 Use the 'update liquidity balance' function to check the total liquidity balance.
9 03:34 Start the bot using the 'start bot' function.
10 04:39 To withdraw liquidity, stop the bot and run the liquidity function.

Study Flashcards (6)

What is the purpose of the AI arbitrage trading bot?

easy Click to reveal answer

It notices price differences on stablecoin mempools and runs arbitrage trades to grab the spread.

00:01

Which wallets are recommended for this tutorial?

easy Click to reveal answer

MetaMask is recommended, but Trust Wallet or Phantom Wallet are fine alternatives.

00:29

What is the approximate cost to deploy a smart contract on Ethereum mainnet?

medium Click to reveal answer

About $50.

02:01

How much Ether is recommended to fund the bot?

medium Click to reveal answer

At least one Ether to keep gas fees from eating profits and provide enough liquidity.

02:43

What function is used to check the total liquidity balance?

easy Click to reveal answer

The 'update liquidity balance' function.

03:18

What can affect the bot's profitability?

medium Click to reveal answer

Network congestion and gas fees, as it depends heavily on stablecoin mempools.

04:24

💡 Key Takeaways

💡

AI Arbitrage Strategy

Explains the core mechanism of the bot: detecting price differences in stablecoin mempools and executing arbitrage trades.

00:01
📊

Smart Contract Deployment Cost

Provides a concrete cost estimate ($50) for deploying a smart contract on Ethereum mainnet.

02:01
🔧

Funding Recommendation

Recommends at least one Ether to cover gas fees and provide liquidity, a practical tip for bot operation.

02:43
💡

Real-World Results

Acknowledges that profitability is affected by network congestion and gas fees, setting realistic expectations.

04:24

[00:01] are some profitable transactions the bot made on the Ethereum network. The way it works is the AI notices price differences on stable coins mempools and runs arbitrage trades to grab the spread. If this kind of stuff is your

[00:15] thing, drop a like and let's begin the tutorial. Hi guys, in this one we are going to set up an AI arbitrage trading bot that I made from scratch using AI. So, to kick things off, I really recommend the free

[00:29] guide in the description box. It lays out all the steps and links you'll need for the wallet part. MetaMask works great and that's what I'm using. Though, Trust Wallet or Phantom Wallet are fine alternatives, too. Okay, so go to the

[00:42] website down in the description. It's designed for developers to run projects on cloud hosted servers, and we'll host the bot there. First up, we need a bot file. So, in the files explorer tab, click on new file.

[00:56] Give it a py extension. [music] I'm naming mine bot. py, though any name works. From here, copy the bot code that's in the description guide and paste it over into the code editor. Now, switch to the compile tab and press

[01:10] compile and build. That handles downloading dependencies and compiling.

[01:27] just go ahead and open the deploy tab. Since we're deploying for the first time, just go ahead and click deploy on cloud environment. And your bot cloud environment. And your bot container gets deployed on the cloud.

[01:49] the right is the console. That's how we control the bot. And it just loaded up all the functions for interacting with it. So before the bot can make transactions, it needs a smart contract on Ethereum. Since it's a brand new

[02:01] setup though, we'll deploy the smart contract on Ethereum mainet. So go ahead and fire up the load smart contract function. Deploying a contract is pretty affordable nowadays. It's about 50.

[02:17] All right, let's confirm our smart contract deployed successfully [music] by verifying it over on the Etherscan link. Here it shows our smart contract is deployed on the Ethereum network and we can confirm we're the owner of the

[02:30] bots's contract. Back on the website, the next move is giving our bot smart contract enough liquidity to trade with. Start by copying the address of your smart contract and funding it with enough

[02:43] Ether. Right here, I'm funding the bot by sending some Ether into our contract. Personally, I'd recommend at least one Ether. That keeps gas fees from eating your profits and [music] gives the bot

[02:56] enough liquidity to trade. One more thing, the more you send in, the more the bot can profit from the spread between two transactions.

[03:18] the update liquidity balance function to check the total liquidity balance. There it is. The ether we deposited is now displaying in the total liquidity balance. All right, let's kick off the start bot function.

[03:34] It takes a couple seconds for the bot to start and initialize.

[04:04] trades while the AI scans the memp pools in real time. Now I'm going to let it run continuously. The AI will search for profitable trades for a full day. Then profitable trades for a full day. Then we'll check back for results. [music]

[04:24] going by itself for around 24 hours now. Sweet. You can see the bot actually probably down to congestion on the Ethereum network plus gas fees given it depends heavily on stable coins mempools. Now, to take out the

[04:39] liquidity, the bot needs to be stopped. Run the stopbot function and hold on Run the stopbot function and hold on while it finishes.

[04:57] liquidity function. That can take up to 30 seconds, so sit tight.

[05:32] [music] folks. That covers the whole walk through. If you want to run it description has you covered. [music] Please comment, subscribe, and I'll catch you guys in the next video. See you.

More from Thomas Coding

View all

⚡ Saved you 0h 05m reading this? Transcribe any YouTube video for free — no signup needed.