Quote a trade
quote_tradeQuote a buy (by SOL in) or a sell (by tokens in) of a higher.fun coin, wherever it trades now: the LaunchLab bonding curve, or its Raydium CPMM pool after graduation. Returns the expected output, the minimum at the given slippage, price impact, and the fees split by who receives them under the coin's fee mode. Reads only.
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). | |
| slippage_bps | No | Slippage for the minimum out, in bps (100 = 1%). |