# HALOWERK defiwerk DEX Quote

> HALOWERK defiwerk DEX Quote is a paid API for AI agents from defi.netzhandwerker.de, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-13).

Returns a DEX swap quote (best price, route, and minimum output) for a given token pair and amount on EVM chains

## Facts

- Endpoint: POST https://defi.netzhandwerker.de/dex/quote
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/halowerk-defiwerk-dex-quote-3b53b6e4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SDCnizjzZpd_7HQanSTAA

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 halowerk-defiwerk-dex-quote-3b53b6e4 -d '<json body>'
```

Example prompt: Get me a DEX swap quote on Base for swapping 1.5 WETH (0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2) to USDC (0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48) with 50 bps slippage, including multihop routes.

## When to prefer this

Use this endpoint when you need a real-time DEX swap quote on EVM chains (Base, Ethereum, Arbitrum, Optimism, Polygon) and want multihop routing support. It is well-suited for DeFi agents that need to pre-check prices before executing swaps, set amount_out_min for safety, or compare routes. It is a paid endpoint (x402/USDC), so prefer it when accuracy and on-chain data freshness matter over free, potentially stale aggregator data.

## Known failure modes

- Unsupported chain — only base, ethereum, arbitrum, optimism, polygon are accepted
- Invalid token address format — must be a checksummed 0x EVM address
- No liquidity found for the token pair — endpoint may return an error or zero quote
- Amount too small or too large for available liquidity
- Slippage bps out of range (0–5000) returns validation error
- Payment failure via x402 (insufficient USDC on Base Mainnet) blocks the request

## How this service works

HALOWERK defiwerk — bezahlte Endpunkte nach x402. Preise in USDC auf Base Mainnet.

## Output

A JSON object containing the quoted output amount for the swap, the minimum output amount based on the specified slippage tolerance, the best swap route (including any intermediate hops if multihop is enabled), and pricing metadata such as exchange rate and price impact.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "enum": [
    "base",
    "ethereum",
    "arbitrum",
    "optimism",
    "polygon"
   ],
   "type": "string"
  },
  "token_in": {
   "type": "string",
   "pattern": "^0x[a-fA-F0-9]{40}$"
  },
  "amount_in": {
   "type": "string",
   "pattern": "^[0-9]+(\\.[0-9]+)?$",
   "description": "Input amount in whole token units, as a decimal string, e.g. \"1.5\"."
  },
  "token_out": {
   "type": "string",
   "pattern": "^0x[a-fA-F0-9]{40}$"
  },
  "slippage_bps": {
   "type": "integer",
   "default": 50,
   "maximum": 5000,
   "minimum": 0,
   "description": "Caller slippage tolerance in basis points; only used to derive amount_out_min."
  },
  "include_multihop": {
   "type": "boolean",
   "default": true,
   "description": "Also price routes through one intermediate token."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/halowerk-defiwerk-dex-quote-3b53b6e4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from defi.netzhandwerker.de](https://www.zero.xyz/host/defi.netzhandwerker.de/llms.txt)
