quote endpoint.
- The order server uses the interoperable address format, which encodes both the chain and address in a single bytes field.
- Amounts are always provided in wei, the smallest denomination of a currency, with no decimals. For example, an ERC20 token with 6 decimals and an amount of 1.5 should be provided as
"1500000". - Currently, the order server only supports fixed-input quotes, meaning the input amount is required.
Available Quotes
If a quote is available, the server returns a non-empty array of quotes. Depending on your intent, multiple fulfillment options may be provided. The recommended quote is always at index 0.Exclusive Quotes
As an integrator, you have the ability to specify exclusive orders, meaning you can choose which solver(s) you want to fulfill your order. For example, you can:- Require that a specific solver fills your order (e.g., a particular routing backend or market maker).
- Restrict fulfillment to a set of KYBed (KYC-verified) solvers to ensure regulatory or compliance requirements are met.
metadata.exclusiveFor field may be returned for each quote. It represents a weighted, randomly selected solver for your intent. If returned, it is highly recommended to attach this field to the order context as follows:
Getting a Quote
Using the order server to fetch quotes is optional, but it ensures access to solvers’ inventory and provides better execution guarantees.Interoperable Address
The LI.FI order server uses interoperable addresses, which encode both a chain and an address inside a single bytes field. Here is an example encoding of the EVM address0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base:
/quote/request.
