ToolAssay

Swap quote, best DEX route

Swap quote, best DEX route. Best price to swap one token for another on 30+ chains (Base, Ethereum, Arbitrum, Solana, BSC…) across DEX aggregators, via LI.FI: amount out, minimum after slippage, USD values, gas and fees, total cost in percent, route and approval address; with fromAddress, the unsigned transaction for your wallet to sign. Tokens by symbol or address, amounts in token units. A quote only: nothing is signed or sent. Use before a trading agent swaps.

Not tested: has real-world effectsour last check, 2026-11-28
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

GET https://agent-data-tools.revmesh2074.workers.dev/swap/quote

CategoryMarket data
Provider hostagent-data-tools.revmesh2074.workers.dev
Networkseip155:137, eip155:42161, eip155:8453, solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp
Payment schemesexact
Self-reported calls, 30 days2 from 1 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)

{
  "method": "GET",
  "queryParams": {
    "amount": "1000",
    "fromChain": "base",
    "fromToken": "USDC",
    "toToken": "ETH"
  },
  "type": "http"
}

Promised output schema (from the provider)

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "method": {
          "enum": [
            "GET"
          ],
          "type": "string"
        },
        "queryParams": {
          "properties": {
            "amount": {
              "description": "Amount of fromToken in token units, e.g. 100 or 0.5",
              "examples": [
                "1000"
              ],
              "type": "string"
            },
            "fromAddress": {
              "description": "Optional wallet that would send: adds the unsigned transaction to the answer",
              "examples": [
                "0x000000000000000000000000000000000000dEaD"
              ],
              "pattern": "^0x[0-9a-fA-F]{40}$",
              "type": "string"
            },
            "fromChain": {
              "description": "Chain name or id: base, ethereum, arbitrum, solana\u2026",
              "examples": [
                "base"
              ],
              "type": "string"
            },
            "fromToken": {
              "description": "Token to sell: symbol (USDC, ETH) or address",
              "examples": [
                "USDC"
              ],
              "type": "string"
            },
            "slippage": {
              "description": "Slippage tolerance in percent (default 0.5)",
              "examples": [
                0.5
              ],
              "type": "number"
            },
            "toAddress": {
              "description": "Optional receiving wallet, e.g. a Solana address when bridging to Solana",
              "examples": [
                "0x000000000000000000000000000000000000dEaD"
              ],
              "pattern": "^0x[0-9a-fA-F]{40}$",
              "type": "string"
            },
            "toToken": {
              "description": "Token to buy: symbol or address",
              "examples": [
                "ETH"
              ],
              "type": "string"
            }
          },
          "required": [
            "fromChain",
            "fromToken",
            "amount",
            "toToken"
          ],
          "type": "object"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "properties": {
            "approvalAddress": {
              "type": "string"
            },
            "costs": {
              "properties": {
                "feesUsd": {
                  "type": "number"
                },
                "gasUsd": {
                  "type": "number"
                },
                "totalLossPercent": {
                  "type": "number"
                }
              },
              "type": "object"
            },
            "estimatedSeconds": {
              "type": "number"
            },
            "from": {
              "properties": {
                "address": {
                  "type": "string"
                },
                "amount": {
                  "type": "string"
                },
                "amountUsd": {
                  "type": "number"
                },
                "chainId": {
                  "type": "number"
                },
                "token": {
                  "type": "string"
                }
              },
              "type": "object"
            },
            "note": {
              "type": "string"
            },
            "rate": {
              "type": "number"
            },
            "route": {
              "type": "string"
            },
            "slippagePercent": {
              "type": "number"
            },
            "source": {
              "type": "string"
            },
            "steps": {
              "items": {
                "properties": {
                  "fromChainId": {
                    "type": "number"
                  },
                  "toChainId": {
                    "type": "number"
                  },
                  "type": {
                    "type": "string"
                  },
                  "via": {
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "type": "array"
            },
            "to": {
              "properties": {
                "address": {
                  "type": "string"
                },
                "amount": {
                  "type": "string"
                },
                "amountMin": {
                  "type": "string"
                },
                "amountUsd": {
                  "type": "number"
                },
                "chainId": {
                  "type": "number"
                },
                "token": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}

This page as JSON