Route Providers
Trails integrates with multiple liquidity sources and bridge providers to find the best routes for your cross-chain transactions. You can specify preferred providers for swapping and bridging, or let Trails automatically select the optimal ones.Available Providers
AUTO(recommended): Automatically selects the best provider based on the routeRELAY: Uses Relay for fast bridging operationsCCTP: Uses Circle’s Cross-Chain Transfer Protocol for USDC transfersSUSHI: Uses SushiSwap for on-chain swapsZEROX: Uses 0x protocol for DEX aggregationLIFI: Uses LI.FI for cross-chain routingLZ_OFT: Uses LayerZero Omnichain Fungible Token bridgeLZ_TRANSFER: Uses LayerZero’s Value Transfer API for direct cross-chain value transfersHYPERLANE: Uses Hyperlane warp routes for cross-chain messagingOIF: Uses the Open Intents Framework for solver-filled cross-chain intentsGASZIP: Uses Gas.zip for gas-optimized routingWETH: Wrap/unwrap ETH ↔ WETH on the same chainSOMNIA_EXCHANGE: Uses Somnia Exchange for swaps on SomniaSOMNIA_SWAP: Uses Somnia Swap for swaps on Somnia
Configuration
Widget-level configuration
Specify route providers on any focused component:Hook-level configuration
When using theuseQuote hook, you can specify both swap and bridge providers:
Provider Details
AUTO (recommended)
TheAUTO setting lets Trails intelligently select the best provider for each transaction based on cost, speed, liquidity, and reliability. Use this unless you have a specific reason to lock to a particular provider.
Relay
Relay provides fast cross-chain transfers through an intent-based filler network. Fillers front the destination execution and settle asynchronously.- Fast finality on most routes
- Competitive fees
- Good coverage across major EVM chains
CCTP
Circle’s Cross-Chain Transfer Protocol enables native USDC bridging without wrapped tokens. There is no slippage — 1 USDC in equals 1 USDC out.- Available on Ethereum, Base, Arbitrum, Optimism, Polygon, Avalanche
- No wrapped USDC; transfers use Circle’s burn-and-mint mechanism
- Best choice when users need exact USDC amounts at destination
SushiSwap
SushiSwap provides on-chain swap routing using its V3 concentrated liquidity pools across multiple EVM chains.- Available on most major chains
- Works well when deep Sushi liquidity exists for the token pair
0x Protocol
0x aggregates liquidity across multiple DEXs to find optimal swap rates. It optimizes for both price and gas.LayerZero (LZ_OFT / LZ_TRANSFER)
LayerZero is an omnichain messaging protocol that powers two distinct bridge providers: LZ_OFT — Omnichain Fungible Token bridge. Used for tokens that have native OFT deployments across chains (no wrapping, direct cross-chain transfers). LZ_TRANSFER — LayerZero’s Value Transfer API. Direct cross-chain value transfers for supported tokens; requires explicitbridgeProvider="LZ_TRANSFER" selection (not currently picked by AUTO).
- LZ_OFT expands coverage to chains and tokens not served by Relay or CCTP
- AUTO will select LZ_OFT when it is optimal
Hyperlane
Hyperlane is a permissionless interchain messaging protocol used for warp routes between chains. Trails uses Hyperlane for token pairs covered by deployed warp routes, with on-chain gas estimation for the interchain gas payment.- Included in AUTO routing — Hyperlane is considered alongside other bridges when scoring routes
- AUTO will only select Hyperlane when a warp route exists for the token pair
OIF (Open Intents Framework)
The Open Intents Framework is a permissionless solver network for cross-chain intents. Trails supports OIF for explicit selection, with refund handling for expired or unfilled orders.- Available on
v1_5only — Trails does not route OIF forv1quotes - Requires explicit
bridgeProvider="OIF"; not currently selected by AUTO
Gas.zip
Gas.zip is a gas-optimized routing provider that reduces the total gas cost of cross-chain transactions.- Useful when minimizing gas costs is the priority over speed
- AUTO will select Gas.zip when it provides the best cost efficiency
Somnia (SOMNIA_EXCHANGE / SOMNIA_SWAP)
Native swap providers on Somnia (chain id5031). Used for on-chain swaps within Somnia.
Best Practices
- Use
AUTOby default: Let Trails optimize the route for you. - USDC transfers: Use
CCTPfor guaranteed 1:1 native USDC bridging. - Fast bridging: Use
RELAYwhen speed is the priority. - Gas-sensitive routes: Use
GASZIPor leave asAUTOto minimize fees. - Separate swap and bridge:
swapProvidercontrols same-chain DEX routing;bridgeProvidercontrols the cross-chain transport layer. - Fallback support: Set
swapProviderFallback: trueorbridgeProviderFallback: trueto automatically fall back to another provider if your preferred one is unavailable.