get_swap_quote
Generate executable token swap quotes with transaction data for DeFi trades. Input chain ID, token addresses, and amounts to receive precise swap details.
Instructions
Get executable quote with transaction data for a token swap
Input Schema
Name | Required | Description | Default |
---|---|---|---|
buyToken | Yes | Contract address of token to buy | |
chainId | Yes | Blockchain ID (e.g., 1 for Ethereum) | |
sellAmount | Yes | Amount of sellToken in base units | |
sellToken | Yes | Contract address of token to sell | |
slippageBps | No | Maximum acceptable slippage in basis points (optional, default: 100) | |
taker | No | Address executing the trade (optional, uses USER_ADDRESS from env) |