flashbots/simple-arbitrage

AlgoScore
36
Educational
★2.1k
Forks749
Issues+PR20
Push2.8 y
License—

Editorial verdict Educationalchecked 05.12.2026

What it is good at

The reference example from Flashbots itself: how a bot spots arbitrage between Uniswap-style DEX pools, estimates profit, builds a bundle and sends it to the Flashbots relay instead of the public mempool. The code is short enough to read in an evening: WETH pair discovery, profit calculation, and the BundleExecutor.sol contract that runs the swap chain atomically and pays a share of profit to the block producer via MINER_REWARD_PERCENTAGE. The README is upfront that the script is very unlikely to make money, since many people run it and the opportunities are well known. Its value lies in the clear mechanics: what a bundle is, why the relay needs a separate signing key, and how the executor contract keeps WETH from leaking inside a trade.

Weak spots

The code has been frozen since June 2021: ethers v5, bundle provider 0.3.1 and pre-Merge mining terminology. On current Node versions and modern RPC endpoints it will probably need patching; issues report NETWORK_ERROR on start with no maintainer replies for years. The repository has no license file: GitHub detects none, while package.json says ISC. That makes copying the code into a commercial product legally risky. The strategy only covers the simplest two-pool arbitrage.

Who it is for

Developers meeting Flashbots and MEV for the first time who want to see the full loop from spotting an opportunity to submitting a bundle. It is a poor base for a production bot and one of the clearest teaching examples around.

Versus alternatives

paradigmxyz/artemis offers a collector, strategy and executor architecture in Rust that handles several strategies at once, though it also froze in 2023. flashbots/ethers-provider-flashbots-bundle is the ethers.js bundle library this example is built on; for new code, start from its latest version.

Security

The script needs two private keys, the bot wallet and the BundleExecutor owner, and the contract itself holds WETH. The README warns that a leaked key lets an attacker drain the contract. Deploy from a dedicated wallet, keep the minimum in the contract, and never run "improved" forks from unknown repositories without reading the code.

  • Last commit on master — June 2021
  • Dependencies: ethers v5, @flashbots/ethers-provider-bundle 0.3.1
  • No license file (package.json says ISC)
  • TypeScript plus the BundleExecutor.sol contract

Stars by day

Our star series started 05.12.2026: the chart appears after the second snapshot.

GitHub dataGitHub ↗

TopicOn-chain & MEV
LanguageTypeScript
Created23.12.2020
Last release—
Releases / tags0 / 0
Contributors2
Commits total / 90d32 / 0
Watchers64

AlgoScore breakdownmethodology →

Popularity14.2/20
Freshness0/20
Community9/20
Maturity4/15
Momentum—
Usage—

Topic neighboursOn-chain & MEV →

#RepositoryAlgoScore★30d growthPushLabel
1 foundry-rs/foundryFoundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust. 96 11k — today
2 alloy-rs/alloyTransports, Middleware, and Networks for the Alloy project 90 1.4k — today
3 graphprotocol/graph-nodeGraph Node indexes data from blockchains such as Ethereum and serves it over GraphQL 88 3.2k — today
4 jito-foundation/jito-solanaJito Foundation MEV Solana Client 88 769 — today
5 flashbots/mev-boost-relayMEV-Boost Relay for Ethereum proposer/builder separation (PBS) 83 501 — 11 d
6 ethpandaops/ethereum-packageA Kurtosis package that deploys a private, portable, and modular Ethereum devnet 81 488 — today
7 BowTiedDevil/degenbotBuilding blocks for Uniswap (V2, V3, V4), Curve V1, Solidly V2, Balancer V2 & Aave V3 arbitrage and liquidation bots on EVM-compatible blockchains 80 580 — 4 d
8 duneanalytics/spellbookSQL views for Dune 73 1.5k — today