Issue an MPT for Confidential Transfers
This tutorial shows how to issue a Multi-Purpose Token, or MPT, that supports Confidential Transfers. With that feature, account balances and transfer amounts stay encrypted on the ledger.
- Section
- Tutorials
What you will do
You generate the encryption keypairs that confidential transfers need and issue an MPT set up for them. You then move tokens into a confidential balance, merge the inbox balance into the spending balance and decrypt it to check the result.
What you need
You need a basic understanding of the XRP Ledger and of the Confidential Transfers concept. You need a client library: xrpl.js for JavaScript or xrpl-py for Python. The example funds three accounts. The issuer creates the MPT issuance and registers the encryption keys. A second account, a regular holder account that the issuer controls, holds the confidential balance. An optional auditor can decrypt every holder's balance for this issuance. The feature requires the ConfidentialTransfer amendment, which the page lists as open for voting.
The steps in short
Generate an encryption keypair for each participant. It is separate from the account's signing keys. Send an MPTokenIssuanceCreate transaction with the tfMPTCanHoldConfidentialBalance flag. Register an IssuerEncryptionKey with an MPTokenIssuanceSet transaction, and an AuditorEncryptionKey in the same transaction if you want an auditor. Authorize the second account with an MPTokenAuthorize transaction and send it tokens with a Payment transaction, which is public. Send a ConfidentialMPTConvert transaction to turn the public balance into a confidential one. Send a ConfidentialMPTMergeInbox transaction to move the inbox balance into the spending balance. Last, decrypt the spending balance to confirm the conversion.
Good to know
The TransferFee must be 0 on an issuance that can hold confidential balances, because the ledger cannot work out a percentage fee on an encrypted amount. Registering a key is permanent: neither key can be changed or removed. Store the encryption private keys securely, since a holder who loses the key can no longer spend the confidential balance. Confidential transactions cost 10 times the standard transaction cost.
Source: xrpl.org. Read 6 December 2026.
Zerpedia states what the source says, in plain words, and gives no opinion. How Zerpedia is made