Learn · Execution
What is MEV and how does sandwiching work?
Written by XAUConnect Labs · Reviewed against live product behavior · Updated August 2026
What is MEV and how does sandwiching work?. 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 the best way to trade what is MEV and how does sandwiching work?
What is MEV and how does sandwiching work?. MEV — maximal extractable value — is the profit that can be captured by controlling the order of transactions in a block.
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
Wrapped tokens repackage a native asset one-to-one; bridged tokens carry an asset across chains and inherit bridge risk.
What is a multi-hop swap?
Multi-hop swaps route through intermediate tokens to get a better price or to trade pairs with no direct pool. What a ho
How XAUConnect Discover ranks tokens
How XAUConnect Discover ranks tokens: indexer vs Gecko vs DexScreener, chain filters, and why trending is not a buy rati
Build programmatically
Swap via API for bots and AI agents — quotes, builds, and cross-chain routes.