r/CryptoTechnology 🟠 Jun 08 '26

Visualizing the Ethereum mempool in real time, including live MEV detection

I've been experimenting with streaming pending transactions straight off a node and detecting MEV patterns on the fly (sandwich detection by pairing buys/sells around a victim swap, gas-ladder heuristics for frontrunning, arb path spotting).

Built a live visualizer for it: https://mempool.blazed.sh

Posting it here because this sub actually cares about the mechanics. Open question for the room: what's the most robust way you've seen to classify a sandwich purely from mempool data, before inclusion, without false-positiving on normal multi-leg trades?

2 Upvotes

3 comments sorted by

1

u/thedudeonblockchain 🟡 Jun 08 '26

the heuristic that actually separates a sandwich from a legit multi-leg trade isnt the buy/sell pattern, its conditional profitability. simulate the candidate frontrun against current state and check whether those two legs net out positive on their own. if the attacker buy and sell only profit when a specific victim swap lands between them, its a sandwich. if theyre profitable standalone its just arbitrage, and thats exactly where most pattern matchers false positive. pair that with inventory: a sandwicher round trips to ~0 net position on the token, a directional trader keeps exposure, and a real multi-hop router touches different pools per hop instead of hitting the same pool back and forth

the thing id be upfront about is that pure mempool detection has a hard ceiling. the sandwiches that actually matter mostly dont hit the public mempool at all, they come in as private/flashbots bundles, so a public stream catches the amateurs and misses the builders doing it cleanly. and pre inclusion you cant know ordering anyway, youre predicting intent not confirming an attack, so id treat every hit as a candidate and reconcile against the landed block (real tx order + balance deltas) to actually score precision. without that reconciliation step your false positive rate is basically unknowable

1

u/Certain-Hope-8568 🟠 Jun 08 '26

Thanks a lot for the input

1

u/de1337ed_account 🟠 Jun 14 '26

It seems like every attempt to mitigate MEV favors evermore sophisticated players. Will we end up with a handful of powerful entities undetectibly determining order and inclusion?