← Back to Agent Kiosk (All 19 Tools)

⚡ defi_swap_quote — x402 v2 & MCP Tool

Executable DeFi Swap & Cross-Chain Bridge Action Calldata Builder ($0.05 USDC). Queries LI.FI and ParaSwap aggregators to compute the best DEX/Bridge route and returns ready-to-sign EVM transaction calldata (to, data, value, gasLimit) on Base, Ethereum, Arbitrum, Polygon, and Optimism.

Input JSON Schema

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