# ChainRay Sandwich Scanner

> ChainRay Sandwich Scanner is a paid API for AI agents from chainray.online, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-08).

Scans a wallet or contract address for MEV sandwich attack exposure and related on-chain activity across supported blockchains

## Facts

- Endpoint: GET https://chainray.online/sandwich-scanner/%7Baddress%7D
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-08
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chainray-sandwich-scanner-28b49802
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iF-zFnSQlCyi0F_8iEgLZ

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 chainray-sandwich-scanner-28b49802
```

Example prompt: Can you scan 0xAbC123...def456 on Ethereum for sandwich attacks and tell me how many times it's been hit and how much value was extracted?

## When to prefer this

Use this endpoint when you need to determine whether a specific wallet or smart contract has been targeted by MEV sandwich bots, quantify the financial damage, or investigate suspicious transaction patterns around a known address. Prefer this over generic transaction history endpoints when the specific concern is sandwich/MEV exploitation.

## Known failure modes

- Invalid or malformed address returns 400 error
- Unsupported chain identifier returns error or empty results
- Address with no transaction history returns empty sandwich attack list
- Payment failure via x402 returns 402 Payment Required
- Network congestion or chain RPC unavailability causes timeout or 503

## How this service works

The most complete blockchain data and intelligence service for AI agents. 93 endpoints across 46 chains, from gas fees to DeFi analytics, with real-time streams, intent routing, and verifiable proofs. Pay-per-request via x402.

## Output

Returns a list of detected sandwich attack incidents associated with the given address on the specified chain, including attacker addresses, affected transaction hashes, timestamps, and the estimated value extracted from each attack.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "chain": "ethereum",
   "address": "0x1234567890123456789012345678901234567890"
  }
 }
}
```

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "chain": {
       "type": "string",
       "description": "Blockchain network"
      },
      "address": {
       "type": "string",
       "description": "Wallet or contract address"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chainray-sandwich-scanner-28b49802/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from chainray.online](https://www.zero.xyz/host/chainray.online/llms.txt)
