EN

Cross-currency payments and paths

4 minDifficulty Checked 2026-11-10
Key takeaways
  • A cross-currency payment sends one currency and delivers another in a single transaction.
  • Paths are the routes: trust lines, order books and AMM pools between sender and receiver.
  • The payment is atomic. Either the whole payment executes or none of it does.

You hold XRP. Your friend wants to be paid in a dollar token. On the XRP Ledger one payment can do both jobs: take XRP from you, swap it, and deliver the token to your friend.

The swap happens inside the ledger's built-in exchange, the DEX. Other people have left offers there, and AMM pools hold pairs of assets. Your payment takes the best rates it finds.

The route a payment takes is called a path. Think of stepping stones across a river. Each stone is one of two things:

  • A hop through an account that holds the same token on two trust lines. This is called rippling.
  • A trade in an order book or an AMM pool that changes one currency into another.

A payment can use several paths at once and pull a little from each.

The payment is all or nothing. Your friend gets the full amount or the payment fails and nothing moves. You are never left halfway, holding a currency you did not want.

You set two numbers. The first is what your friend must receive. The second is the most you are willing to spend. If the route costs more than your limit, the payment fails.

Two token payments can also hop through XRP in the middle when that is cheaper. Selling token A for XRP, then XRP for token B, is called auto-bridging.

Check yourself3 questions
1. A cross-currency payment cannot find enough liquidity for the full amount. What happens by default?
2. Which field caps what the sender spends?
3. Which payments never use paths?
Sources
Next lessonPartial payments4 min