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-codecto 2.11.1. - Allow
LastLedgerSequencein innerBatchtransactions, to match rippled. signMultiBatchnow accepts theSponsorof a sponsored inner transaction as a required signer. rippled'sBatch::preflightrequires aBatchSignersentry from the sponsor of any inner transaction carrying aSponsorSignatureplaceholder, and rejects the Batch withtemBAD_SIGNERwithout it.- A request now rejects with a
RippledErrorwhen rippled replies with anerrormessage (for examplejsonInvalid). Before, the request never resolved. - The
Clientno 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, andInvoiceID). Before, any string passed. signLoanSetByCounterpartyandcombineLoanSetCounterpartySignersnow accept aLoanSetwhoseAccountis multisigned. They previously threwTransaction must be first signed by first party.because they only looked for aTxnSignature, so a loan broker with a signer list could not originate a loan.submitandsubmitAndWaitnow throw aValidationErrornamingCounterpartySignatureandsignLoanSetByCounterpartywhen aLoanSetis submitted without the counterparty's signature. rippled rejects such a LoanSet withtemBAD_SIGNERand the unrelated messageNo signer may duplicate account or other signers.LoanSetandVaultCreatevalidation now rejects the values rippled rejects in preflight, for example aGracePeriodbelow 60 or aWithdrawalPolicyother than 1. Before, these passed validation and failed on submit.- Flags given as an object, such as
{ tfLoanOverpayment: true }, now work forLoanSet, inWallet.signwithoutautofillfirst, and on the inner transactions of aBatch. Before, these threw an error. - Mark the ledger object fields that rippled omits when their value is 0 as optional:
MPToken.MPTAmount,LoanBroker.DebtMaximum, theAMMobject'sTradingFeeand theTradingFeeandDiscountedFeeof its vote and auction slots, andLoan.PaymentRemaining,PrincipalOutstanding,TotalValueOutstanding,NextPaymentDueDateandGracePeriod. Treat a missing field as 0. - Add
DID,MPToken,NFTokenOfferandNFTokenPageto theLedgerEntryunion, and so toAccountObject, and export thePermissionedDomainledger entry type.account_objects,ledger_entryandledger_dataresults of these types could not be narrowed without a cast. These four models now match rippled:MPToken.AccountandNFTokenOffer.NFTokenIDare added, and fields rippled can omit are optional. signPaymentChannelClaimandverifyPaymentChannelClaimnow throw aValidationErrorif the amount is negative or above the maximum XRP amount (100 billion XRP). Previously,verifyPaymentChannelClaimreturned 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