Claw Back Confidential Balances
This tutorial shows how the issuer of a Multi-Purpose Token, or MPT, claws back a holder's confidential balance. A clawback removes the tokens from the holder and takes them out of circulation. A confidential clawback always takes the holder's total confidential balance, so there is no partial clawback.
- Section
- Tutorials
What you will do
You lock the MPT issuance for one holder, so that the proof for the clawback stays valid. You then claw back the holder's entire confidential balance. Last, you verify the result as the holder, the issuer and the auditor.
What you need
You need a basic understanding of the XRP Ledger and of the Confidential Transfers concept. You need an MPT issued with both the Can Clawback and Can Lock flags, with the issuer and auditor encryption keys registered on it, and a holder with a confidential balance. The tutorial's setup script creates all of this for you. You also need a client library: xrpl.js for JavaScript or xrpl-py for Python. The feature requires the ConfidentialTransfer amendment, which the page lists as open for voting.
The steps in short
Install the dependencies, connect a client and load the issuer, the holder, the auditor and the issuance. Send an MPTokenIssuanceSet transaction with the tfMPTLock flag to lock the issuance for the holder. This matters because the proof is built against the balance the issuer reads. If the holder spends or receives anything first, the clawback fails. Read the issuance's ConfidentialOutstandingAmount, the total confidential supply, which is public. Then send a ConfidentialMPTClawback transaction. It carries the amount in the clear, along with a Zero-Knowledge Proof that the amount matches the encrypted balance. Finally, decrypt each balance copy with the holder, issuer and auditor keys to confirm that all read zero.
Good to know
Only the issuer can claw back. The clawback amount is publicly visible, so everyone can see the holder's total confidential balance at that moment. Afterwards ConfidentialOutstandingAmount drops by the amount clawed back, and OutstandingAmount drops with it. In production, private keys should be kept in a secure, encrypted key store.
Source: xrpl.org. Read 6 December 2026.
Zerpedia states what the source says, in plain words, and gives no opinion. How Zerpedia is made