Show / Hide Table of Contents

Class LoanSet

The LoanSet transaction creates a new loan associated with a loan broker. Two parties sign it: the submitting Account and the counterparty, who co-signs via CounterpartySignature unless this transaction is part of a Batch. One of them is the LoanBroker's owner and the other is the borrower, in either role.

Inheritance
object
TransactionRequest
LoanSet
Implements
ITransactionRequest
ILoanSet
ITransactionCommon
Inherited Members
TransactionRequest.NetworkID
TransactionRequest.Account
TransactionRequest.AccountTxnID
TransactionRequest.Fee
TransactionRequest.LastLedgerSequence
TransactionRequest.Memos
TransactionRequest.Sequence
TransactionRequest.SigningPublicKey
TransactionRequest.Signers
TransactionRequest.TransactionType
TransactionRequest.TransactionTypeName
TransactionRequest.TransactionSignature
TransactionRequest.ToJson()
TransactionRequest.ToDictionary()
TransactionRequest.SourceTag
TransactionRequest.TicketSequence
TransactionRequest.Sponsor
TransactionRequest.SponsorFlags
TransactionRequest.SponsorSignature
TransactionRequest.Delegate
TransactionRequest.OperationLimit
Namespace: Xrpl.Models.Transactions
Assembly: Xrpl.dll
Syntax
public class LoanSet : TransactionRequest, ITransactionRequest, ILoanSet, ITransactionCommon
Remarks

Requires the Loan amendment (XLS-66d). This feature is in draft and subject to change.

Constructors

| Edit this page View Source

LoanSet()

Declaration
public LoanSet()

Properties

| Edit this page View Source

CloseInterestRate

The rate charged for repaying the loan early, in 1/10th of a basis point: 100000 = 100%, 5000 = 5%. Valid range: 0–100000.

Declaration
[JsonPropertyName("CloseInterestRate")]
public uint? CloseInterestRate { get; set; }
Property Value
Type Description
uint?
| Edit this page View Source

ClosePaymentFee

The fee charged for early loan closure (Number type).

Declaration
[JsonPropertyName("ClosePaymentFee")]
public XrplNumber? ClosePaymentFee { get; set; }
Property Value
Type Description
Nullable
| Edit this page View Source

Counterparty

The counterparty: the account that co-signs via CounterpartySignature. Optional; when omitted the counterparty is the LoanBroker's owner. One of Account and the counterparty must be the broker owner, and the other one is the borrower - so this is the borrower when the broker owner submits, and the broker owner (or omitted) when the borrower submits. Required on a LoanSet inside a Batch.

Declaration
[JsonPropertyName("Counterparty")]
public string Counterparty { get; set; }
Property Value
Type Description
string
| Edit this page View Source

CounterpartySignature

The counterparty's co-signature (sfCounterpartySignature) - SigningPubKey and TxnSignature, or Signers for a multisig counterparty. It is not part of what either party signs. Absent on a LoanSet inside a Batch, where the counterparty signs the batch through BatchSigners instead.

Declaration
[JsonPropertyName("CounterpartySignature")]
public SignatureObject CounterpartySignature { get; set; }
Property Value
Type Description
SignatureObject
Remarks

Produced by LoanSigningHelper and XrplWallet.SignAsLoanCounterparty.

| Edit this page View Source

Data

Arbitrary hex-encoded metadata, limited to 256 bytes.

Declaration
[JsonPropertyName("Data")]
public string Data { get; set; }
Property Value
Type Description
string
| Edit this page View Source

Flags

LoanSet transaction flags.

Declaration
public LoanSetFlags? Flags { get; set; }
Property Value
Type Description
LoanSetFlags?
| Edit this page View Source

GracePeriod

The grace period before late fees apply, in seconds. Default: 60.

Declaration
[JsonPropertyName("GracePeriod")]
public uint? GracePeriod { get; set; }
Property Value
Type Description
uint?
| Edit this page View Source

InterestRate

The annualized interest rate for the loan, in 1/10th of a basis point: 100000 = 100%, 5000 = 5%. Valid range: 0–100000.

Declaration
[JsonPropertyName("InterestRate")]
public uint? InterestRate { get; set; }
Property Value
Type Description
uint?
| Edit this page View Source

LateInterestRate

The premium added to the interest rate for late payments, in 1/10th of a basis point: 100000 = 100%, 5000 = 5%. Valid range: 0–100000.

Declaration
[JsonPropertyName("LateInterestRate")]
public uint? LateInterestRate { get; set; }
Property Value
Type Description
uint?
| Edit this page View Source

LatePaymentFee

The fee charged for late payments (Number type).

Declaration
[JsonPropertyName("LatePaymentFee")]
public XrplNumber? LatePaymentFee { get; set; }
Property Value
Type Description
Nullable
| Edit this page View Source

LoanBrokerID

The ID of the loan broker managing this loan.

Declaration
[JsonPropertyName("LoanBrokerID")]
public string LoanBrokerID { get; set; }
Property Value
Type Description
string
| Edit this page View Source

LoanOriginationFee

The origination fee for the loan (Number type).

Declaration
[JsonPropertyName("LoanOriginationFee")]
public XrplNumber? LoanOriginationFee { get; set; }
Property Value
Type Description
Nullable
| Edit this page View Source

LoanServiceFee

The service fee for the loan (Number type).

Declaration
[JsonPropertyName("LoanServiceFee")]
public XrplNumber? LoanServiceFee { get; set; }
Property Value
Type Description
Nullable
| Edit this page View Source

OverpaymentFee

The fee rate charged on overpayments, in 1/10th of a basis point: 100000 = 100%, 5000 = 5%. Valid range: 0–100000.

Declaration
[JsonPropertyName("OverpaymentFee")]
public uint? OverpaymentFee { get; set; }
Property Value
Type Description
uint?
| Edit this page View Source

OverpaymentInterestRate

The interest rate charged on overpayments, in 1/10th of a basis point: 100000 = 100%, 5000 = 5%. Valid range: 0–100000.

Declaration
[JsonPropertyName("OverpaymentInterestRate")]
public uint? OverpaymentInterestRate { get; set; }
Property Value
Type Description
uint?
| Edit this page View Source

PaymentInterval

The interval between payments, in seconds. Default: 60.

Declaration
[JsonPropertyName("PaymentInterval")]
public uint? PaymentInterval { get; set; }
Property Value
Type Description
uint?
| Edit this page View Source

PaymentTotal

The total number of payments for the loan. Default: 1.

Declaration
[JsonPropertyName("PaymentTotal")]
public uint? PaymentTotal { get; set; }
Property Value
Type Description
uint?
| Edit this page View Source

PrincipalRequested

The principal amount requested for the loan (Number type). Required.

Declaration
[JsonPropertyName("PrincipalRequested")]
public XrplNumber? PrincipalRequested { get; set; }
Property Value
Type Description
Nullable

Implements

ITransactionRequest
ILoanSet
ITransactionCommon

Extension Methods

FeePayerExtensions.GetFeePayer(ITransactionCommon)
FeePayerExtensions.GetFeePayer(ITransactionCommon, ITransactionMetadata)
BatchUtils.ToBatchTx(ITransactionRequest)
Utilities.Encode(TransactionRequest)
Utilities.EncodeForMultiSigning(TransactionRequest, string)
Utilities.EncodeForSigning(TransactionRequest)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX