andrew.moh Profile picture
Aug 13, 2024 25 tweets 9 min read Read on X
The average MEV bot makes $300k - $1m per month.

Leveraging ChatGPT will save you 1000 hours setting up it.

And guess what? It is completely FREE.

Detailed instructions on how to create your own MEV 🧵⬇️ Image
▸ What are MEV bots?

MEV: Miner Extractable Value

MEV bots are automated programs that exploit arbitrage opportunities, front-running, and order strategies to extract the most value from DeFi. Image
▸ How many kinds of MEV bots?

MEV bots can be divided into some categories based on their purposes, such as:

• Arbitrage
• Front-Running
• Back-Running
• Sandwich attacks
• On-chain sniping
• Flash loans
• Liquidation
How do they work?

MEV bots scan pending blockchain transactions to identify profit opportunities and place trades to capitalize on them.

These bots execute trades faster than others by using strategies like front-running or back-running.

Here's a simplified breakdown: ⬇️ Image
▸ Current stats

Take Moonshot as an example.

According to data from Dune, the ratio of finalized tokens on Moonshot is just 0.29%, even lower than the successful launch ratio on (1.41%).

The point is: Finding 100x gems is tough without the right tools.Pump.fun
▸ Solutions

Given the vast number of tokens on Moonshot and the fact that our brains are better suited for single-tasking, MEV bots can be incredibly helpful.

What to expect from a bot:

✜ Easy to build and operate
✜ Fast and accurate
✜ Easy to integrate with Moonshot
Please note that: This guide isn't as simple as it seems.

If you're not from an IT background, be prepared to spend hours mastering each step.

Please read the guide carefully, prepare yourself a pure soul and let's go.
◈ Step 1: Building the bot

I'm using ChatGPT to guide me from zero.

Start the prompt with:

'Create a trading bot to snipe the token from a provided source.'

ChatGPT even suggested additional features that the bot should have.
◈ Step 2: Set Up a Development Environment

+ Programming Language: Rust or Python

Python with is popular for Ethereum

+ Node Access: Access to an Ethereum/Solana node.

You can use Infura/Alchemy, or run your own node. Web3.py
Image
In case you don't have any coding fundamentals, here is some useful knowledge:

+ Python basic:
+ Setting up an environment using Anaconda:

Anaconda supports you from the test environment and mainnet integration.python.org/about/gettings…
anaconda.com
◈ Step 3: Strategy Development

Decide whether you want to focus on arbitrage, liquidation, sandwich attacks, front-running, or another MEV opportunity.

Each needs different approaches and tweaks.

Use historical blockchain data to assess past performance and risks. Image
◈ Step 4: Simulate Your MEV Bot

+ Fork mainnet with

Hardhat:
or Ganache:

+ Run simulations to check profitability, gas usage, and transaction success.

+ Optimize code for gas, logic, and strategy.hardhat.org
archive.trufflesuite.com/ganache/
Solana development is a bit different from other blockchains because of its highly composable onchain programs.

This means you can build on top of any program already deployed, and often you can do so without needing to do any custom on-chain program development. Image
◈ Step 5: Deploy to Mainnet

+ Final tests: Run tests in a testnet or forked mainnet to ensure everything works.

+ Deploy: Launch your MEV bot.

+ Monitor: Watch bot performance for issues like failed transactions, gas usage, or profitability changes.
In case you build a MEV bot on Solana, below are additional steps:

◈ Step 6: Integrate the bot into Moonshot

Next, I want the bot to work on Moonshot data.

Back to ChatGPT, here's the prompt suggested:

'Integrate this into Moonshot, website: ' dexscreener.com/moonshot
+ For further API details from DEX Screener, visit:

Note that to get the precise token data, you have to direct the correct API of Moonshot.

+ Integration sheet: docs.dexscreener.com/api/reference
docs.google.com/spreadsheets/d…
Image
◈ Step 7: Set conditions

Once we've integrated it into Moonshot, the next step is setting up sniping conditions.

At this stage, it's crucial to know what you're aiming for.

Setting up a condition matrix:

+ Token age
+ Initial liquidity
+ Volume
+ Average volume per txn
◈ Step 8: Check the root by Solscan

When the token list is out, now I'm adding the function of checking the token holders using Solscan.

Things to cover:

+ Top holder address
+ Amount
+ Portfolio
◈ Step 9: Check the X account by @getmoni_io

Then I want to check the social accounts of the deployers.

I'm using Moni's score to rank the X account.
◈ Step 10: Add the buy and sell function

This is a vital function that affects my investment.

I need the bot to:

+ Buy/sell with a specific amount
+ Precise price
+ Let users input criteria to trigger the events.
And that's on how to create a sniping bot that works on Moonshot.

ChatGPT is a powerful tool which can help to build from zero.

If you need any further instruction, ask the GPT to explain more specifically.
I hope you enjoy my thread on how to set up your own MEV bot.

Be sure DYOR. Remember, this thread is just for reference only.

For more insights and valuable threads, join my Telegram channel: t.me/AM_insights
Special mention to some Big Brainors:

