EN

Credentials as a gate

4 minDifficulty Checked 2026-11-10
Key takeaways
  • DepositPreauth can approve a set of credentials in place of single accounts.
  • The sender lists its credential IDs in the payment. The set must match exactly.
  • Each credential must exist, be accepted, be unexpired and belong to the sender.

By default, anyone can pay any account on the XRP Ledger. Some businesses cannot allow that. The rules they work under say they must know who pays them.

The ledger has a switch for this, called Deposit Authorization. With it on, an account rejects payments unless it approved the sender first.

Approving senders one at a time does not scale. A business with ten thousand customers would need ten thousand approvals.

Credentials fix that. The business says once: "I accept payments from any account that holds this credential from this issuer." After that:

  • A new customer gets vetted by the issuer and accepts the credential.
  • The customer can pay the business right away.
  • The business did nothing for that customer.

The customer shows the credential by naming it in the payment. The ledger checks it on the spot.

The match is strict. If the business asked for two credentials together, the payer must name those two, no more and no fewer.

If the issuer later deletes the credential, the gate closes for that customer. Nothing else has to change.

The same idea opens other doors. A permissioned domain is a named list of accepted credentials. Features built on domains, such as the permissioned DEX, let in only accounts that hold one.

Check yourself3 questions
1. A receiver preauthorizes credentials A and B together. A sender holds both but lists only A. What happens?
2. How many credentials can one preauthorized set contain?
3. Which field does a sender use to trade in a permissioned DEX?
Sources
Next modulePermissioned Domains and DEXI3 · 12 min