Get swap quote
get_quoteObtain a free indicative swap quote, including fees, to evaluate trade viability before executing a swap.
Instructions
Get a free indicative swap quote (output amount includes Tollbooth's fee). Use before build_swap to decide whether to trade.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | Chain to swap on | |
| amount | Yes | Sell amount as an integer string in the input token's base units | |
| inputToken | Yes | Token being sold: mint address (solana) or ERC-20 address (EVM chains) | |
| outputToken | Yes | Token being bought: mint address (solana) or ERC-20 address (EVM chains) | |
| slippageBps | No | Max slippage in bps (default 100) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| next | No | How to build the swap transaction | |
| chain | No | ||
| feeBps | No | Tollbooth fee in basis points | |
| inputToken | No | ||
| inputAmount | No | Sell amount in base units | |
| outputToken | No | ||
| slippageBps | No | ||
| outputAmount | No | Estimated buy amount in base units, after fees |