Learn
XRPL Guide

XRPL DEX Guide

How the XRP Ledger's native decentralized exchange works.

What Is the XRPL DEX?

The XRP Ledger has a built-in decentralized exchange (DEX) that has been operational since 2012 — making it one of the oldest DEXs in existence. The XRPL DEX uses an order book model where users place offers to exchange one asset for another. Trades are matched automatically by the ledger.

How XRPL Offers Work

To trade on the XRPL DEX, an account submits an OfferCreate transaction specifying the asset they want to sell (TakerGets) and the asset they want to receive (TakerPays). If a matching offer exists, the trade executes immediately. If not, the offer remains on the order book until matched, cancelled, or expired.

Auto-Bridging

The XRPL DEX supports auto-bridging through XRP. If you want to trade Token A for Token B and there is no direct order book, the ledger can automatically route the trade through XRP (Token A → XRP → Token B) if it results in a better price. This improves liquidity across all trading pairs.

DEX + AMM Integration

With the introduction of native AMMs (XLS-30), the XRPL DEX now integrates AMM liquidity alongside order book liquidity. When a trade is executed, the ledger automatically finds the best price between the order book and available AMM pools. This creates a more efficient and liquid market.