Create a Loan Broker
This guide shows how to create a LoanBroker on the XRP Ledger using a private vault. A loan broker creates and manages loans. It also manages the first-loss capital for a connected single asset vault.
- Section
- Tutorials
What you will do
You create a loan broker linked to a private single asset vault. You set its parameters, such as a management fee rate. Then you look up the loan broker ID and its pseudo-account, a special account that holds first-loss capital.
What you need
You should have a basic understanding of the XRP Ledger and a client library set up. The page has examples in JavaScript with xrpl.js, in Python with xrpl-py and in Go with xrpl-go. Loan brokers require the LendingProtocol amendment, which the page lists as open for voting.
The steps in short
Install the dependencies and set up a client. Load the vault owner account and the vault ID. The vault owner will also be the loan broker. Prepare a LoanBrokerSet transaction, then sign and submit it. Check for the result code tesSUCCESS. Then read the loan broker's information from the LoanBroker entry in the transaction metadata.
Good to know
The management fee rate is set in tenths of a basis point. A value of 1000 equals 1%, which is 100 basis points.
Source: xrpl.org. Read 6 December 2026.
Zerpedia states what the source says, in plain words, and gives no opinion. How Zerpedia is made