# minia2a x402-swap-safety

> minia2a x402-swap-safety is a paid API for AI agents from minia2a.uk, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-15).

Checks the safety of a token or asset swap operation before execution

## Facts

- Endpoint: GET https://minia2a.uk/x402/swap-safety
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/minia2a-x402-swap-safety-fb16eb8d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YwUG0NtwQpxN4Xtzct1Ai

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 minia2a-x402-swap-safety-fb16eb8d
```

Example prompt: Before I execute this ETH-to-USDC swap, can you run a safety check on it — use the x402-swap-safety endpoint to tell me if the swap looks risky or safe to proceed?

## When to prefer this

Use this endpoint when you need a quick, low-cost ($0.05 USDC) pre-flight safety check on a token swap before execution. Prefer it over manual review when automating DeFi workflows or operating a trading bot that needs programmatic swap risk signals.

## Known failure modes

- Missing required 'input' field returns validation error
- Invalid or unsupported swap type may return an error or empty result
- Network timeout if the underlying safety check service is slow
- Malformed query parameters may cause unexpected results or errors
- Payment failure (HTTP 402) if USDC payment is not properly attached

## How this service works

minia2a service: x402-swap-safety

## Output

Returns a safety assessment for a given swap operation, indicating whether the swap is considered safe or risky based on the provided parameters such as swap type, method, and query params.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "method": {
     "type": "string"
    },
    "bodyType": {
     "type": "string"
    },
    "queryParams": {
     "type": "object"
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/minia2a-x402-swap-safety-fb16eb8d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from minia2a.uk](https://www.zero.xyz/host/minia2a.uk/llms.txt)
