defi_swap_quote
Build ready-to-sign EVM transaction calldata for DeFi swaps and cross-chain bridges. It queries LI.FI and ParaSwap for DEX and bridge routes across Base, Ethereum, Arbitrum, Polygon, and Optimism.
Instructions
Executable DeFi Swap & Cross-Chain Bridge Action Calldata Builder ($0.05 USDC). Queries LI.FI and ParaSwap aggregators to compute the best DEX/Bridge route and returns ready-to-sign EVM transaction calldata (to, data, value, gasLimit) on Base, Ethereum, Arbitrum, Polygon, and Optimism.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | Amount of from_token to swap (human-readable e.g. '10' or atomic units) | |
| wallet | No | Optional 0x sender wallet address for transaction simulation | |
| to_chain | No | Destination blockchain network (default: same as from_chain) | |
| to_token | Yes | Destination token symbol (e.g., 'ETH', 'USDC', 'AERO', 'cbBTC') or 0x address | |
| from_chain | No | Source blockchain network (default: 'base') | |
| from_token | Yes | Source token symbol (e.g., 'USDC', 'ETH', 'AERO') or 0x contract address |