This is an optional feature. MEV Protect is off by default. You opt in per
request by adding the
mev-protect=true query parameter to your endpoint URL.What is MEV Protect?
Sandwich attacks are a toxic form of MEV where a bot front-runs and back-runs your trade, moving the price against you and pocketing the difference. The front-run and back-run don’t have to sit in the same block — with wide sandwiching, they can span multiple blocks over a longer window. What the attack really depends on is access to your order flow through a source that doesn’t protect against sandwiching. Once a bot can see your pending trade, it can land its sandwich in any validator’s block. In practice, the party supplying that order flow is often a validator, and those validators frequently include the sandwiches in their own blocks to boost their rewards. That makes their blocks a disproportionate source of sandwiching. MEV Protect reduces that risk at the routing layer. When you opt in, Helius avoids submitting your transaction to the validators statistically associated with sandwich activity, so it’s far less likely to be sandwiched.Opt-In Per Request
Off by default. Add
mev-protect=true to the endpoint URL — no changes to
your transaction or signing logic.Works Everywhere
Supported on basic
sendTransaction, basic sendBundle, Sender Max, and
Sender SWQOS-only.Data-Driven Routing
Excludes validators that include sandwiches in their own blocks or in
adjacent ones — only when the pattern is statistically significant.
Minimal Landing Impact
Only a small fraction of total stake is excluded, so the effect on landing
rate and latency is limited.
How it works
Helius proactively monitors known sandwich bots and analyzes where their sandwiches land. A validator is flagged when either pattern holds consistently:- In its own blocks — the validator includes the sandwich transactions directly.
- In adjacent blocks — sandwiches repeatedly land in the blocks immediately before or after the validator’s.
Protected routing
Helius submits your transaction while avoiding leaders flagged for sandwich
association, using the current statistically significant exclusion set.
Supported sending methods
MEV Protect is a query parameter, so it layers onto every sending method without changing your request body.| Method | Endpoint | Enable with |
|---|---|---|
Basic sendTransaction | https://mainnet.helius-rpc.com | ?api-key=YOUR_API_KEY&mev-protect=true |
Basic sendBundle | https://mainnet.helius-rpc.com | ?api-key=YOUR_API_KEY&mev-protect=true |
| Sender Max (transactions and bundles) | https://sender.helius-rpc.com/fast | ?mev-protect=true |
| Sender SWQOS-only | https://sender.helius-rpc.com/fast | ?swqos_only=true&mev-protect=true |
How to enable
Appendmev-protect=true to the endpoint URL you already use. Combine it with any other query parameters (api-key, swqos_only, rebate-address) using &.
- Basic sendTransaction
- Basic sendBundle
- Sender Max
- Sender SWQOS-only
Tradeoffs
Excluding validators means your transaction has slightly fewer leaders to land with. In practice the impact is small: only a limited amount of stake (roughly 3–4 million SOL) is excluded at any time, a small fraction of total network stake. For most flows the reduction in landing rate and the added latency are negligible.MEV Protect vs. Transaction Rebates
These are complementary features that address different parts of MEV:- MEV Protect is defensive routing — it lowers the chance a sandwich attacker can extract value from your trade in the first place.
- Transaction Rebates are offensive — they pay you a share of the beneficial, post-trade backrun MEV your transaction creates.
Related
Helius Sender
Ultra-low latency, multi-path transaction submission with tip-based pricing.
Transaction Rebates
Earn a share of the MEV your transactions create, paid in SOL.
Send Transactions (Basic)
Build, optimize, and confirm a
sendTransaction with a robust retry loop.Send Bundles (Basic)
Atomic, all-or-nothing execution of up to 5 transactions via
sendBundle.