EN

Closing a channel

4 minDifficulty Checked 2026-11-10
Key takeaways
  • The payer can ask to close. The receiver then has at least the settle delay to redeem.
  • The receiver can close at once, which returns unclaimed XRP to the payer.
  • CancelAfter is fixed at creation. Expiration can move, within the settle delay rule.

A channel holds the payer's money, so the payer needs a way to get the leftover back. The payee holds signed claims, so the payee needs time to cash them first. The closing rules balance the two.

The payee closes. The payee can close the channel at any time. Usually they redeem their last claim and close in the same step. Whatever is left goes back to the payer right away.

The payer closes. The payer can ask to close. If the channel is empty, it closes at once. If it still holds XRP, the request starts a countdown called the settle delay. It is a last call. The payee has at least that long to redeem any claims. After that, the channel is expired.

The settle delay does not slow down payments. Redeeming a claim still takes one ledger, a few seconds. The delay only slows down closing.

A fixed end date. When opening the channel, the payer can set a hard end time. It can never be moved. Once it passes, the channel is expired no matter what.

Expired is not gone. An expired channel stays on the ledger until some transaction touches it. Anyone can send that transaction. The channel then closes and the leftover XRP returns to the payer.

For a payee, the lesson is short. Know the settle delay and any end date before you accept claims. Redeem before they run out. A claim on a closed channel is worth nothing.

Check yourself3 questions
1. The payer asks to close a channel that still holds XRP. What happens?
2. A channel has expired but still sits on the ledger. How is it removed?
3. Which expiry time can never be changed?
Sources
Next moduleBatch transactionsT10 · 12 min