Build a buy (unsigned)
build_buyUnsigned transaction buying a token with SUI, for sender's wallet to sign: base64 bytes, summary (paid, expected and minimum tokens, fees) and a dry run on chain. Does not sign or send anything.
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": {
"sender": "<sender>",
"token": "<token>",
"amount": "<amount>"
},
"name": "build_buy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | The token's POPULAR id (0x…, from search_tokens) or its coin type (0x…::module::NAME). | |
| amount | Yes | SUI to spend, e.g. "1.5". | |
| sender | Yes | A Sui address, 0x and 64 hex digits. | |
| slippageBps | No | Slippage tolerance in basis points (500 = 5%). | |
| maxImpactBps | No | Pool routes: most price impact accepted (default 1500). |