Documentation Index
Fetch the complete documentation index at: https://docs.mobula.io/llms.txt
Use this file to discover all available pages before exploring further.
Subscriptions use the WebSocket endpoint wss://api.mobula.io/graphql/subscriptions with the graphql-transport-ws protocol.
Returns
One label per next message — each MEV / MEV_SANDWICHED swap produces a separate event. See EventLabel.Show View fields (EventLabel)
Per-event unique id (transactionHash:logIndex:networkId).
FrontRun (attacker’s front- or back-leg) or Sandwiched (the victim caught between). See EventLabelType.Show EventLabelType values
The attacker’s leg of a sandwich (front-leg or back-leg). Source flag: MEV.
The victim trade caught between the attacker’s two legs. Source flag: MEV_SANDWICHED.
Drained-amount breakdown. Currently null — see Notes. See EventLabelData.Show EventLabelData variants
Attacker-leg payload. Fields:
index,
token0DrainedAmount,
token1DrainedAmount. See
FrontRunLabelData.
Index of the log within the block.
Unix timestamp (seconds).
Index of the transaction within the block.
Transaction hash. The two FrontRun legs of a sandwich share the same hash; the Sandwiched leg has a different hash.
Arguments
Pair ID in the form address:networkId. Omit to subscribe to the firehose (every label across every pair).
Example — single pair
subscription {
onEventLabelCreated(id: "0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640:1") {
id
label
networkId
timestamp
logIndex
transactionIndex
transactionHash
data {
__typename
... on FrontRunLabelData {
index
token0DrainedAmount
token1DrainedAmount
}
... on SandwichedLabelData {
token0DrainedAmount
token1DrainedAmount
}
}
}
}
Example — firehose
subscription {
onEventLabelCreated {
id
label
networkId
timestamp
transactionHash
}
}