Token swap / bridge quote (non-custodial)
swap_quoteBest-price token swap on one EVM chain (KyberSwap aggregator) or cross-chain bridge (LI.FI, fallback Relay; set toChain). Returns expected and minimum output, price impact, gas, every fee (MoneyTools fee: 0.25% on same-chain swaps, disclosed), safety warnings, and an UNSIGNED transaction (plus exact-amount ERC-20 approval) for your own wallet to sign. Free. Never signs or holds funds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | Source chain: ethereum, base, arbitrum, optimism, polygon, bsc, avalanche (or chain id) | |
| taker | No | Your wallet address (0x...). Needed to get an unsigned transaction; omit for a price-only quote. | |
| amount | No | Amount to sell in human units, e.g. "10" (known symbols only) | |
| toChain | No | Destination chain for a cross-chain bridge. Omit for a same-chain swap. | |
| toToken | Yes | Token to buy: symbol or 0x address (on toChain if bridging) | |
| fromToken | Yes | Token to sell: symbol (USDC, USDT, ETH, WETH, DAI, ...) or 0x address | |
| recipient | No | Receiver of the output (defaults to taker) | |
| slippageBps | No | Max slippage in basis points (50 = 0.5%, hard cap 300) | |
| allowHighImpact | No | Return the transaction even if impact exceeds maxPriceImpactPct | |
| amountBaseUnits | No | Amount in token base units (integer). Required for custom token addresses. | |
| maxPriceImpactPct | No | Withhold the transaction if estimated price impact/value loss exceeds this percent |