A solver fulfills intents on destination chains in exchange for the source-chain reward. This recipe walks through registration and the steady-state operating loop.Documentation Index
Fetch the complete documentation index at: https://eco.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
What you need to provide
| Endpoint | Required for | Purpose |
|---|---|---|
POST /api/v2/quote | All solvers | Return pricing for a candidate intent (exact-input) |
POST /api/v2/quote/reverse | All solvers | Return pricing for an exact-output intent |
1. Implement the V2 endpoints
Your/api/v2/quote handler:
- Parses the candidate intent (source chain, destination chain, route tokens, requested output)
- Calculates your cost (destination gas, capital cost, slippage)
- Returns reward tokens you’d accept on the source chain (covering cost + margin) — or rejects if unprofitable
/api/v2/quote/reverse is the same idea for exact-output intents.
2. Register your solver
3. Monitor Portal events for SELF_PUBLISH intents
Watch the source-chain Portal forIntentPublished events. Match on intents that used your quote (your reward tokens will be present in the event).
4. Fulfill on the destination
route.calls atomically, and emits IntentFulfilled.
5. Wait for proof, then withdraw
The chosen prover dispatches the fulfillment proof to the source chain. Once the source-chain Portal verifies it:Capital efficiency
Two patterns reduce your inventory needs:- Crowd Liquidity — flash-borrow stablecoin liquidity for fulfillment, repay from the destination outcome. See Crowd Liquidity.
- Issuer-direct integration — if you have native mint/burn for a stablecoin, use it instead of pre-positioned inventory.
Best practices
- Pre-simulate
route.callsbefore fulfilling to avoid wasted gas on calls that would revert - Use
batchWithdrawto amortize tx costs across multiple proven intents - Set
deadlinemargins that allow for proof verification time on your chosen prover - Treat
Fulfillmentevent detection as the success signal, not the tx receipt
Read next
- Crowd Liquidity — flash-borrow capital
- Routes architecture — Portal/Vault/Executor surface
- API Reference — every endpoint
