Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.li.fi/llms.txt

Use this file to discover all available pages before exploring further.

The Solver API is the authenticated interface for solvers to submit quotes, manage accounts, and track reputation. All solver endpoints require an API key.
For integrator-facing endpoints (quotes, orders, status tracking), see the Intents API Overview.

Base URLs

EnvironmentBase URLSolver UI
Productionhttps://order.li.fiintents.li.fi
Testnethttps://order-dev.li.fidevintents.li.fi
Interactive API documentation is available at /docs on both environments.

Authentication

All Solver API endpoints require an API key passed via the api-key header. Register for a key in the solver UI linked above. See Authentication for full details.
curl -X POST 'https://order.li.fi/quotes/submit' \
  -H 'Content-Type: application/json' \
  -H 'api-key: YOUR_SOLVER_API_KEY' \
  -d '{ ... }'

Endpoints

Quote Management

MethodPathDescription
POST/quotes/submitSubmit or update up to 200K solver quotes at once
GET/solver-api/quotesRetrieve your currently uploaded quote inventory
Quotes define the routes, price curves, and amount ranges you’re willing to fill. The order server uses your quotes to match intents, so you don’t need to respond to individual quote requests. See Quoting Orders for the full quote format and strategy.

Account Management

MethodPathDescription
POST/solver-api/account/registerRegister a solver account
POST/solver-api/account/unregisterUnregister a solver account

Reputation

MethodPathDescription
GET/solver-api/solver/identitiesGet solver identities registered for reputation tracking
See Reputation for how solver performance is tracked.

Order Collection

Solvers receive orders via two channels:
  1. WebSocket (recommended): Connect to the order server for real-time order streaming.
  2. On-chain monitoring: Watch for Open events on the InputSettlerEscrow or InputSettlerCompact contracts.
See Order Flow for connection details and order validation.

Solver Flow Summary

Register account → Submit quotes → Receive orders → Fill outputs → Validate via oracle → Settle
StepWhat you doReference
RegisterCreate a solver account via /solver-api/account/registerThis page
QuotePush inventory to /quotes/submitQuoting
ReceiveConnect to WebSocket or monitor on-chain eventsOrder Flow
FillDeliver assets via OutputSettlerSimple.fill()Filling Orders
ProveSubmit fill proof through the oracle systemOracle Systems
SettleCall finalise on the input settler to receive paymentSettlement

Next Steps

Solving LI.FI Intents

Full solver integration guide with order types and filling

Quoting Orders

Quote format, price curves, and inventory management

Order Flow

WebSocket connection, order validation, and on-chain monitoring

Authentication

API key registration and environment details