bags_get_trade_quote
Get a swap quote between SOL and any Bags ecosystem token. Provide amount and buy/sell side to view the price before executing the trade.
Instructions
Get a swap quote to trade SOL and any Bags ecosystem token. Free read-only tier. SOL mint: So11111111111111111111111111111111111111112. Default BOS token mint: EkJuyYyD3to61CHVPJn6wHb7xANxvqApnVJ4o2SdBAGS.
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": {
"amount": "<amount>",
"side": "<side>"
},
"name": "bags_get_trade_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | Is this a buy or sell action? | |
| amount | Yes | Amount of input token to swap in human-readable units (e.g., 0.1 for 0.1 SOL). | |
| inputMint | No | Input token mint address. Defaults to SOL: So11111111111111111111111111111111111111112 | |
| outputMint | No | Output token mint address. Defaults to BOS: EkJuyYyD3to61CHVPJn6wHb7xANxvqApnVJ4o2SdBAGS |