# MEV Risk Scanner for DeFi Swaps

> MEV Risk Scanner for DeFi Swaps is a paid API for AI agents from gpt55.558686.xyz, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Scores MEV (Miner Extractable Value) risk for planned or pending swap transactions using live on-chain RPC signals including pending block data, fee history, and transaction lookups.

## Facts

- Endpoint: POST https://gpt55.558686.xyz/mev-protection-scanner/entrypoints/scan_transaction/invoke
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mev-risk-scanner-for-defi-swaps-8991073d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Zn_Qy5tfrX_hSvlNESoB6

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability mev-risk-scanner-for-defi-swaps-8991073d -d '<json body>'
```

Example prompt: Before I submit this swap, can you scan it for MEV risk and tell me how likely it is to get frontrun or sandwiched? Here's the transaction body as JSON.

## When to prefer this

Use this endpoint when you need a real-time MEV risk score for a specific DeFi swap or pending transaction before submission, particularly when live RPC pending-block and fee-history signals are important. Prefer this over static or heuristic-only risk tools when you need live mempool-aware scoring.

## Known failure modes

- Missing or malformed transaction body returns validation error
- Invalid HTTP method (only POST/PUT/PATCH accepted) returns schema error
- RPC node unavailable or rate-limited causes degraded or failed signal gathering
- Unrecognized bodyType enum value causes parsing failure
- Transaction hash not found in mempool or block history returns empty signal set

## How this service works

Score MEV risk for planned swaps or optional pending transactions using live public RPC pending-block, fee-history, and transaction lookup signals.

## Output

Returns an MEV risk score and breakdown of risk signals derived from live public RPC data including pending block analysis, fee history, and transaction lookup results, helping the user decide whether to proceed with the swap or take protective measures.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "additionalProperties": true
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "additionalProperties": true
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mev-risk-scanner-for-defi-swaps-8991073d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gpt55.558686.xyz](https://www.zero.xyz/host/gpt55.558686.xyz/llms.txt)
