What this enables
Token conversion at settlement: Accept any token from customers and settle in the token your product uses. A customer paying with ETH can send the exact USDC equivalent to your contract on Polygon, without a separate conversion step. Cross-network fund movement: Move customer funds between networks as part of normal product operations, without your team managing bridge infrastructure or liquidity positions. Portfolio rebalancing: Let customers rebalance holdings across chains in one action. They specify what they want to end up with; the routing layer finds the optimal route. FX-like stablecoin conversion: Swap between stablecoins across networks (e.g., USDT on Tron to USDC on Polygon) as a backend settlement primitive.How it works
The routing layer handles bridges and DEXs automatically, finding the best path for each transfer. You specify the source and destination; it handles what happens in between.Exact input vs. exact output
Two trade modes cover the main product scenarios:| Mode | Use when |
|---|---|
| Exact input | Customer specifies how much to send; they receive whatever that converts to |
| Exact output | Customer receives a fixed amount; they pay whatever is required |
Headless integration
For custom UIs or server-driven flows, useuseQuote to get a route and execute it programmatically: