xrpl
    Preparing search index...

    Function signLoanSetByCounterparty

    • Signs a LoanSet transaction as the counterparty.

      This function adds a counterparty signature to a LoanSet transaction that has already been signed by the first party. The counterparty uses their wallet to sign the transaction, which is required for multi-party loan agreements on the XRP Ledger.

      Parameters

      • wallet: Wallet

        The counterparty's wallet used for signing the transaction.

      • transaction: string | LoanSet

        The LoanSet transaction to sign. Can be either:

        • A LoanSet transaction object that has been signed by the first party
        • A serialized transaction blob (string) in hex format
      • opts: { multisign?: string | boolean } = {}

        (Optional) Options for signing the transaction.

        • Optionalmultisign?: string | boolean

          Specify true/false to use multisign or actual address (classic/x-address) to make multisign tx request. The actual address is only needed in the case of regular key usage.

      Returns { hash: string; tx: LoanSet; tx_blob: string }

      An object containing:

      • tx: The signed LoanSet transaction object
      • tx_blob: The serialized transaction blob (hex string) ready to submit to the ledger
      • hash: The transaction hash (useful for tracking the transaction)

      If:

      • The transaction is not a LoanSet transaction
      • The transaction is already signed by the counterparty
      • The transaction has not been signed by the first party yet
      • The transaction fails validation