# AgenticFi Swap Slippage Check

> AgenticFi Swap Slippage Check is a paid API for AI agents from defi-api.agenticfi.wtf, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Checks whether a proposed token swap would exceed acceptable slippage thresholds before executing the trade on a given chain

## Facts

- Endpoint: GET https://defi-api.agenticfi.wtf/api/swap/slippage-check
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agenticfi-swap-slippage-check-86ae0a6d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0p4uqUCudtYcFce7sYgzP

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 agenticfi-swap-slippage-check-86ae0a6d
```

Example prompt: Before I swap 1000 USDC for WETH on Base, can you check whether the slippage is acceptable? The source token is 0x833589fCD6EDB6E08f4c7C32D4f71b54bdA02913 and destination is 0x4200000000000000000000000000000000000006.

## When to prefer this

Use this endpoint before executing a token swap to validate that slippage is within acceptable bounds. Ideal when an agent needs to gate-check a swap for safety prior to submitting it on-chain. Prefer this over general token price endpoints when the specific concern is price impact and slippage risk for a given trade size.

## Known failure modes

- Missing required parameters (fromToken, toToken, amount) returns a 400 or validation error
- Invalid or unsupported token addresses return an error
- Unsupported chain name may fall back to default or return an error
- Insufficient on-chain liquidity data for exotic token pairs may result in incomplete assessment
- Payment not provided or insufficient USDC results in 402 Payment Required

## How this service works

DeFi APIs for AI agents. 36 pay-per-call endpoints for token data, pricing, wallet analytics, swap routing, and on-chain workflows. Powered by x402 on Base.

## Output

Returns a slippage assessment for the proposed token swap — indicating whether the trade would experience unacceptable price impact or slippage given current on-chain liquidity conditions for the specified token pair and amount.

## 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": [
      "fromToken",
      "toToken",
      "amount"
     ],
     "properties": {
      "chain": {
       "type": "string",
       "title": "chain (optional)",
       "description": "Optional. Chain name Examples: base, ethereum, arbitrum"
      },
      "amount": {
       "type": "string",
       "title": "amount (required)",
       "description": "Required. Amount to swap"
      },
      "toToken": {
       "type": "string",
       "title": "toToken (required)",
       "description": "Required. Destination token address Examples: 0x833589fCD6EDB6E08f4c7C32D4f71b54bdA02913"
      },
      "fromToken": {
       "type": "string",
       "title": "fromToken (required)",
       "description": "Required. Source token address Examples: 0x4200000000000000000000000000000000000006"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agenticfi-swap-slippage-check-86ae0a6d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from defi-api.agenticfi.wtf](https://www.zero.xyz/host/defi-api.agenticfi.wtf/llms.txt)
