Ledger entry · Trading and DeFi

Loan

In plain words

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.

Written by zerps in plain words, from the source linked below.
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.

In the source's words
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

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.