Build a trade (unsigned)
build_tradeConstructs an unsigned buy or sell transaction for the user’s wallet to review and sign after a quote and explicit trade approval, with simulation and a plain-language summary.
Instructions
Build an unsigned buy or sell for the user's own wallet to sign: the same transaction higher.fun's site builds. Quote first with quote_trade and show the user the quote. Set confirm_trade to true only after the user has approved this exact trade (coin, side, amount, slippage). The transaction is checked instruction by instruction, simulated, and returned as base64 with a plain-language summary and a sign_url for the user to review and sign in their own wallet. It carries Highwire's 0.3% trade fee, one transfer to Highwire's wallet shown in the summary: on top of a buy, or from a sell's SOL. Tell the user. Highwire never signs and never needs a private key.
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": {
"wallet": "<wallet>",
"mint": "<mint>",
"side": "<side>",
"max_slippage_bps": "<max_slippage_bps>",
"max_sol": "<max_sol>",
"confirm_trade": "<confirm_trade>"
},
"name": "build_trade"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sol | No | For a buy: SOL to spend. | |
| mint | Yes | The coin's mint address (base58). higher.fun mints usually end in 'high'. | |
| side | Yes | buy spends SOL for tokens; sell spends tokens for SOL. | |
| tokens | No | For a sell: whole tokens to sell (supply is 1B). | |
| wallet | Yes | The wallet that will sign and pay (public key only). | |
| max_sol | Yes | Cap: a buy may spend at most this much SOL; a sell may return at most this much. At most 10. | |
| confirm_trade | Yes | Set to true only after the user approved this exact trade. | |
| max_slippage_bps | Yes | Slippage tolerance in bps, at most 1500 (15%). |