Overview
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.
Protocol
x402
Price
$0.01
Payment Asset
USD Coin
Payment Network
eip155:8453
Category
crypto/defi
Provider
Swap quote, best DEX route
Indexed
2026-11-07 17:08:20
Health
Status
unknown
Latency (p50)
—
Uptime (30d)
—
Reliability Score
—
Last Checked
Never
Last Healthy
Never
Consecutive Failures
0
Input Schema
{
"method": "GET",
"queryParams": {
"amount": "1000",
"fromChain": "base",
"fromToken": "USDC",
"toToken": "ETH"
},
"type": "http"
}
Output Schema
{
"example": {
"approvalAddress": "0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE",
"costs": {
"feesUsd": 2.5,
"gasUsd": 0.02,
"totalLossPercent": 0.25
},
"estimatedSeconds": 0,
"from": {
"address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "1000",
"amountUsd": 999.9,
"chainId": 8453,
"token": "USDC"
},
"note": "A quote, not an order…",
"rate": 0.000448115540014,
"route": "Fly",
"slippagePercent": 0.5,
"source": "LI.FI (li.quest)",
"steps": [
{
"fromChainId": 8453,
"toChainId": 8453,
"type": "swap",
"via": "Fly"
}
],
"to": {
"address": "0x0000000000000000000000000000000000000000",
"amount": "0.448115540014",
"amountMin": "0.445874290140619979",
"amountUsd": 1000.92,
"chainId": 8453,
"token": "ETH"
}
},
"type": "json"
}