Use Payment Channels
Payment channels are an advanced feature for sending XRP payments that can be divided into very small increments and settled later. This tutorial walks through the entire process of using a payment channel, with examples that use the JSON-RPC API of a local xrpld server.
- Section
- Tutorials
What you need
Ideally you have two people, a payer and a payee, each with the keys to a funded XRP Ledger account. One person managing two addresses also works. You need an xrpld server to send transactions to. To test without real XRP, you can use Testnet addresses.
Opening the channel
The payer sends a PaymentChannelCreate transaction. It sets details such as an expiration time, a settlement delay and the public key used to verify claims. The payer reads the Channel ID from the transaction's metadata in a validated ledger. The payee then looks up the channel with the account_channels method and checks that its details suit them.
Paying with claims
The payer creates signed claims with the channel_authorize method and sends them to the payee off the ledger. Each claim is for a cumulative amount. To buy two items at 10 XRP each, the first claim is for 10 XRP and the second for 20 XRP. The payee verifies each claim with the channel_verify method and confirms the channel has enough XRP. Then the payee provides the goods or services. Both can repeat this as often as they like without waiting for the XRP Ledger.
Redeeming and closing
The payee receives XRP by sending a PaymentChannelClaim transaction. Because claims are cumulative, only the largest one needs to be redeemed. When both are done, the payer asks to close the channel with a PaymentChannelClaim transaction that has the tfClose flag. If XRP remains, the payee has at least the settlement delay to redeem outstanding claims. Once the channel has expired, anyone can send a transaction that closes it and returns unclaimed XRP to the payer.
Good to know
A payment channel counts as one object toward the payer's owner reserve. The settlement delay does not delay settlement, which can happen as fast as a ledger version closes, in 3 to 5 seconds. It is a forced delay on closing the channel, so the payee has a chance to finish settling. Only the payer or payee of a channel can redeem claims against it.
Source: xrpl.org. Read 6 December 2026.
Zerpedia states what the source says, in plain words, and gives no opinion. How Zerpedia is made