Build unsigned swap transaction
build_swapBuild an unsigned swap transaction for the user's own wallet to review and sign. Use only after get_quote, when the user wants the transaction and has given their own wallet address. If the quote has expired, get a fresh one first. Pass the quote object returned by get_quote (it carries the signed quote ticket); if omitted, a fresh quote is taken first. recipient is the wallet address the user gave for this swap, copied exactly; never a key or seed phrase. The transaction is real and live (swaps are live; this is not a sandbox). This server does not sign, execute or broadcast anything, and the chat cannot sign: the user signs in their own wallet, or opens openInHelmSwapUrl to review and sign on helmswap.com. No API key or sign-in is needed on Solana or EVM chains. If a build is refused or rate limited, give the user the openInHelmSwapUrl link from get_quote instead. 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": {
"recipient": "<recipient>"
},
"name": "build_swap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Network. chain: 'solana', 'base', 'bnb', 'ethereum', 'robinhood', 'ink', 'hyperevm', 'elysium' or 'arc', or a numeric EVM chainId (default 8453, Base). | |
| quote | No | The object returned by get_quote. Must include quoteTicket. | |
| chainId | No | EVM chain id. Ignored when chain is 'solana'. Default 8453. | |
| tokenIn | No | Token to sell: contract address or mint, or a native symbol (ETH, BNB, SOL, HYPE). | |
| amountIn | No | Integer amount of tokenIn in its smallest unit (for example 10000000 for 0.01 SOL, which has 9 decimals). | |
| referrer | No | Optional payout address (EVM 0x or Solana base58) to attribute a disclosed share of the fee. The trader pays the same fee either way. | |
| tokenOut | No | Token to buy: contract address or mint, or a native symbol. | |
| recipient | Yes | The user's wallet address that will sign (EVM 0x or Solana base58). Address only, never a private key. | |
| slippageBps | No | Slippage tolerance in basis points. Default 50. |