# Agent Kiosk DeFi Swap & Cross-Chain Bridge Calldata Builder

> Agent Kiosk DeFi Swap & Cross-Chain Bridge Calldata Builder is a paid API for AI agents from agent-kiosk.vercel.app, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-18).

Computes the optimal DEX/bridge route via LI.FI and ParaSwap and returns ready-to-sign EVM transaction calldata (to, data, value, gasLimit) for token swaps and cross-chain bridges across Base, Ethereum, Arbitrum, Polygon, and Optimism.

## Facts

- Endpoint: POST https://agent-kiosk.vercel.app/v1/defi-swap-quote?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-kiosk-defi-swap-cross-chain-bridge-calldata-builder-5de479f8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Bn1cNeM3qCIVgcjBO5sGs

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 agent-kiosk-defi-swap-cross-chain-bridge-calldata-builder-5de479f8 -d '<json body>'
```

Example prompt: Get me the best swap route and ready-to-sign transaction calldata to swap 10 USDC for ETH on Base using my wallet 0xAbc123...

## When to prefer this

Choose this endpoint when an AI agent or automated workflow needs executable, ready-to-sign EVM transaction calldata for token swaps or cross-chain bridges — not just price quotes. It is ideal when you need multi-aggregator best-routing (LI.FI + ParaSwap) across Base, Ethereum, Arbitrum, Polygon, and Optimism without building your own aggregator integration. Prefer it over raw DEX APIs when you need a single endpoint that handles both same-chain swaps and cross-chain bridges.

## Known failure modes

- Unsupported token pair or low liquidity — no route found, returns error
- Invalid chain enum value — returns validation error
- Amount too small for bridge minimum — route unavailable
- Wallet address malformed — validation error
- Aggregator API (LI.FI/ParaSwap) temporarily unavailable — upstream timeout
- Insufficient gas estimation data — gasLimit may be absent

## How this service works

Executable DeFi Swap & Cross-Chain Bridge Action Calldata Builder (LI.FI + ParaSwap): computes best DEX/Bridge route and returns ready-to-sign EVM transaction calldata (to, data, value, gasLimit) on Base, Ethereum, Arbitrum, Polygon, and Optimism.

## Output

Returns a JSON object containing the aggregator used (e.g. 'lifi'), the action type (DEX_SWAP_CALLDATA or bridge variant), source and destination chain IDs, and a transaction_request object with the contract address (to), encoded calldata (data), ETH value (value), and gas limit — everything needed to sign and broadcast the transaction on-chain.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "amount": {
   "type": "string",
   "description": "Amount to swap (human-readable e.g. '10' or atomic units)"
  },
  "wallet": {
   "type": "string",
   "description": "Optional 0x sender wallet address"
  },
  "to_chain": {
   "enum": [
    "base",
    "ethereum",
    "arbitrum",
    "polygon",
    "optimism"
   ],
   "type": "string"
  },
  "to_token": {
   "type": "string",
   "description": "Destination token symbol (ETH, USDC, AERO, cbBTC) or 0x address"
  },
  "from_chain": {
   "enum": [
    "base",
    "ethereum",
    "arbitrum",
    "polygon",
    "optimism"
   ],
   "type": "string"
  },
  "from_token": {
   "type": "string",
   "description": "Source token symbol (USDC, ETH, AERO) or 0x address"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "aggregator": "lifi",
  "action_type": "DEX_SWAP_CALLDATA",
  "to_chain_id": 8453,
  "from_chain_id": 8453,
  "transaction_request": {
   "to": "0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE",
   "data": "0x...",
   "value": "0x0"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-kiosk-defi-swap-cross-chain-bridge-calldata-builder-5de479f8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-kiosk.vercel.app](https://www.zero.xyz/host/agent-kiosk.vercel.app/llms.txt)
