Build a sell (unsigned)
build_sellUnsigned transaction selling a token for SUI, for sender's wallet to sign: base64 bytes, summary and a dry run. Give amount (tokens) or percent of the balance.
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>"
},
"name": "build_sell"
}
}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 | No | Tokens to sell, whole units. | |
| sender | Yes | A Sui address, 0x and 64 hex digits. | |
| percent | No | ||
| slippageBps | No | Slippage tolerance in basis points (500 = 5%). | |
| maxImpactBps | No |