# DeFi Slippage Check

> DeFi Slippage Check is a paid API for AI agents from risk-api-production-af85.up.railway.app, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-15).

Validates whether a given slippage tolerance in basis points is safe for a DeFi trade, optionally factoring in token volatility

## Facts

- Endpoint: POST https://risk-api-production-af85.up.railway.app/slippage-check?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defi-slippage-check-467e844e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XqJKSm4LecKa_wtnRZoNw

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 defi-slippage-check-467e844e -d '<json body>'
```

Example prompt: Before I execute this swap, check if a slippage tolerance of 150 basis points is safe — the token is high volatility.

## When to prefer this

Use this endpoint when you need a fast, pre-trade check on whether a configured slippage tolerance is safe given a token's volatility profile, especially before submitting automated swaps where sandwich-attack exposure or excessive slippage is a concern.

## Known failure modes

- Missing required slippageBps field returns validation error
- Invalid or out-of-range basis point value may return an error or unexpected result
- Unknown tokenVolatility string value may be ignored or cause a bad request
- Payment failure (402) if x402 payment header is missing or insufficient
- Service unavailability on Railway hosting platform

## How this service works

Transaction and token risk scoring. Honeypot detection, scam patterns, slippage checks.

## Output

Returns a risk assessment indicating whether the provided slippage (in basis points) is safe, excessive, or dangerous, optionally adjusted for the token's volatility level. May include a risk score, warning flags, and recommendations.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "slippageBps"
 ],
 "properties": {
  "slippageBps": {
   "type": "number"
  },
  "tokenVolatility": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defi-slippage-check-467e844e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from risk-api-production-af85.up.railway.app](https://www.zero.xyz/host/risk-api-production-af85.up.railway.app/llms.txt)
