Definition and scope
How Offers Work on the XRPL DEX addresses a distinct part of dex, amms, and native defi. Learn how OfferCreate expresses quantities, exchange rates, expiration, and execution constraints.
The XRP Ledger includes exchange and liquidity functions at the protocol layer. These topics explain how order books and AMMs interact, how users express prices and limits, and where liquidity, slippage, fees, and smart operational controls matter. Protocol liquidity does not guarantee price, depth, returns, legality, or issuer performance. Examples are mechanical, not trading advice.
How it works
OfferCreate places or immediately crosses an exchange instruction using TakerGets and TakerPays. Flags can request passive, immediate-or-cancel, or fill-or-kill behavior, and remaining amounts persist as an Offer object.
- OfferCreate: verify this field, object, or component against the cited protocol documentation.
- Offer: verify this field, object, or component against the cited protocol documentation.
- TakerGets: verify this field, object, or component against the cited protocol documentation.
- TakerPays: verify this field, object, or component against the cited protocol documentation.
- Expiration: verify this field, object, or component against the cited protocol documentation.
Practical example and checks
To cap a trade, calculate the desired ratio with protocol amount precision, choose expiration and flags, submit the offer, then inspect metadata for fills and any created remainder.
For production use, preserve the exact signed or queried data, record the network and validated ledger reference, and compare the result with the current primary documentation before changing off-ledger state.
Open the related live demo or evidence lab →Limits, risks, and common confusion
The field names are from the offer creator's perspective and are easy to reverse. A submitted limit is not a promise of execution or liquidity.
Protocol liquidity does not guarantee price, depth, returns, legality, or issuer performance. Examples are mechanical, not trading advice.
Current network status
Enabled on XRPL Mainnet. The underlying protocol capability is available on XRPL Mainnet. Individual services can still impose additional rules, limits, or trust assumptions.
Status reviewed 2026-08-23. Amendment-dependent behavior must be rechecked against the network's live feature state before operational use.