Learn · Execution
What is MEV and how does sandwiching work?
Written by XAUConnect Labs · Reviewed against live product behavior · Updated August 2026
MEV — maximal extractable value — is the profit that can be captured by controlling the order of transactions in a block. On public blockchains your pending swap is visible before it confirms, and specialized actors compete to reorder, insert, or front-run transactions for gain. The most common form ordinary traders meet is the sandwich attack. This article explains where MEV comes from, how a sandwich works step by step, and the concrete habits that reduce your exposure.
Where MEV comes from
How a sandwich attack works
Why slippage settings matter here
How to reduce your exposure
MEV is not unique to one chain
Legal
Risk disclosure
XAUConnect is a non-custodial swap aggregator. Digital assets are volatile and may lose value rapidly. Content on this page is educational and not investment advice. Verify every contract address on the official block explorer before approving a transaction.
Frequently asked questions
What is MEV in simple terms?
The profit available from controlling the order of transactions in a block. It ranges from harmless arbitrage to predatory tactics like sandwich attacks aimed at your trade.
How does a sandwich attack work?
An attacker buys just before your trade to push the price up, lets your trade fill at the worse price, then sells right after — capturing the difference your slippage allowed.
How do I protect myself from sandwiching?
Keep slippage tight, split large trades, use MEV-protected or private submission where available, and re-quote before signing.
Does MEV exist on every chain?
It is most associated with public-mempool EVM chains. Different networks and submission methods change how exposed your trade is, but ordering value exists broadly.
Trade on XAUConnect
Open the swap page to compare live routes, set slippage, and sign from your own wallet — fully non-custodial.
Continue exploring
Related markets, guides & networks
Curated next steps based on this topic — deepen your research before you trade.
How to create a token on BNB Chain
Create a token on BNB Chain with XAUConnect: TokenFactory ERC-20, BNB launch fee, USDT or BNB liquidity, lock LP, share
How to swap tokens on XAUConnect
Step-by-step guide to swapping tokens on XAUConnect: connect a wallet, read the quote, approve the token, confirm, and v
Wrapped and bridged tokens explained
Why WETH, wrapped BTC, and bridged USDC exist, how they differ from the native asset, and the decimals and contract chec
What is a multi-hop swap?
When no direct pool exists, trades route through an intermediate token. How multi-hop swaps work, why each hop adds cost
How XAUConnect Discover ranks tokens
Indexer plus GeckoTerminal plus DexScreener: how the Discover board is built, why trending is not a buy rating, and how
Build programmatically
Swap via API for bots and AI agents — quotes, builds, and cross-chain routes.