Build a trade (unsigned)
build_tradeBuild 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. Highwire never signs and never needs a private key.
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%). |