Skip to main content

TypeScript shape

interface FrontRunLabelData {
  index: number | null;
  token0DrainedAmount: string;
  token1DrainedAmount: string;
}
__typename
String!
Always "FrontRunLabelData".
index
Int
Leg index. 0 = front-run (buy leg, token0 entered the pool). 1 = back-run (sell leg). Derived from the sign of the swap’s raw_amount0.
token0DrainedAmount
String!
Unsigned magnitude of the swap’s token0 movement. Sign stripped at the API edge.
token1DrainedAmount
String!
Unsigned magnitude of the swap’s token1 movement.