Build an unsigned swap transaction
build_swap_txConvert a swap quote ID into unsigned transaction data for the user's wallet to sign and submit. Build promptly after quoting, as quotes expire.
Instructions
Turn a quoteId from get_quote into transaction data for the swap. Returns an UNSIGNED transaction: this server never holds keys, never signs and never broadcasts. The calling agent (or the user's wallet) signs and submits it. Quotes expire, so build shortly after quoting.
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": {
"quoteId": "<quoteId>",
"userAddress": "<userAddress>"
},
"name": "build_swap_tx"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quoteId | Yes | quoteId from a get_quote result | |
| userAddress | Yes | Sender address the transaction is built for |