Add transaction hash to ledger command response (#2717)

* add transaction hash to ledger command response

* Update packages/xrpl/src/models/ledger/Ledger.ts

* Update HISTORY.md

* delete unnesessary space
This commit is contained in:
tequ
2024-07-12 22:57:24 +09:00
committed by GitHub
parent 00f1a6bcdd
commit c9ef96e0a2
2 changed files with 7 additions and 1 deletions

View File

@@ -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)

View File

@@ -56,7 +56,12 @@ interface BaseLedger {
* either JSON or binary depending on whether the request specified binary
* as true.
*/
transactions?: Array<Transaction & { metaData?: TransactionMetadata }>
transactions?: Array<
Transaction & {
hash: string
metaData?: TransactionMetadata
}
>
}
/**