github stellar/stellar-rpc v23.0.0

latest releases: v25.0.0, rpcclient-v24.0.0, v24.0.0...
4 months ago

v23.0.0: Protocol 23 Release

Breaking Changes

  • Support for Protocol 23, notably TransactionMetaV4 and LedgerCloseMetaV2, see stellar-xdr@v23.0 for the full protocol schema.
  • The getLedgerEntry endpoint has been removed. This endpoint was already deprecated earlier in favor of getLedgerEntries and is completely removed in this release.
  • The pagingToken field of getEvents results has been removed, use the id field for individual events or cursor at the top level for pagination (#382).
  • The snake_cased fields of getVersionInfo have been removed (commit_hash, etc.); prefer the camelCased versions (#382).
  • Diagnostic events will no longer be present in the getEvents stream (#4590).

Deprecations

  • The inSuccessfulContractCall field of getEvents is now deprecated and will be removed in the next version (#4590).

Added

  • You can now use an external datastore as a source for getLedgers (#437).
  • Transactions that have expired footprints will now auto-restore in their simulation result (#463).
  • Added a top-level "events" structure to the getTransaction and getTransactions endpoint which breaks down events into disjoint contractEvents[Xdr|Json] and transactionEvents[Xdr|Json] (#455).
  • Added "**" wildcard to the getEvents endpoint, enabling flexible topic matching without manual padding. For example, ["X", "**"] filter matches events with "X" as the first topic followed by any number of topics. The wildcard can be used only as the last or only topic (#419).
  • Added a field to getLedgerEntries results, the extension[Xdr|Json] field representing the LedgerEntry's extension (#388).
  • Added support for non-root authorization to simulateTransaction with a new, optional parameter authMode which can be enforce, record, and record_allow_nonroot (#432).
  • getEvents now includes an opIndex for each event (#383).
  • Added missing ledger range fields to getEvents, namely oldestLedger, latestLedgerCloseTime, and oldestLedgerCloseTime to correspond to all other endpoints (#409).
  • getLedgerEntries now uses RPC's internal Captive Core's high-performance HTTP server rather than storing entries locally in sqlite (#353).

Fixed

  • Event topic filters can now serialize and deserialize correctly (#427, #449).
  • Fixed a potential scenario where getLedgers would crash with invalid parameters (#407).
  • Various scenarios where memory could leak have been fixed (#474, #472).
  • The simulation library behind simulateTransaction has been updated to Protocol 23 (#484).

Contributors

Full Changelog: v22.1.5...v23.0.0

Don't miss a new stellar-rpc release

NewReleases is sending notifications on new releases.