get_swap_quote
Fetches a swap quote, including fees, for a bonding curve trade so you can preview Buy or Sell costs before submitting a transaction.
Instructions
Get a swap quote including fees for a bonding curve trade
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"bondingCurveBucket": "<bondingCurveBucket>",
"amountIn": "<amountIn>",
"direction": "<direction>"
},
"name": "get_swap_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amountIn | Yes | The input amount as a string (in lamports/base units) | |
| direction | Yes | Swap direction: 'Buy' (SOL to tokens) or 'Sell' (tokens to SOL) | |
| bondingCurveBucket | Yes | The public key of the bonding curve bucket |