ToolAssay

Execute instant same-chain token swaps through LI.FI's DEX aggregation

Execute instant same-chain token swaps through LI.FI's DEX aggregation. Supports Base, Ethereum, Polygon, BSC, Arbitrum, Avalanche, and Solana, with best-route execution across major DEXes and liquidity sources.

Not tested: has real-world effectsour last check, 2026-10-10
0 of 0checks answered this week
n/amedian answer time
$0.01listed price per call
n/aprice it asked us

Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.

Endpoint

POST https://x402.ottoai.services/swap

CategoryCode and developer
Provider hostx402.ottoai.services
Networkseip155:8453
Payment schemesexact
Self-reported calls, 30 days3 from 2 payers (the provider's figure, not ours)

Our checks, last 30 days

We never call tools that send, buy, move money or file anything, not even without paying.

Example input (from the provider)

{
  "body": {
    "amount": 10,
    "chainId": 8453,
    "fromSymbol": "USDC",
    "toSymbol": "WETH"
  },
  "bodyType": "json",
  "method": "POST",
  "type": "http"
}

Promised output schema (from the provider)

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "body": {
          "properties": {
            "amount": {
              "description": "Amount of the FROM token to sell (human-readable, e.g. 10.5). Decimals are derived server-side \u2014 do NOT send fromDecimals/toDecimals.",
              "type": "number"
            },
            "chainId": {
              "description": "Chain ID: 1 (ETH), 56 (BSC), 137 (Polygon), 8453 (Base, default), 42161 (Arbitrum), 43114 (Avalanche), 1151111081099710 (Solana)",
              "type": "number"
            },
            "deliverToButler": {
              "description": "If true, forward swapped tokens to user's main wallet after swap (default: false, keeps in Safe)",
              "type": "boolean"
            },
            "fromSymbol": {
              "description": "FROM token: a known symbol (e.g. USDC, WETH) OR a 0x contract address, resolved on the given chain. Ambiguous symbols are rejected (HTTP 400) with candidate addresses \u2014 send the address to disambiguate.",
              "type": "string"
            },
            "fromTokenAddress": {
              "description": "FROM token contract address (alternative to fromSymbol; RECOMMENDED to avoid symbol ambiguity). If both are sent and they resolve to different tokens, the request is rejected.",
              "type": "string"
            },
            "maxSlippagePercent": {
              "description": "Optional override for slippage tolerance (default 5%)",
              "type": "number"
            },
            "toSymbol": {
              "description": "TO token: a known symbol (e.g. WETH, USDC \u2014 use WETH, not native ETH) OR a 0x contract address, resolved on the given chain. Ambiguous symbols are rejected with candidates.",
              "type": "string"
            },
            "toTokenAddress": {
              "description": "TO token contract address (alternative to toSymbol; RECOMMENDED).",
              "type": "string"
            },
            "tokenSource": {
              "description": "Where to source input tokens: butler_wallet (pull all), otto_safe (Safe only), auto (default)",
              "enum": [
                "butler_wallet",
                "otto_safe",
                "auto"
              ],
              "type": "string"
            }
          },
          "required": [
            "fromSymbol",
            "toSymbol",
            "amount"
          ],
          "type": "object"
        },
        "bodyType": {
          "enum": [
            "json",
            "form-data",
            "text"
          ],
          "type": "string"
        },
        "method": {
          "enum": [
            "POST"
          ],
          "type": "string"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method",
        "bodyType",
        "body"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "properties": {
            "amountIn": {
              "description": "In the token's smallest unit",
              "type": "string"
            },
            "amountOut": {
              "description": "Present once final. In the token's smallest unit",
              "type": "string"
            },
            "entryPrice": {
              "description": "Present once final",
              "type": "number"
            },
            "finality": {
              "type": "string"
            },
            "safeAddress": {
              "type": "string"
            },
            "status": {
              "type": "string"
            },
            "txHash": {
              "type": "string"
            },
            "userOpHash": {
              "type": "string"
            }
          },
          "required": [
            "status"
          ],
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}

This page as JSON