github XRPLF/xrpl.js xrpl@5.4.0

one hour ago

Changes

Changed

  • Some transaction validation error messages changed.

Deprecated

  • Node.js v20 reached end-of-life on April 30, 2026 and is no longer tested in CI. It may still work with v5.x, but support will be removed in the next major release. Use Node.js v22 or v24.

Fixed

  • Update ripple-binary-codec to 2.11.1.
  • Allow LastLedgerSequence in inner Batch transactions, to match rippled.
  • signMultiBatch now accepts the Sponsor of a sponsored inner transaction as a required signer. rippled's Batch::preflight requires a BatchSigners entry from the sponsor of any inner transaction carrying a SponsorSignature placeholder, and rejects the Batch with temBAD_SIGNER without it.
  • A request now rejects with a RippledError when rippled replies with an error message (for example jsonInvalid). Before, the request never resolved.
  • The Client no longer crashes when rippled sends a WebSocket text message with invalid UTF-8.
  • Transaction validation now rejects a value that is not hex in fields that rippled stores as hex (for example NFTokenID, VaultID, and InvoiceID). Before, any string passed.
  • signLoanSetByCounterparty and combineLoanSetCounterpartySigners now accept a LoanSet whose Account is multisigned. They previously threw Transaction must be first signed by first party. because they only looked for a TxnSignature, so a loan broker with a signer list could not originate a loan.
  • submit and submitAndWait now throw a ValidationError naming CounterpartySignature and signLoanSetByCounterparty when a LoanSet is submitted without the counterparty's signature. rippled rejects such a LoanSet with temBAD_SIGNER and the unrelated message No signer may duplicate account or other signers.
  • LoanSet and VaultCreate validation now rejects the values rippled rejects in preflight, for example a GracePeriod below 60 or a WithdrawalPolicy other than 1. Before, these passed validation and failed on submit.
  • Flags given as an object, such as { tfLoanOverpayment: true }, now work for LoanSet, in Wallet.sign without autofill first, and on the inner transactions of a Batch. Before, these threw an error.
  • Mark the ledger object fields that rippled omits when their value is 0 as optional: MPToken.MPTAmount, LoanBroker.DebtMaximum, the AMM object's TradingFee and the TradingFee and DiscountedFee of its vote and auction slots, and Loan.PaymentRemaining, PrincipalOutstanding, TotalValueOutstanding, NextPaymentDueDate and GracePeriod. Treat a missing field as 0.
  • Add DID, MPToken, NFTokenOffer and NFTokenPage to the LedgerEntry union, and so to AccountObject, and export the PermissionedDomain ledger entry type. account_objects, ledger_entry and ledger_data results of these types could not be narrowed without a cast. These four models now match rippled: MPToken.Account and NFTokenOffer.NFTokenID are added, and fields rippled can omit are optional.
  • signPaymentChannelClaim and verifyPaymentChannelClaim now throw a ValidationError if the amount is negative or above the maximum XRP amount (100 billion XRP). Previously, verifyPaymentChannelClaim returned a boolean for such amounts.

Pull Requests

  • fix: Validate UInt64 and claim amounts, support MPT path hops by @kuan121 in #3633
  • fix: add the missing ledger entry types to the LedgerEntry union by @kuan121 in #3535
  • fix: mark ledger object fields that rippled omits at 0 as optional by @kuan121 in #3534
  • fix: close LoanSet and VaultCreate validation gaps and accept object flags in Wallet.sign by @kuan121 in #3533
  • fix: name the missing CounterpartySignature when a LoanSet is submitted without it by @kuan121 in #3532
  • remove react dev dependency by @Patel-Raj11 in #3155
  • fix: accept a multisigned Account in the LoanSet counterparty helpers by @kuan121 in #3531
  • chore(deps): Q4 package upgrades by @pdp2121 in #3590
  • fix: Validate hex fields as hex strings in transaction models by @mvadari in #3570
  • fix: Handle non-UTF-8 inputs without crashing by @mvadari in #3268
  • refactor: Use existing validation helpers in transaction models by @mvadari in #3566
  • fix: better error handling in connections by @mvadari in #3182
  • docs: name the counterparty/sponsor signing fix and its error in the xrpl 5.2.0 changelog by @kuan121 in #3527
  • fix(connection): block reserved internal event types from server messages by @ckeshava in #3378
  • chores: Update node.js supported versions by @pdp2121 in #3550
  • fix: allow a ConfidentialMPTSend to a holder clawed back earlier in the same Batch by @florent-uzio in #3543
  • fix: require the sponsor of a sponsored inner transaction to sign a Batch by @Platonenkov in #3483
  • fix: allow LastLedgerSequence in inner Batch transactions by @mvadari in #3494
  • fix: use base fee for VaultCreate autofill by @JasonColapietro in #3430
  • xrpl.js package upgrade for 2026 Q3 by @kuan121 in #3461

Full Changelog: https://github.com/XRPLF/xrpl.js/compare/xrpl@5.3.0...xrpl@5.4.0

Don't miss a new xrpl.js release

NewReleases is sending notifications on new releases.