# From your user's signature to your rebate.

> Four things happen to a transaction you send through MEV Protect. Each one is described here, in the order it happens.

## The same swap, two ways

One transaction, two ways into a block.

**Public mempool**: Visible to everyone before it lands.

- **Frontrun**: Attacker takes the trade first → Your user's swap → Your user gets a worse price
- **Sandwich**: Attacker buys first → Your user's swap → Attacker sells after → Your user gets a worse price

**MEV Protect**: Private until it's in a block.

- Your user's swap → Our backrun → Rebate to your platform

**Revert protection**: Held back if it would revert.

- **If it would revert**: Your user's swap, not included. No gas is paid for it.
- **Otherwise, the block**: No gas paid for a swap that would fail

## Step by step

1. **Integrate**: Connect your platform through the MEV Protect RPC or API. Every transaction is tagged with the partner it came from. The RPC is for wallets; the API is for DEXs, CEXs and apps that send transactions from their own backend. Both give the same protection and the same rebates.
2. **Protect**: Transactions go to our private mempool, never the public one. They are protected from frontrunning and sandwich attacks. Transactions stay out of the public mempool until they are included in a block, and they are not exposed to anyone who could trade against your users.
3. **Backrun**: The transaction executes first, exactly as signed. Our searchers then capture the arbitrage it leaves behind. A backrun comes after your user's transaction, never before it. We never frontrun or sandwich a partner's transactions.
4. **Rebate**: Profit from each backrun is shared back with your platform, on the terms we agreed with you. When a backrun succeeds, your share is sent on-chain to the address you give us. A transaction that leaves nothing to backrun is still protected; it has no rebate.

## MEV, in short

### Three places a trade can go.

MEV is the extra value that can be made from the order of transactions in a block. MEV Protect blocks the first two of these and does only the third.

- A frontrun trades ahead of your user, which gives them a worse price.
- A sandwich trades on both sides of your user's transaction.
- A backrun trades only after your user's transaction has gone through, so it costs them nothing.

## Why it holds

- **Run by searchers** (Origin): We build and run the backrun strategies ourselves. The better we execute, the larger the rebate—our incentives line up with yours.
- **One integration** (Integration): Point your wallet at the RPC or send from your backend over the API. No contract changes, and nothing new for your users to learn.

## Questions

### What are MEV and a backrun?

MEV is the extra value that can be made from the order of transactions in a block. A frontrun or a sandwich takes it from your user by trading ahead of them, which gives them a worse price. A backrun trades only after your user's transaction has gone through, so it costs them nothing. MEV Protect blocks the first two and does only the third.

### What happens to a transaction that would revert?

On chains with revert protection, you can turn it on for an API key. A transaction sent with that key that would revert is then not included in a block, so your user pays no gas for it. It is off until you turn it on. The Revert protection page lists the chains that have it.

### Does a backrun change the price my user gets?

No. The transaction executes first, exactly as signed. Our trade comes after it, never before it.

### Who runs the backrun?

We do. We build and run the backrun strategies ourselves, and your users' transactions are not exposed to anyone who could trade against them.

## Protect your users' transactions.

MEV Protect is in development and there is no launch date yet. Partner applications open at launch.

- [Integrate MEV Protect](https://www.mevlabs.xyz/apply.md)
- [How rebates are paid](https://www.mevlabs.xyz/rebates.md)

---

Page: https://www.mevlabs.xyz/how-it-works · [All pages](https://www.mevlabs.xyz/llms.txt)
