Ripple Labs Announces Lib v 1.0.0 Acting As An Interface To The XRP Ledger
Calling all developers! The Ripple dev team working with external contributors just released ripple-lib 1.0 an open source API for building on top of the XRP Ledger. https://t.co/UvjlXrYmbS
— Ripple (@Ripple) September 11, 2018
The new version provides different features that are explained in the official document. With this update, the library will be more flexible and have a better performance. This library holds new methods that provide access to rippled APIs. In order to enable online functionality, the blog recommends to use ripple v 1.0.1.
The latest release includes new methods such as the following:
- Three new methods [request(), hasNextPage(), requestNextPage()] have been added.
- A prepareTransacion() method has also been added to prepare a raw txJSON element.
- The version will allow XRP amounts to be specified in drops. There are two conversion methods xrpToDrops() and dropsToXRP().
- A new getTransaction() method has been added that includes a property by name channelChanges which will provide details of a particular payment channel.
Additionally, the document informs the data validations and error fixes that the team has been working on. Moreover, the team has also imposed a maximum fee limit that if exceeded will cause the library to throw a ValidationError.
The document explains that Ripple Lab’s team worked on several errors, allowing for more data validation functionalities to be added to the library. One of the main problems that the team faced was related with the getPaths property. However, it has now been corrected.
Those who want to know more can check the documentation about ripple-lib which available on the XRP Ledger Dev Portal.
Nick Bougalis, lead of C++ dev team at Ripple was able to answer some questions about the latest developments. When asked about the fee limit and possible transaction rollback, he said that the library has a configurable ‘maximum fee limit.’ This can prevent programmers to specify a very high fee. At the moment, the fee is set at 2 XRP. However, this is several times more than the fee required to send a transaction.