# Orion Transaction Risk API

> Orion Transaction Risk API is a paid API for AI agents from orionkr.xyz, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Analyzes Base chain transaction calldata before signing to detect unsafe execution context, price impact, liquidity risk, honeypot warnings, and execution danger.

## Facts

- Endpoint: GET https://orionkr.xyz/v1/base/transaction-risk
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/orionkr-xyz-cbe2e447
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1ITVizyCbPo9mT6rR5Jsb

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-cbe2e447
```

Example prompt: Before I sign this Base chain transaction, run it through the Orion transaction risk check and tell me the risk score, risk level, and any flags — I want to make sure there are no honeypot warnings, unsafe calldata, or price impact issues.

## When to prefer this

Use this endpoint when an autonomous agent needs a pre-signing transaction-level risk gate specifically on Base chain — particularly for memecoin swaps, DeFi interactions, or any calldata where honeypot risk, price impact, or liquidity danger is a concern. Prefer this over token-level risk checks when the specific transaction context (not just the token) needs to be evaluated.

## Known failure modes

- Invalid or malformed calldata returns a 400 error
- Payment not attached or insufficient USDC results in 402 Payment Required
- Unsupported chain or contract address returns an error flag
- Network timeout on Base RPC results in 503
- Empty flags array with LOW risk may indicate insufficient on-chain data for analysis

## How this service works

Ultra-low-cost transaction risk API for autonomous Base agents. Use before signing to detect unsafe calldata context, price impact, liquidity risk, honeypot warnings, and execution danger.

## Output

Returns a JSON object with a numeric riskScore (e.g. 12), a riskLevel enum (LOW/MEDIUM/HIGH), a verified boolean, and a flags array listing specific detected risks such as honeypot warnings, fake liquidity, unsafe calldata context, or execution danger.

## 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-cbe2e447/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)
