Get a quote

Price a swap across Mesh pools and Cauldron, with the route and the Mesh / Cauldron split.

POST /api/v1/quote

Finds the best route for amountIn of tokenIn into tokenOut across Mesh strategy pools and Cauldron pools. Mesh pools are priced with the exact covenant formula.

Parameter In Type Required Description
tokenIn body string yes Category id, or 0x for BCH.
tokenOut body string yes Category id, or 0x for BCH.
amountIn body string yes Positive integer in base units of tokenIn.
minAmountOut body string no Optional floor; routes below it are ignored.

Response fields

Field Meaning
amountOut What the route pays out, in base units of tokenOut
route[] Hops: MESH_UTXO (with txid/vout) or CAULDRON_POOL (with poolId), each with fillAmount
meshPct / cauldronPct How the input splits between venues
routeReason Human-readable explanation of the split
estimatedFeeSats Miner fee estimate for the fill (paid by the solver)
validUntil Unix time after which you should re-quote

Using a quote

A quote is a price check, not a reservation. To trade, create an intent with a minimum slightly under amountOut; the difference becomes surplus.