Quote a trade
quote_tradeWhat a buy or sell would do now, without building it: route (POPULAR curve, SuiPump curve or DEX aggregator), amount paid, expected and minimum received, fees, price and price impact.
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": {
"side": "<side>",
"token": "<token>"
},
"name": "quote_trade"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | ||
| token | Yes | The token's POPULAR id (0x…, from search_tokens) or its coin type (0x…::module::NAME). | |
| amount | No | Buy: SUI to spend. Sell: tokens to sell. Whole units as a decimal, e.g. "1.5". | |
| sender | No | Optional: the wallet's fee tier and, for percent, its balance. | |
| percent | No | Sell only: a share of `sender`'s balance instead of amount. | |
| slippageBps | No | Slippage tolerance in basis points (500 = 5%). |