List protocols capable of swapping a given asset pair (respects client modularity settings)
Documentation Index
Fetch the complete documentation index at: https://docs.leokit.dev/llms.txt
Use this file to discover all available pages before exploring further.
/leokit/routes returns the protocols that can swap a given from_asset → to_asset pair, along with metadata for each (estimated time, intent-based or not, same-chain requirement). The response respects per-client disabled_protocols configured in the LeoKit Dashboard.
Use this for UI like a “swap-via” picker, or to pre-filter protocols before requesting quotes.
Api-Key, the response is filtered by your client’s modularity settings (disabled protocols/chains). Without one, all globally-enabled protocols are returned.
| Parameter | Type | Required | Description |
|---|---|---|---|
from_asset | string | Yes | Source asset in CHAIN.SYMBOL-ADDRESS format |
to_asset | string | Yes | Destination asset in CHAIN.SYMBOL-ADDRESS format |
| Field | Description |
|---|---|
from_chain | Source chain code (e.g. ETH) |
to_chain | Destination chain code (e.g. BTC) |
routes | Array of usable protocols for this pair |
unsupported | Protocols that exist but can’t route this specific pair |
| Field | Type | Description |
|---|---|---|
protocol | string | Protocol slug (e.g. thorchain, chainflip, relay, near, harbor) |
type | string | cross-chain-dex, dex-aggregator, bridge, intent-bridge, or aggregator |
estimated_seconds | number | Average time-to-settle for this protocol |
is_intent_based | boolean | True for solver-based intent protocols (Across, deBridge) |
requires_same_chain | boolean | True for protocols that only do same-chain swaps (e.g. 1inch). Cross-chain pairs unsupported |
Cache-Control: public, max-age=60).
| Status | Code | Description |
|---|---|---|
400 | BAD_REQUEST | Missing from_asset or to_asset |
estimated_seconds is an average, not a real-time measurement.thorchain-aggregator-swapout) are filtered out of the response./leokit/quote or streaming quotes.