How-to for developers · Building on the ledger

Claw Back First-Loss Capital

In plain words

This guide shows a token issuer how to claw back tokens from a LoanBroker on the XRP Ledger. The clawback feature lets issuers meet regulatory standards and take funds back even when they were deposited as first-loss capital.

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

What you will do

You deposit a Multi-Purpose Token (MPT) as first-loss capital into a LoanBroker entry. You confirm who issued the token, claw back all of it and check the cover that is available afterwards.

What you need

You need a basic understanding of the XRP Ledger and a client library: xrpl.js, xrpl-py or xrpl-go. The feature requires the LendingProtocol amendment, and the LendingProtocolV1_1 amendment updates it. Clawback is disabled by default. For an MPT, the tfMPTCanClawback flag must be enabled when the MPTokenIssuanceCreate transaction is submitted.

The steps in short

Read the LoanBroker entry with the ledger_entry method. If the CoverAvailable field is missing, no first-loss capital has been deposited. Send a LoanBrokerCoverDeposit transaction, whose Amount field names the MPT and the amount. The deposit is held in the pseudo-account that belongs to the LoanBroker entry. Check that the account sending the clawback is the issuer of the asset. Then send a LoanBrokerCoverClawback transaction and check for the tesSUCCESS result code.

Good to know

The example claws back the entire amount. You can name any amount, as long as it does not exceed the available cover or bring the cover below the minimum the LoanBroker requires.

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.