swap_quote
Preview cross-chain swap quotes: route, fees, and slippage. Returns Li.Fi quote JSON without execution steps. Evaluate before swapping.
Instructions
Raw Li.Fi swap quote JSON without execution steps. USE WHEN: preview route, fees, and slippage before swap_via_nattswap. NOT WHEN: you need step-by-step agent instructions (use swap_via_nattswap). RETURNS: Li.Fi quote { estimate, toolDetails, transactionRequest, ... }. Free — no x402. Side effects: none.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fromChain | Yes | Source Li.Fi chain id (e.g. 1 Ethereum, 8453 Base, 42161 Arbitrum) | |
| toChain | Yes | Destination Li.Fi chain id | |
| fromToken | Yes | Source token contract address on fromChain | |
| toToken | Yes | Destination token contract address on toChain | |
| fromAmount | Yes | Amount in token smallest units (wei for 18-decimal tokens) | |
| fromAddress | Yes | Sender wallet 0x + 40 hex chars | |
| toAddress | Yes | Recipient wallet 0x + 40 hex chars | |
| slippage | No | Max slippage percent (e.g. 0.5 for 0.5%) |