diff --git a/packages/xrpl/HISTORY.md b/packages/xrpl/HISTORY.md index 0207cfedb1..e2f82b4337 100644 --- a/packages/xrpl/HISTORY.md +++ b/packages/xrpl/HISTORY.md @@ -12,6 +12,7 @@ Subscribe to [the **xrpl-announce** mailing list](https://groups.google.com/g/xr * Add `nfts_by_issuer` clio-only API definition * Support for the `fixPreviousTxnID` amendment. * Support for the user version of the `feature` RPC. +* Add `hash` field to `ledger` command response ## 3.1.0 (2024-06-03) diff --git a/packages/xrpl/src/models/ledger/Ledger.ts b/packages/xrpl/src/models/ledger/Ledger.ts index bcff437391..a43701732b 100644 --- a/packages/xrpl/src/models/ledger/Ledger.ts +++ b/packages/xrpl/src/models/ledger/Ledger.ts @@ -56,7 +56,12 @@ interface BaseLedger { * either JSON or binary depending on whether the request specified binary * as true. */ - transactions?: Array + transactions?: Array< + Transaction & { + hash: string + metaData?: TransactionMetadata + } + > } /**