Skip to content

LoanBrokerDelete

[Source]

Attention

Lending Protocol and Single Asset Vaults are disabled on Devnet. You have two options for testing these features:

  1. Run rippled in stand-alone mode and enable LendingProtocol and SingleAssetVault in the rippled.cfg file.
  2. Connect to the Lending Protocol-specific Devnet at https://lend.devnet.rippletest.net:51234/.

Deletes a LoanBroker ledger entry. Only the owner of the LoanBroker entry can delete it.

(Requires the Lending Protocol amendment )

Example LoanBrokerDelete JSON

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

LoanBrokerDelete Fields

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

Field NameJSON TypeInternal TypeRequired?Description
LoanBrokerIDStringHash256YesThe ID of the LoanBroker ledger entry to delete.

Error Cases

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

Error CodeDescription
tecNO_ENTRYThe LoanBroker ledger entry specified doesn't exist.
tec_NO_PERMISSIONThe transaction submitter is not the owner of the LoanBroker ledger entry.
tecHAS_OBLIGATIONSThe OwnerCount field is greater than zero (active loans exist). This error can also occur if the loan broker's pseudo-account has a balance, owns other ledger entries, or has an owner directory.