Quote Providers
Trails integrates with multiple liquidity sources and bridge providers to find the best routes for your cross-chain transactions. You can specify a preferred provider or let Trails automatically select the optimal one.Available Providers
auto(recommended): Automatically selects the best provider based on the routelifi: Uses LiFi aggregator for cross-chain swapsrelay: Uses Relay for bridging operationscctp: Uses Circle’s Cross-Chain Transfer Protocol for USDC transfers
Configuration
Widget-Level Configuration
Specify a quote provider when initializing the widget:Hook-Level Configuration
When using theuseQuote hook, the quote provider is determined by the SDK’s default settings and route optimization.
Provider Characteristics
Auto (Recommended)
Theauto setting allows Trails to intelligently select the best provider for each transaction based on:
- Cost efficiency: Lowest fees and gas costs
- Speed: Fastest execution time
- Liquidity: Best rates for the token pair
- Reliability: Provider uptime and success rates
LiFi
LiFi is a cross-chain liquidity aggregator that sources routes from multiple bridges and DEXs:- Multi-source: Aggregates from 20+ bridges and DEXs
- Optimized routing: Finds the best multi-hop routes
- Wide token support: Supports a large variety of tokens
Relay
Relay provides fast cross-chain transfers with competitive fees:- Fast execution: Optimized for speed
- Native bridging: Direct chain-to-chain transfers
- Lower complexity: Simple bridge operations
CCTP
Circle’s Cross-Chain Transfer Protocol for native USDC transfers:- Native USDC: No wrapped tokens
- 1:1 transfers: No slippage for USDC
- Official Circle: Secure and trusted
Best Practices
- Use
autoby default: Let Trails optimize the route for you - Specify for USDC: Use
cctpfor USDC-specific transfers if you want guaranteed 1:1 transfers - Consider your use case:
- High volume? Use
relayfor speed - Need best rates? Use
lififor aggregation - USDC transfers? Use
cctpfor native transfers
- High volume? Use