Create a Single Asset Vault
This guide shows how to create a single asset vault on the XRP Ledger. A vault can hold only one type of asset, such as XRP, a trust line token or a Multi-Purpose Token (MPT).
- Section
- Tutorials
Public or private
In a public vault anyone can deposit assets. In a private vault only users with valid credentials can deposit, managed through a permissioned domain. The guide builds a private vault, the way a financial institution could pool lender assets for lending while controlling access through credentials.
What you need
You need a basic understanding of the XRP Ledger and a client library: xrpl.js for JavaScript or xrpl-py for Python. The feature requires the SingleAssetVault amendment, and the LendingProtocolV1_1 amendment updates it. The JavaScript code expects both amendments, the Python code only SingleAssetVault.
The steps in short
Fund a vault owner account. Set the MPT issuance ID for the vault's asset and a permissioned domain ID that controls who can deposit. Prepare a VaultCreate transaction, sign it and submit it, then check for the tesSUCCESS result code. Read the new Vault object from the transaction result, or ask for its details with the vault_info method.
The vault's settings
The tfVaultPrivate flag and the DomainID field limit deposits to accounts with valid credentials in that domain. Leave both out for a public vault. The Data field holds details about the vault, such as its name and website, written as hex. AssetsMaximum set to 0 means no cap on how much the vault can hold. VaultKind set to 1 creates a closed-ended vault: SubscriptionDate defines how long it accepts deposits and RedemptionDate defines when assets can be redeemed.
Good to know
Vault shares are transferable by default, so depositors can pass their shares to other accounts. Enable the tfVaultShareNonTransferable flag if you do not want that.
Source: xrpl.org. Read 6 December 2026.
Zerpedia states what the source says, in plain words, and gives no opinion. How Zerpedia is made