mev_pool_check
Pre-trade MEV check of one pool on one chain: how many of its swaps were sandwiched, backrun, frontrun or JIT-attacked in the window, victims per hour, distinct attackers and the most active ones, sandwich, backrun, frontrun and JIT rows with a 0 gwei attacker leg, attacker profit where measured with its median, the least the sandwich victims lost, and the newest attack. pool required: a pool contract address, or the 32-byte pool id of a Uniswap v4 or PancakeSwap Infinity pool; window in minutes, default 1440, max 10080. Per pool, not per order: victim trade sizes are not stored. Chains covered: bnb, ethereum, polygon, avalanche. Price: 1 cent per call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pool | Yes | Pool: a 0x address of 40 hex characters or a 0x pool id of 64 hex characters. Example: 0x36696169c63e42cd08ce11f5deebbcebae652050 | |
| chain | No | One of bnb, ethereum, polygon, avalanche; default bnb. Example: ethereum | |
| window | No | Window in whole minutes, 1 to 10080, default 1440. Example: 4320 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pool | No | ||
| rows | No | ||
| chain | No | ||
| error | No | ||
| rules | No | ||
| byType | No | ||
| source | No | ||
| dataGaps | No | Present only when the window of the answer overlaps a recorded data gap. Figures inside each listed period are incomplete. periods are the recorded gaps (end null while still open); atCall is measured against the window of this call and is left out of meta.contentHash. | |
| generated | No | ||
| lastEventAt | No | ||
| zeroGasRows | No | ||
| lastAttackAt | No | ||
| ruleSegments | No | ||
| topAttackers | No | ||
| attackedSwaps | No | ||
| windowMinutes | No | ||
| attackedPerHour | No | ||
| sandwichVictimLossUsdMin | No |