Build unsigned swap transaction
build_swap_txFree. Returns an UNSIGNED base64 transaction for the taker wallet to sign. Advan never signs and never holds keys. Default (selfBroadcast false) keeps JupiterZ routes, which need Jupiter POST /swap/v2/execute to add the market-maker co-signature. Pass selfBroadcast true to exclude jupiterz so the taker can broadcast the signed transaction.
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": {
"inputMint": "<inputMint>",
"outputMint": "<outputMint>",
"amount": "<amount>",
"taker": "<taker>"
},
"name": "build_swap_tx"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taker | Yes | ||
| amount | Yes | ||
| receiver | No | ||
| inputMint | Yes | ||
| outputMint | Yes | ||
| slippageBps | No | ||
| selfBroadcast | No |