

Settling on the XRP Ledger
A signed Payment in XRP or RLUSD, tied to one invoice, that expires fast.
Key points
- The exact scheme settles one signed Payment, in XRP or a token.
- InvoiceID ties the payment to one invoice. LastLedgerSequence makes it expire.
- The payer pays the fee. A Delegate field is not allowed.
The lesson
On the XRP Ledger, an x402 payment is a normal Payment. The agent signs it. The facilitator sends it in.
It can pay in XRP or in an issued token, such as the stablecoin RLUSD.
Three rules keep it safe.
- One invoice. When the server sends an invoice number, the payment carries its fingerprint. It cannot pay another invoice.
- Short life. The payment expires after a set ledger. A late copy fails.
- Exact amount. No partial payments, no currency swaps along the way.
The payer pays the network fee, a few drops, as with any transaction.
That way of paying is called the exact scheme. A second scheme, upto, is a draft. It would set a top price, then bill only what was used. It runs through a payment channel.
The
exactscheme for the XRP Ledger was added to the x402 specs in July 2026. Networks are namedxrpl:0(mainnet),xrpl:1(testnet) andxrpl:2(devnet).- Amount. XRP is a string of :
"1000000"is 1 XRP. A token gives the currency code andextra.issuer; RLUSD is524C555344000000000000000000000000000000. - Token rules.
SendMaxmust be the same token.Paths,DeliverMinandtfPartialPayment(0x00020000) are rejected. - Invoice. When the server sets
extra.invoiceId,InvoiceIDmust be its SHA-256.Memosare not allowed. - Expiry.
LastLedgerSequenceis required. - Fees. The payer's own
Feeis in the signed blob, soareFeesSponsoredis alwaysfalse. ADelegatefield is rejected, so Permission delegation cannot pay. The upto spec notes the Sponsor amendment could change this, but it is not enabled. - Ordering.
sequenceis the default.ticketSequenceuses a Ticket and allows several pending payments.
- Amount. XRP is a string of :
The facilitator decodes the blob, simulates it, submits it and waits for a validated
tesSUCCESS.The draft
uptoscheme usesPaymentChannelCreateand onePaymentChannelClaim. It is XRP only.

