by Team RippleX
xrpl.js will continue to support all ripple-lib features, such as:
- Serializing, signing, and submitting transactions to the XRPL
- Retrieving information from the XRPL
- Helpful utility functions (such as converting between drops and XRP)
- Support for Node.js, web browsers, and React
It also introduces a number of new features, including:
- TypeScript types for all transaction types and WebSocket requests
- A Wallet class to make it easier to work with key pairs
- Protections against the partial payment attack vector
- An additional submit implementation that returns the transaction's final outcome after validation.
In version 2.0, the library is now much more aligned with the core XRP Ledger interface. This means XRPL developers—whether new or experienced—can refer to multiple sources of documentation instead of needing to rely solely on the library-specific documentation. There are also a number of general architecture improvements, such as simplifying code, making user interfaces more intuitive (especially in relation to the core ledger), and revamping the testing structure. For a detailed list of changes, visit the changelog.
If you already have a project that uses ripple-lib, migrate today! We have a migration guide for moving your code from ripple-lib v1.10 to xrpl.js v2.0.
We hope you enjoy building the Internet of Value, and feel welcome to reach out to the XRP Ledger developer community if you have any questions!