Quote a buy or sell
justi_quoteQuotes buy or sell trades on justi.fun coins before and after graduation, so you can see expected/minimum output, price impact, and fee allocation before signing a swap.
Instructions
Quote a trade on a justi.fun coin (bonding curve before graduation, Meteora DAMM v2 after). For a buy give amountSol, for a sell give amountTokens (whole tokens) or amountRaw. Returns expected and minimum output, price impact, the fee and where it goes (creator, holders, burns, Meteora).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mint | Yes | ||
| side | Yes | ||
| amountRaw | No | Raw units instead: lamports for a buy, token base units (6 decimals) for a sell | |
| amountSol | No | Buy: SOL to spend, e.g. 0.5 | |
| slippageBps | No | Default 1000 (10%) | |
| amountTokens | No | Sell: whole tokens, e.g. 250000 |