xrpl.to now uses embedded non-custodial wallets. Xaman, Crossmark & GEM Wallet login is no longer supported.Now using embedded wallets. Xaman, Crossmark & GEM no longer supported.
Insights

XRPL Auto-Bridging & Pathfinding

XRP acts as a universal bridge currency on the XRPL DEX. This single feature turns limited liquidity into deep markets across thousands of pairs.

What Is Auto-Bridging?

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:

  • Direct: Token A to Token B
  • Bridged: Token A to XRP, then XRP to Token B
  • Combined: split across both paths

This happens automatically on every OfferCreate transaction. You do not need to do anything special - the protocol handles it.

How the Trade Flows

Token AXRPToken B

Auto-bridging route (when cheaper than direct A to B)

The N-Squared Effect

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.

Pathfinding

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:

USD.GateHubXRPRLUSDEUR.Bitstamp

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.

Auto-Bridging vs Pathfinding

AspectAuto-BridgingPathfinding
Transaction typeOfferCreate (trades)Payment (sends)
TriggerAutomatic on every offerRequested by sender
IntermediaryXRP onlyAny token (up to 5 hops)
Uses AMM poolsYes (since XLS-30d)Yes
Effort requiredNone (built-in)None (built-in)

Why This Matters for Traders

  • Better prices - the DEX checks multiple routes and picks the cheapest automatically
  • Deeper liquidity - obscure pairs benefit from all the liquidity in their respective XRP order books
  • Less slippage - trades can split across CLOB orders, AMM pools, and bridged routes
  • No extra cost - auto-bridging adds no additional fees beyond the standard ~0.000012 XRP transaction cost
  • No MEV - unlike EVM routers, XRPL consensus prevents front-running on any route

How XRPL.to Uses This

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.

Start Trading

Get the best price on every trade with automatic CLOB + AMM routing.