Build UNSIGNED swap transaction
build_swap_txBuild base64 UNSIGNED Sui transaction bytes for a swap on the chosen venue, with the sender set to your address and an on-chain minimum-out from slippage_bps. The bytes are simulated against mainnet before return. You sign locally and submit yourself; nothing is executed by the desk. Non-custodial: the desk never sees or holds keys and never moves funds; it returns quotes and UNSIGNED transactions only. Spot only, no leverage. Education only, not financial advice.
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": {
"from": "<from>",
"to": "<to>",
"amount": "<amount>",
"sender": "<sender>",
"venue": "<venue>"
},
"name": "build_swap_tx"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| from | Yes | Coin symbol: SUI, USDC, WAL, DEEP, CETUS | |
| route | No | DeepBook only: route string from get_swap_quote, e.g. 'SUI_USDC -> WAL_USDC' | |
| venue | Yes | Venue from get_swap_quote (best.venue) | |
| amount | Yes | Amount of the from coin in human units, e.g. 2.5 | |
| sender | Yes | YOUR Sui address (0x...). Public address only; never send a key. | |
| simulate | No | Simulate the unsigned bytes against mainnet (no signature, nothing executed) | |
| slippage_bps | No | Max slippage in basis points (50 = 0.5%); tx reverts below min_out |