Skip to content
Learn the Ledger poster: Tiny Payments. Big Ideas. Kev plays a video game in headphones while small coins stream into a glowing Payment Channel tank, which leads from Off-Ledger Channel to On-Ledger Settlement, with the line XRPL payment channels support many small XRP payments, settled on the ledger later.

Lesson 12

Tiny Payments. Big Ideas.

XRPL payment channels support many small XRP payments, settled on the ledger later. A useful building block for pay-as-you-use services.

Kev tries an online arcade that charges 0.001 XRP per minute. After ten minutes, he owes 0.01 XRP. With an XRP Ledger payment channel, Kev can authorise each minute as he plays and the arcade can collect the total in a single ledger transaction.

How does a payment channel work?

Kev opens a channel on the XRP Ledger and sets aside XRP for the arcade’s account. As he plays, his app sends the arcade signed messages called claims. The arcade can verify each claim as it arrives and check what it can redeem from the channel. These messages are exchanged off-ledger, so each minute of play can be authorised without a separate ledger transaction.

What does the arcade actually redeem?

Each claim shows the running total Kev has authorised. The first minute’s claim is for 0.001 XRP, the second is for 0.002 XRP, and the tenth is for 0.01 XRP. If the arcade has already redeemed 0.004 XRP, submitting the tenth claim pays it the remaining 0.006 XRP. The arcade can redeem during the session or wait until the end. Settlement happens when the claim transaction succeeds on the ledger.

What makes this useful for small payments?

A service could charge by the minute, by the game round or by the API request. Combining many small charges into fewer ledger transactions saves paying a separate network fee for every increment. The channel is funded in XRP and runs in one direction, from Kev to the arcade. Opening the channel and redeeming claims still require ledger transactions.

Kev’s tip: Keep the latest valid claim and check the channel’s expiry. The claim authorises payment, and redeeming it is what moves the XRP into the recipient’s account.

Sources

#XRPLEducationMonth

XRPL Foundation