# OracleInsight Swap Intent Safety Check

> OracleInsight Swap Intent Safety Check is a paid API for AI agents from www.oracleinsight.xyz, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-29).

Runs a two-gate pre-trade safety check on a same-chain swap intent and returns a signed ALLOW/CAUTION/BLOCK verdict with EIP-712 attestations

## Facts

- Endpoint: GET https://www.oracleinsight.xyz/api/v1/safety/swap-intent?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/oracleinsight-swap-intent-safety-check-4acb3a0e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cvrVFwOZMqjxcizZSogQ_

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 oracleinsight-swap-intent-safety-check-4acb3a0e
```

Example prompt: Before I execute this swap, run an OracleInsight pre-trade safety check on selling 5 ETH for USDC on chain ID 1 with a declared notional of $12000 — I need the signed ALLOW/CAUTION/BLOCK verdict before we proceed.

## When to prefer this

Choose this endpoint when an AI agent or automated trading system needs a cryptographically verifiable, signed pre-trade safety gate before executing a same-chain swap — especially when oracle manipulation risk is a concern and downstream systems require EIP-712 attested proof of the safety decision. Prefer this over generic price-check APIs when you need an auditable ALLOW/CAUTION/BLOCK verdict that can be verified on-chain.

## Known failure modes

- Missing required query parameters (sourceAsset, destinationAsset, subjectChainId, settlementChainId, declaredNotionalUsd) returns 400
- settlementChainId not equal to subjectChainId returns validation error in v1
- Payment not received or x402 settlement failure blocks the response
- Invalid or unsupported chainId returns an error
- Declared notional of zero or negative value may be rejected

## How this service works

Verified Swap Intent: two signed schema-v3 Pre-Trade gates for one same-chain swap, plus one Execution Receipt credit after x402 settlement. A BLOCK is a complete, charged decision.

## Output

Returns two signed schema-v3 Pre-Trade gate attestations (EIP-712) and one Execution Receipt credit, together constituting a complete ALLOW/CAUTION/BLOCK decision block for the queried same-chain swap intent. The verdict indicates whether the swap should proceed, requires caution, or should be blocked based on oracle integrity and risk signals.

## 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",
     "required": [
      "sourceAsset",
      "destinationAsset",
      "subjectChainId",
      "settlementChainId",
      "declaredNotionalUsd"
     ],
     "properties": {
      "venue": {
       "type": "string",
       "description": "Optional caller-claimed venue, never a verified venue fact"
      },
      "router": {
       "type": "string",
       "description": "Optional caller-claimed EVM router"
      },
      "sourceAsset": {
       "type": "string",
       "description": "Asset being sold, e.g. ETH"
      },
      "subjectChainId": {
       "type": "number",
       "description": "Same chain on which the swap is evaluated"
      },
      "destinationAsset": {
       "type": "string",
       "description": "Asset being bought, e.g. USDC"
      },
      "settlementChainId": {
       "type": "number",
       "description": "Must equal subjectChainId in v1"
      },
      "declaredNotionalUsd": {
       "type": "number",
       "description": "Declared swap notional in USD"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/oracleinsight-swap-intent-safety-check-4acb3a0e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.oracleinsight.xyz](https://www.zero.xyz/host/www.oracleinsight.xyz/llms.txt)
