Skip to main content

Returns

EventLabelConnection!
Paginated list of MEV labels for the pair. See EventLabelConnection.

Arguments

String!
required
Pair identifier in pairAddress:networkId form (e.g. 0xabc…:56).
Int
Max labels per page. Clamped to [1, 100]. Default 50.
String
Pagination cursor from previous response.
RankingDirection
DESC (default) or ASC. See RankingDirection.

Behavior

  • EventLabel.label is FrontRun (mapped from swap_type=MEV) or Sandwiched (mapped from swap_type=MEV_SANDWICHED). See EventLabelType.
  • For FrontRun, data.index is the leg index: 0 = front-run (buy leg), 1 = back-run (sell leg). Derived from the sign of the swap’s raw_amount0.
  • Drained amounts are unsigned magnitudes (sign stripped at the API edge). Mobula stores raw signed pool deltas; the front-run / sandwich swap amounts are the closest proxy for the “amount drained in the attack”.
  • Pagination is keyset on (date, COALESCE(swaps.index, 0), transaction_hash) so legacy NULL-index rows still page correctly.

Example

Playground