Execution Benchmarks

Detected Sandwich Attacks

Public API: Returns detected sandwich-attack (MEV) events.

Each row is a sandwiched transaction from Dune's curated dex.sandwiched table: the victim's tx_hash, wallet, trade size, and the DEX/token pair, plus trailing-7-day attack counts and total value sandwiched per chain.

Since the 2026-10-05 query the feed holds the LARGEST victims per chain over the window (up to 125 per chain) rather than the most recent, and the 7-day totals count victims of at least victim_floor_usd ($1,000). The unfloored figures are returned beside them as *_raw. The floor exists because one Base flow of sub-$1,000 rows took the raw Base count from 208k to 1.58M in the week to 2026-10-05 and crowded every other chain out of a recency feed. Useful for MEV-protection scoring and victim alerting.

get/api/v1/mev/sandwiches

Request

  • Base URL: https://cleartracedata.com (the document declares no server; this is the origin it was published from)
  • URL: https://cleartracedata.com/api/v1/mev/sandwiches
  • Auth: none declared

Query parameters

chainstring

Filter by blockchain (ethereum, base, arbitrum, optimism).

projectstring

Filter by DEX project name (e.g., 'uniswap').

min_victim_volume_usdnumber

Only return events where the victim trade was at least this size (USD).

limitinteger

Maximum number of events to return.

offsetinteger

Pagination offset.

Response

Sandwich-attack (MEV) events with victim wallet, trade size, and 7-day chain totals.

total_attacks_7dinteger required

Cross-chain total sandwich attacks over the trailing 7 days, counting victims of at least victim_floor_usd. Read it with top_pair_share_of_attacks_pct: the FLOOR does not make this a market-wide figure, and a single pair has supplied a majority of it.

total_sandwiched_usd_7dnumber required

Cross-chain total USD sandwiched over the trailing 7 days, over victims of at least victim_floor_usd.

victim_floor_usdnumber nullable

The victim-size floor applied to the 7-day totals (USD). Null means the data predates the floor (query v2) and the totals are unfloored.

total_attacks_7d_rawinteger nullable

Cross-chain 7-day attack count with NO floor, for comparison with total_attacks_7d. Since 2026-09-29 one Base flow of sub-$1,000 rows dominates this figure -- and per top_pair_share_of_attacks_pct the same pair dominates the FLOORED count too, which the floor was not able to fix.

total_sandwiched_usd_7d_rawnumber nullable

Cross-chain 7-day sandwiched USD with NO floor.

top_pair_7dstring nullable

The token pair contributing the most attacks to the floored count. Null on data written before query v4.

top_pair_blockchainstring nullable

The chain top_pair_7d trades on. The pair name alone is ambiguous; the concentration is one pool on one chain.

top_pair_attacks_7dinteger nullable

How many of total_attacks_7d came from that one pair.

top_pair_sandwiched_usd_7dnumber nullable

How much of total_sandwiched_usd_7d came from that one pair.

top_pair_share_of_attacks_pctnumber nullable

top_pair_attacks_7d as a percentage of total_attacks_7d: 51.9% when measured on 2026-10-08. Above ~50 the count describes one pair's flow more than the market's. Dune's sandwich detector is curated, not ours, and its false-positive rate is not bounded here.

totalinteger required

Total number of matching events.

limitinteger required

The maximum number of events returned.

offsetinteger required

The offset used for pagination.

Example response

{
  "sandwiches": [
    {
      "tx_hash": "0xEE24D08530006E146B9AFC88F015F768447D727685F060C5A801484E7B585982",
      "block_time": "2026-06-17 01:18:47.000 UTC",
      "chain": "ethereum",
      "project": "uniswap",
      "token_pair": "ETH-USDC",
      "victim_wallet": "0xE3A633C47D3970755CEC6839141594937131EFFE",
      "victim_volume_usd": 195.15,
      "chain_attacks_7d": 11964,
      "chain_sandwiched_usd_7d": 51652384.44
    }
  ],
  "top_pair_7d": "USDC-XDP",
  "top_pair_blockchain": "base",
  "top_pair_attacks_7d": 3120,
  "top_pair_sandwiched_usd_7d": 4896132.33,
  "top_pair_share_of_attacks_pct": 51.9
}

Changes

No recorded changes to this operation across all 1 revision of this API.