UniHooks

How to protect your token from sandwich attacks

7 November 2026

A sandwich attack is when a bot sees a trade waiting to go through, buys just before it to push the price up, lets the trade fill at the worse price, then sells straight after. The trader gets less, and the bot keeps the difference.

Why it hurts your token

Every sandwiched buyer pays more than they should. New tokens with thin liquidity are the easiest targets, right when you want early buyers to have a good experience.

Rules that fight it

Add them to your pool

Tick the rules on the Create page when you launch. They work from the first trade and can't be switched off later. For launch-day bots, add anti-snipe rules too.

Try it on your own token. Pick the rules, sign one transaction, no code.Create a hook

More guides