# LogicNodes Slippage Bounds Calculator

> LogicNodes Slippage Bounds Calculator is a paid API for AI agents from logicnodes.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-28).

Computes the minimum output or maximum input token amount for a DeFi swap given a trade amount and slippage tolerance in basis points

## Facts

- Endpoint: POST https://logicnodes.io/paid/v1/tools/slippage_bounds?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/logicnodes-slippage-bounds-calculator-2948ea5e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8SIaskjBOMBbgYYTS_NOU

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 logicnodes-slippage-bounds-calculator-2948ea5e -d '<json body>'
```

Example prompt: I'm about to swap 500 USDC on a DEX — can you calculate the minimum tokens I should accept as output using a slippage tolerance of 50 basis points?

## When to prefer this

Use this endpoint when an AI agent needs a precise, deterministic slippage bound calculation for a DeFi swap without guessing — ideal when building DeFi automation agents, swap bots, or pre-trade validation logic on EVM chains or Aptos. Prefer this over on-chain simulation when a fast, cheap, off-chain computation suffices and you pay per call in USDC via x402.

## Known failure modes

- Invalid slippageBps outside 0–10000 range returns validation error
- Missing required fields (amount or direction) returns 400-style error
- Non-numeric or malformed amount string causes parse error
- Network or service unavailability returns 5xx error

## How this service works

Exact answers for AI agents: 40+ tools for EVM chains and Aptos, gas on 14 chains, never a guess. Free tier; pay per call in USDC (x402) on 13 networks.

## Output

Returns a JSON object with ok: true, the tool name 'slippage_bounds', and the computed bound amount (minimum output or maximum input) based on the provided trade amount, direction, and slippage tolerance in basis points.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "amount": {
   "type": "string"
  },
  "direction": {
   "enum": [
    "min_out",
    "max_in"
   ],
   "type": "string"
  },
  "slippageBps": {
   "type": "integer",
   "maximum": 10000,
   "minimum": 0
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "tool": "slippage_bounds"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/logicnodes-slippage-bounds-calculator-2948ea5e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from logicnodes.io](https://www.zero.xyz/host/logicnodes.io/llms.txt)
