How-to for developers · Building on the ledger

Manage Permissioned Domains

In plain words

This tutorial shows how to create a permissioned domain on the XRP Ledger, how to change its set of accepted credentials, and how to delete it. A permissioned domain can be used to grant access to other features, such as Permissioned DEXes and Single Asset Vaults.

Written by zerps in plain words, from the source linked below.
Section
Tutorials

What you need

You need a basic understanding of the XRP Ledger, including what permissioned domains and credentials are. You also need a client library installed, such as xrpl.js. The examples are in JavaScript and Python, and you install what they depend on with npm or pip. Permissioned domains were added by the PermissionedDomains amendment, which the source lists as enabled on 4 February 2026.

Creating the domain

You connect a client and pick an issuer address and a credential type for the credential that will grant access to your domain. The credentials themselves do not have to be issued yet. Then you send a PermissionedDomainSet transaction and leave out the DomainID field. In the AcceptedCredentials field you name the credentials that grant access.

Finding the Domain ID

You can calculate the Domain ID, but it is often easier to read it from the metadata of the transaction that created the domain. Look for a CreatedNode of type PermissionedDomain. The LedgerIndex field of that entry is the Domain ID. You need it to modify or delete the domain, and to set up a permissioned DEX or anything else that uses the domain for access.

Changing or deleting it

To modify a domain, send a PermissionedDomainSet transaction like the one that created it, but this time include the DomainID field. To delete a domain that you own, send a PermissionedDomainDelete transaction with the DomainID of the domain to delete.

Good to know

The tutorial does not cover issuing and accepting credentials, because they are not needed to create and manage a domain. Valid credentials are needed to use something that a domain gates. The sample code saves the owner's address and seed to a JSON file, which the source accepts for Testnet accounts with no real-world value. For Mainnet accounts, use a more robust system.

Source: xrpl.org. Read 6 December 2026.

Zerpedia states what the source says, in plain words, and gives no opinion. How Zerpedia is made

zerps Trading tokens on the XRP Ledger carries risk, including total loss. zerps is a self-custodial interface; it does not hold funds, give advice, or execute trades on your behalf.