Loan
A Loan entry holds the terms and the current state of one loan between a borrower and a loan broker. It contains all the details of the loan, such as fees and interest rates.
- Section
- References
What it is
A Loan entry defines the state of a loan agreement on the ledger between a Loan Broker and a Borrower. You create one with the LoanSet transaction. It is tracked in two owner directories: the borrower's and the one of the LoanBroker pseudo-account. It requires the LendingProtocol amendment, which is open for voting.
What it holds
Borrower is the borrower's account address, and LoanBrokerID is the ID of the loan broker. InterestRate is the yearly interest rate, in units of 1/10th of a basis point. StartDate is when the loan started. PaymentInterval is the number of seconds between payments, and GracePeriod is the number of seconds after a payment is due before the loan defaults. NextPaymentDueDate is when the next payment is due, and PaymentRemaining is the number of payments left. PrincipalOutstanding is the principal still owed. TotalValueOutstanding is the total owed, including remaining principal and fees.
The fees
Four fees are paid to the loan broker. LoanOriginationFee is taken from the principal when the loan is created. LoanServiceFee is paid with each loan payment. LatePaymentFee is paid for each late payment. ClosePaymentFee is paid when a full early payment is made.
Working out a payment
PeriodicPayment is the amount due for each payment interval, not counting the LoanServiceFee. It is stored with full precision. To get the amount to pay, round it up to the next whole number, or to the loan's LoanScale for trust line tokens, then add the LoanServiceFee. The final payment is the remaining TotalValueOutstanding plus the LoanServiceFee.
Flags and reserve
Three flags show whether the loan is defaulted, is impaired or supports overpayments: lsfLoanDefault, lsfLoanImpaired and lsfLoanOverpayment. A Loan entry incurs one owner reserve from the borrower.
A Loan ledger entry represents the terms of a loan between a borrower and loan issuer.xrpl.org
Source: xrpl.org. Read 6 December 2026.
Zerpedia states what the source says, in plain words, and gives no opinion. How Zerpedia is made