# ChainRay MEV Shield

> ChainRay MEV Shield is a paid API for AI agents from chainray.online, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-14).

Protects blockchain transactions from MEV attacks (front-running and sandwich attacks) by routing them through ChainRay's shielding service for chains like Base.

## Facts

- Endpoint: GET https://chainray.online/mev-shield
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chainray-online-302b5ce0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_M-9y4r65M_AK_cJ-aaYDr

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-online-302b5ce0
```

Example prompt: Can you shield my transaction from MEV front-running and sandwich attacks on the Base chain using ChainRay's MEV protection service?

## When to prefer this

Choose this endpoint when an AI agent needs to submit or route a DeFi transaction on Base or other supported chains and wants to protect it from MEV bots (front-runners, sandwich attackers). Ideal for swaps, large trades, or any transaction where value extraction by miners/validators is a concern. Prefer this over unprotected RPC calls when transaction privacy and ordering protection matter.

## Known failure modes

- Unsupported chain specified — only certain chains like Base are supported
- Missing or invalid 'chain' query parameter returns an error or default behavior
- Payment failure (insufficient USDC balance) results in 402 response
- Service unavailable for the requested chain at the time of the call
- Network timeout if the shielding service is under high load

## 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 shielded routing response indicating that the transaction has been processed through ChainRay's MEV protection layer for the specified chain (e.g., Base), reducing exposure to front-running and sandwich attacks.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "chain": "base"
  }
 }
}
```

## 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"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "chain": {
       "type": "string",
       "description": "Blockchain network (e.g., base, ethereum, polygon)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chainray-online-302b5ce0/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)
