Estimates and quotes
GET /estimate is stateless and allocates no deposit address. Use it as inputs change. Authenticate when you pass affiliate fields or request shielded Zcash.
POST /quote requires a key, persists the quote, and returns deposit instructions. Pricing normally lasts 2 minutes, subject to slippage. Shielded quotes return a separate priceValidUntil and allow 30 minutes to pay.
For Fixed-output quotes, set amountMode: "exact_in" and deliveryMode: "fixed". The quote commits to estimatedOut with timely, full funding. Underpayment can reduce the payout or hold the order for review; overpayment does not increase it.
Fixed-output quotes are available to approved partners on routes listed in fixedTo. /estimate is indicative; /quote confirms availability. Unsupported requests fail. Check the returned deliveryMode before funding.
Both endpoints use route-dependent slippageBps defaults and minimums. Omit it to use the route’s default.
Fund before expiresAt. Eligible late funding for variable quotes uses refreshed market pricing; some expired submissions are rejected. Late funding for fixed-output quotes is held for review and does not retain the quoted payout guarantee.
When Hyperunit credits a variable ZEC deposit, Orchestra reprices the remaining swaps. The minimum payout uses the fresh output and the order’s slippage, so it can fall below the original quote. This applies to transparent and shielded ZEC deposits.
Amounts
Amounts are integer strings in smallest units:"50000000" is 50 Base USDC; "100000" is 0.001 BTC. Read each asset’s decimals from /routes.
exact_in(default):amountis source units. ReadamountInandestimatedOut.exact_out:amountis destination units. ReadtargetAmountOut,requiredAmountIn,maxAcceptedAmountIn, andinputBufferBps. The destination must be inexactOutTo. Stablecoin targets must be whole cents, such as multiples of10000for a 6-decimal asset.
amountFiatUsd instead of amount. Eligible stablecoin onramps can select fiat-capped exact-out when partner fees are invoiced and no app or affiliate fees apply. Explicit exact_in prevents that selection. Use the returned mode and amounts.
/quote requires refundAddress for exact-out and Lightning destinations. Onramp leaves it optional, but missing refund details can obstruct recovery. Supply a valid refund target wherever supported.
Lightning destinations on /quote take a BOLT11 invoice as recipientAddress: amountless for exact-in; amountless or matching the target for exact-out. See Rules for invoice expiry. To pay a Cash App username or Lightning address from a deposited asset, use Offramp. That call rejects invoices and URLs.
Send the returned amountIn. Accepted differences can update input, fees, and output. Route minimums, maximums, and funding rules still apply. Dust may create no order, and over-limit funding can be held. Lightning source invoices fix the amount unless you request a flexible invoice.