Smart Order Router API
Our SOR explores non-linear paths across multiple liquidity sources to maximize output net of gas. Use the SOR with two steps:
- /quote — request an optimal path and a deterministic
pathIdplus estimates - /assemble — generate transaction calldata for onchain execution based on the
pathId(valid for 60 seconds)
When to use
- Single- or multi-token inputs (up to 6 input and output tokens in a single atomic transaction)
- Portfolio rebalances and treasury operations
- Advanced routing (pool blacklists, native token wrapping, referral codes)
Endpoints
- POST
/sor/quote/v3 - POST
/sor/assemble
All examples show Enterprise endpoints. Replace with public endpoints if needed.