Skip to main content
The LI.FI order server is an optional component in intent distribution. It is only required for gasless orders, such as Escrow openFor or Compact BatchClaim. On-chain opened escrow orders are automatically picked up by both solvers and the order server for distribution.

Gasless Orders

For gasless orders, the intent can be broadcast through the orders/submit endpoint. The order should be provided as a StandardOrder with the type specified. If an order server quote was used to initiate the order, the quoteId can optionally be attached for preferential processing.
interface {
  orderType: "CatalystCompactOrder",
  inputSettler: `0x${string}`,
  quoteId?: `quote_${string}`,
  order: {
    expires: number,
    user: `0x${string}`,
    nonce: string, // bigint
    originChainId: string, // bigint
    fillDeadline: 1942819670,
    inputOracle: `0x${string}`,
    inputs: [string, string][],
    outputs: {
        oracle: `0x${string}`,
        settler: `0x${string}`,
        chainId: "11155420",
        token: `0x${string}`,
        amount: "1000000",
        recipient: `0x${string}`,
        call: "0x",
        context: "0x"
      }[]
  }
}
An Order Server orderId will be returned, which can be used for status tracking.