❯ @the_smart_ape
❯ @Hercules_Defi
❯ @Haylesdefi
❯ @0xTindorr
❯ @KingWilliamDefi

❯ @belizardd
❯ @splinter0n
❯ @DeRonin_
❯ @0x99Gohan
❯ @alphabatcher
More Big Brain:

❯ @cyrilXBT
❯ @eli5_defi
❯ @CryptMoose_
❯ @Beacon_Early
❯ @izu_crypt

❯ @TheDeFiPlug
❯ @CryptoGideon_
❯ @arndxt_xo
❯ @zeuuss_01
❯ @cryppinfluence
I put lots of effort into making this thread. If you find it useful, consider:

❯ Follow me @0xAndrewmoh for more valuable content

❯ Like and comment with your thoughts on it.

❯ Repost then others could benefit from it too

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with andrew.moh

andrew.moh Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @andrewmoh

Dec 27, 2024
Why are DeFi and gaming always the top picks?

▸ The answer: they attract money flows.

How @axelar front-runs this scheme. 🧵⬇️ Image
In the last episode about @axelar, I explained how Axelar became a mighty inter-chain infrastructure.

The fact is that Axelar's MDS is too good to be true.

Feel free to capture Axelar's position below. ⬇️
In today's post, let's explore a niche that receives much support from Axelar: DeFi and Gaming.

Imho, these 2 niches are why most users come to this market.
Read 15 tweets
Oct 28, 2024
Solana is the homeland of 'degen plays.'

Base is set to be the new playground.

+ $LUNA is the $GOAT of Base.
+ AI Agents memes are the new meta.

Why memes on #Base will outperform the market in Q4/2024: 🧵⬇️ Image
$GOAT recently boomed in the meme coin space, hitting nearly $900m MC in only 2 weeks.

Meme 'supercycle' is about to come.

I have made a thread on meme 'supercycle' ytd. Pls take a look before jumping on today's discussion. ⬇️
When it comes to 'degen play', we might think about Solana meme season.

Many millionaires were created there.

It might be currently saturated when hundreds of new memes are created daily.

You might want to find another new place.
Read 18 tweets
Oct 27, 2024
#Meme is crafting overnight millionaires.

+ $GOAT approach $1b after launching 2 weeks.

While tech coins are overvalued.

The upcoming meme 'supercycle' is wilder than ever 🧵⬇️ Image
In 2024, Memecoins surged as a market trend after Inscriptions' rise in late 2023.

Early projects like WIF, PEPE, and SHIBA drew retailers with promises of quick profits, reflecting a shift in crypto user psychology.

The Memecoin market introduced a 'Presale' trend with projects like BOME and SLERF, raising funds before official listings.

Despite the initial success of BOME, most Presale participants didn't profit.
After a few months, Memecoin surged back, led by $NEIRO and animal Memecoin trend.

It has become mainstream, connecting culture and building sustainable online communities.
Read 23 tweets
Oct 6, 2024
Tokens graduated from #Binance Launchpool all dipped over 80%.

But let's look beyond the numbers.

Zoom out for a broader view.

▸ Discover their real performance. 🧵⬇️ Image
1/ Binance Launchpool landscape

▸ Origin

First introduced in Sep 2020, Binance Launchpool is a platform for token fundraising and distribution.

How does it work?

Users lock $BNB or Stablecoins = rewards from new listing projects.

By Jul 2024, 55 projects have joined. Image
▸ 2024's overview

From the beginning of 2024, there are 18 projects incubated by Binance Launchpool.

Full lists:

+ AI-related: @SleeplessAI_Lab, @ionet

+ Gaming: @XAI_GAMES, @pixels_online, @Portalcoin

+ Infra (network): @MantaNetwork, @alt_layer, @Sagaxyz__, @OmniFDN
Read 27 tweets
Aug 5, 2024
The market is so ruthless.

Time to equip yourself necessary skills.

▸Undervalued tools below are your secret weapon.

Mastering them means having a 99% winning chance next bull. 🧵⬇️ Image
I previously made a thread on Crypto Tools Pack.

If you need it here, feel free to save it for your later reference.
1. @dyorcryptoapp

Built by Big Chad @hmalviya9, DYOR develops data models for the crypto industry, offering insights from on-chain data, fundamentals, social signals, and tokenomics.

This helps investors make informed decisions in the complex world of web3.
Read 26 tweets
Jul 25, 2024
▸ Tired of sifting through chaotic media for insights?

▸ Fed up with wasting money on amateur reports?

Ditch the noise and step into a world of magic.

A miracle solution. 🧵⬇️ Image
1/ Brief Introduction

@getmoni_io is a comprehensive crypto platform that simplifies digital asset management and optimizes the investing process.

It addresses the fragmented nature of crypto information by offering consolidated tools and suitable insights for anyone. Image
2/ Major products

▸ Moni Discover

An all-encompassing tool designed to aid users in exploring gems and following trends.

Iconic features include:

• Real-time dashboard with insights into almost all aspects
• Smart tracker and alerts
• Customized metrics and charts
Read 16 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(