Search looks through the written questions first. The AI only answers when nothing matches.

What is an in-block sandwich, from the user's side?

Experienced · Updated

An in-block sandwich is an effect on the price you receive in a swap. Someone places a transaction before yours that pushes the pool price against you, your swap executes at that worse price, and a transaction after yours restores the price and keeps the difference. All of this fits inside one block. You do not lose the wallet: you receive the tokens you asked for, but at a worse rate than the pool showed just before you arrived.

The slippage limit you set is the most the price can move against you before the swap fails. A sandwich has to fit inside that limit; if the move exceeds it, your transaction reverts and the surrounding trades do not complete their capture. For you, the symptom is a bad execution price, not an error message from the protocol. For a liquidity provider, the pool moved and came back inside the block. How to assemble that pattern is not described here, only what the user sees: a worse price, bounded by the slippage they accepted.

Informational text from Criptos.ai. It is not a buy or sell recommendation, and it is not tax advice. This is general information, not financial, tax or legal advice. We do not promise gains.

Articles

In the Academy: Advanced · In the Academy · In the glossary

Related questions