# Orion Swap Safety API

> Orion Swap Safety API is a paid API for AI agents from orionkr.xyz, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Pre-trade safety gate that evaluates swap risk for Base tokens and memecoins before autonomous agent execution

## Facts

- Endpoint: GET https://orionkr.xyz/v1/swap-safety
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/orionkr-xyz-1c8afd4a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_U8Gxx-x3hCO52QgSToeLp

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 orionkr-xyz-1c8afd4a
```

Example prompt: Before my agent buys this Base memecoin at address 0xABC123, run an Orion swap safety check on it — I need a PASS, WAIT, or FAIL verdict so the trade loop knows whether to proceed.

## When to prefer this

Use this endpoint as a low-cost pre-trade gate before any autonomous Base token swap, DCA execution, or memecoin buy — especially in repeated trade loops where calling a more expensive full risk scan every time is unnecessary. Ideal for agentic trading workflows that need a fast PASS/WAIT/FAIL signal at $0.02 per call before committing to execution.

## Known failure modes

- Invalid or unrecognized token address returns error or inconclusive result
- Insufficient payment (below $0.02 USDC) results in 402 payment required
- Token not on Base network may return unsupported asset error
- Network congestion or latency may delay verdict
- Unknown or very new token may return limited risk signal data

## How this service works

Swap safety API for trading agents. Low-cost pre-trade gate before repeated Base token buys, memecoin entries, DCA swaps, and autonomous execution.

## Output

Returns a PASS, WAIT, or FAIL safety verdict indicating whether the swap is safe to execute, along with risk signals such as fake liquidity detection, rug risk indicators, thin liquidity warnings, and a recommendation on whether the autonomous agent should proceed with the trade.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "chain": {
       "type": "string",
       "const": "base"
      },
      "wallet": {
       "type": "string"
      },
      "address": {
       "type": "string",
       "description": "Base wallet, token, or contract address."
      },
      "amountIn": {
       "type": "string"
      },
      "tokenAddress": {
       "type": "string",
       "description": "Optional Base token contract address."
      }
     },
     "additionalProperties": true
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [],
     "properties": {
      "success": {
       "type": "boolean"
      },
      "verdict": {
       "type": "string"
      },
      "risk_score": {
       "type": "number"
      },
      "blocking_flags": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "required_next_call": {
       "type": "string"
      },
      "verdict_ttl_seconds": {
       "type": "number"
      }
     },
     "additionalProperties": true
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/orionkr-xyz-1c8afd4a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from orionkr.xyz](https://www.zero.xyz/host/orionkr.xyz/llms.txt)
