XRP acts as a universal bridge currency on the XRPL DEX. This single feature turns limited liquidity into deep markets across thousands of pairs.
Auto-bridging is a native XRPL feature that automatically routes trades through XRP when doing so gives a better price than trading directly. When you trade Token A for Token B, the DEX checks three options and picks the cheapest:
This happens automatically on every OfferCreate transaction. You do not need to do anything special - the protocol handles it.
Auto-bridging route (when cheaper than direct A to B)
If 1,000 tokens each have an active XRP trading pair, auto-bridging creates up to 500,000 effective trading pairs (N x (N-1) / 2). Market makers only need to provide liquidity against XRP to serve the entire market.
This is why even obscure token-to-token pairs on the XRPL have liquidity. As long as both tokens have XRP order books, you can trade between them efficiently.
While auto-bridging handles OfferCreate transactions (trades), pathfinding does the same job for Payment transactions. It searches for the optimal route across up to 5 intermediary steps:
Pathfinding multi-hop route example
Pathfinding considers all available order books, AMM pools, and auto-bridged pairs to find the cheapest conversion. It can even combine partial amounts from multiple paths.
| Aspect | Auto-Bridging | Pathfinding |
|---|---|---|
| Transaction type | OfferCreate (trades) | Payment (sends) |
| Trigger | Automatic on every offer | Requested by sender |
| Intermediary | XRP only | Any token (up to 5 hops) |
| Uses AMM pools | Yes (since XLS-30d) | Yes |
| Effort required | None (built-in) | None (built-in) |
The swap page on XRPL.to leverages both CLOB auto-bridging and AMM routing. When you enter a swap, the system finds the best combination of order book offers and AMM pool rates. The price you see includes all routing optimizations.
Developers can access the same routing through the API for programmatic trading.
Get the best price on every trade with automatic CLOB + AMM routing.