MEV Bot
Overview
Automated NFT Flipping Bot (Node.js)
My journey into this project began during the very origins of the Ordinals ecosystem. At that time, minting wasn’t simple, there were no wallets or UIs. The only way was through the console, and I was among those experimenting with this new paradigm directly at protocol level.
As the ecosystem matured and platforms like OKX and Magic Eden integrated Ordinals, I shifted from minting to active trading. It was in these early experiments that I identified a profitable pattern: by placing offers on sought-after collections, it was possible to acquire NFTs at discounted prices and then re-list them instantly at floor value. Even doing this manually, I was seeing ~10% returns in a matter of hours or even minutes.
At first, I would spend hours placing bids manually across different collections, waiting for one to land, and then re-listing it at the market price. But I quickly realized this process could be fully automated and scaled to multiply both efficiency and profitability. That’s when the idea of building my own bot was born.
Development Journey
The road to automation was far from straightforward. NFT marketplaces at the time didn’t expose official APIs for automated trading, so I had to design around this limitation. I built a system that leveraged scraping techniques and Puppeteer to simulate real user behavior, continuously monitoring collections, tracking floor prices, and detecting profitable entry points.
The second big challenge was execution. Once the system could “see” the market, it also needed to interact with it. For this, I integrated the Unisat Bitcoin Wallet SDK, which enabled the bot to sign and broadcast transactions programmatically. This allowed it not only to place offers but also to handle acceptances, cancellations, and re-listings turning the system into a fully automated trading pipeline.
To give the bot adaptability, I built a dynamic configuration system with more than 30 parameters. These included:
- Maximum and minimum bid limits
- Tolerance percentages and stop-loss thresholds
- Gas price impact controls
- Wallet rotation and multi-wallet support
- Targeted collection filters
- Time-based expiration settings
This configurability meant that strategies could be adjusted in real time without restarting the bot allowing it to shift between conservative, balanced, and aggressive profiles depending on market conditions.
System Functionality
At its core, the bot follows a structured trading cycle:
- Market Scanning: Continuously scrapes live data from integrated marketplaces to monitor floor prices, active offers, and gas fees.
- Signal Processing: Applies custom logic to determine whether collections meet profitability thresholds (based on spreads, liquidity, and risk parameters).
- Offer Placement: Automatically generates and signs transactions to place bids across multiple wallets simultaneously.
- Offer Management: Cancels or updates bids as conditions change, keeping capital allocated only in high-probability trades.
- Execution & Listing: Once an offer is accepted, the bot instantly re-lists the NFT at optimized market value, completing the flipping cycle.
- Resilience & Scaling: Uses parallelized execution to handle dozens of collections and wallets at once, with retry logic, error handling, and queue management to maintain uptime in volatile environments.
Results & Impact
What began as a manual flipping experiment grew into a scalable, high-frequency trading system. The bot automated hours of repetitive work, executed trades with faster precision than manual methods, and generated consistent, significant returns by exploiting short-term inefficiencies in the NFT market.
Beyond profits, this project demonstrates how combining deep ecosystem knowledge, technical creativity, and automation can create powerful tools to navigate emerging digital economies. It highlights not only the engineering challenge of building in an API-less environment, but also the strategic layer of designing a system that is both scalable and adaptable to constantly evolving market conditions.

My contribution
The team
Year
2024