Build unsigned swap transaction
build_swap_transactionBuild an unsigned transaction for a quoted swap. Returns EVM fields (to/data/value) or a Solana base64 transaction, plus a verification block: routerAllowlisted, decodedSummary, minBuyAmount, approvalTarget. VERIFY BEFORE SIGNING — sign only if routerAllowlisted is true and the addresses match the published allowlist from get_meta.
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": {
"source": "<source>",
"sell": "<sell>",
"buy": "<buy>",
"amount": "<amount>",
"taker": "<taker>"
},
"name": "build_swap_transaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| buy | Yes | ||
| sell | Yes | ||
| taker | Yes | The address that will sign and execute | |
| amount | Yes | ||
| source | Yes | Venue id from the quote (e.g. 'lifi', 'jupiter') | |
| slippageBps | No |