Skip to content
Last updated
Edit

[Source]

Deletes a Loan ledger entry. Only the loan broker or borrower can submit this transaction.

Requires the LendingProtocol amendment. Loading...

Example LoanDelete JSON

{
  "TransactionType": "LoanDelete",
  "Account": "rEXAMPLE9AbCdEfGhIjKlMnOpQrStUvWxYz",
  "Fee": "12",
  "Flags": 0,
  "LastLedgerSequence": 7108682,
  "Sequence": 8,
  "LoanID": "E123F4567890ABCDE123F4567890ABCDEF1234567890ABCDEF1234567890ABCD"
}

LoanDelete Fields

In addition to the common fields, LoanDelete transactions use the following fields:

Field NameJSON TypeInternal TypeRequired?Description
LoanIDStringHash256YesThe ID of the Loan ledger entry to delete.

Error Cases

Besides errors that can occur for all transactions, LoanDelete transactions can result in the following transaction result codes:

Error CodeDescription
temINVALIDThe LoanID is missing or set to zero.
tecNO_ENTRYThe loan specified by LoanID doesn't exist.
tecHAS_OBLIGATIONSThe loan can't be deleted because it still has outstanding payments due.
tecNO_PERMISSIONThe account submitting the transaction is neither the borrower of the Loan ledger entry nor the owner of the LoanBroker ledger entry.