We are pleased to announce the release of ripple-lib
version 1.0.0.
This version features a range of changes and improvements that make the library
more capable and flexible. It includes new methods for accessing rippled APIs,
including subscriptions.
When using this version with rippled
for online functionality, we recommend
using rippled
version 1.0.1 or later.
Here is a summary of the changes since ripple-lib
version 0.22.0, which was
the last non-beta version.
New Features
- Add
request()
,hasNextPage()
, andrequestNextPage()
for accessingrippled
APIs. - Add
prepareTransaction()
for preparing rawtxJSON
. - XRP amounts can be specified in drops. Also,
xrpToDrops()
anddropsToXrp()
are available to make conversions. getTransaction
responses can include a newchannelChanges
property that
describes the details of a payment channel.
Data Validation and Errors
- Amounts in drops and XRP are checked for
validity. - A maximum fee is now
imposed. Exceeding it causes aValidationError
to be
thrown. - Errors are improved and more data validation was added.
- Bug fix:
getPaths
now filters paths correctly and works correctly when the
destination currency is XRP.
Breaking Changes
The following changes were introduced in 1.0.0.
getTransaction()
andgetTransactions()
- The
specification.destination.amount
field has been removed from the parsed transaction response. - To determine the amount that a transaction delivered, use
outcome.deliveredAmount
. - If you require the provisional requested
Amount
from the original transaction:- Use
getTransaction
'sincludeRawTransaction
option, or - Use
getTransactions
'sincludeRawTransactions
option, or - Use the rippled APIs directly with
request
. For example, call the API methodstx
,account_tx
, etc.
- Use
- The
getLedger()
response object- The
rawTransactions
field has been removed (for consistency withgetTransaction()
andgetTransactions()
). - Instead, within each
transaction
, use the newrawTransaction
JSON string. - The
metaData
field has been renamed tometa
for consistency with rippled'stx
method. ledger_index
has been added to each raw transaction.
- The