The order server caches quotes from its solver network. CallDocumentation Index
Fetch the complete documentation index at: https://docs.li.fi/llms.txt
Use this file to discover all available pages before exploring further.
POST /quote/request to get pricing for an intent before constructing an order.
Using the order server for quotes is optional but recommended. It matches intents against solver standing quotes and gives stronger execution guarantees.
For simpler integrator parameter handling, a V1 quote endpoint is also available at
GET /api/v1/integrator/quote/request.Request Format
Request Fields
| Field | Type | Description |
|---|---|---|
user | string | Interoperable address of the user (refund recipient on failure) |
intent.intentType | string | Always "oif-swap" |
intent.inputs[] | array | Input assets with user, asset (interoperable address), and amount |
intent.outputs[] | array | Desired outputs with receiver, asset, and amount (null for exact-input) |
intent.swapType | string | "exact-input" fixes the input amount and lets the solver determine the output (set outputs[].amount to null). This is the most common mode. "exact-output" fixes the output amount and lets the solver determine the required input (set inputs[].amount to null). Use this when the destination amount matters, for example to repay a loan or meet a contract requirement. |
supportedTypes | array | Resource lock types the user supports. Use "oif-escrow-v0" for standard escrow integrations; include "oif-resource-lock-v0" only if your flow supports Compact/resource-lock claims |
intent.metadata.exclusiveFor | array | Optional. Restrict quotes to specific solver addresses. Useful for compliance or partnerships, but over-restriction can reduce fill reliability. |
Response Format
quoteId for use when submitting the order.
Response Fields
| Field | Description |
|---|---|
validUntil | Unix timestamp after which the quote expires. Re-fetch if stale. |
quoteId | Reference ID to include when submitting an order for preferential solver matching. |
preview.inputs / preview.outputs | The expected input and output amounts for this quote. |
metadata.exclusiveFor | The solver address selected for this quote, or null. |
partialFill | Whether the solver supports partial fills for this quote. |
failureHandling | How failures are handled (e.g. "refund-automatic"). |
Exclusive Solver Matching
Themetadata.exclusiveFor field in the response identifies the solver selected for this quote. If you want to enforce exclusivity when constructing the order, encode the solver address and an expiry into the output’s context field:
Next Steps
Create and Submit Orders
Construct a StandardOrder and submit it to the solver network
Track Order Status
Monitor order progress via the API or on-chain events

