RippleX Dev Kit
Note:: RippleX was formerly known as Xpring. Some URLs and domain names continue to refer to Xpring. PayString was formerly known as PayID.
RippleX is a solution for developers who want straightforward access to the capabilities of the XRP Ledger, regardless of their knowledge of, or comfort with, cryptography and distributed systems. You can build apps using your preferred language. With RippleX, your app can be used to transact value around the world, regardless of payment size, borders, or the platform you use to build your app.
RippleX Dev Kit delivers the most common features of the XRP ecosystem in an easy to use package. RippleX Dev Kit is the foundation for the RippleX developer site and will also power future RippleX services.
When you use RippleX Dev Kit together with the XRP Ledger protocols, you can:
- Check an account balance
- Make XRP payments
- Determine transaction status
- Generate or derive a wallet, whether seed-based or hierarchically deterministic
- Validate an address
- Obtain payment history
When you use RippleX Dev Kit together with Interledger protocols, you can:
- Send payments
- Check account balance
RippleX Dev Kit supports these capabilities across the following languages:
All of these features use a common code base, which ensures that RippleX delivers features across all supported languages simultaneously. In practice, this means that an iOS engineer who is integrating RippleX Dev Kit into their app can explain how to use the APIs to their peer Android engineer.
Getting started with RippleX
Try the Getting Started tutorial to work with some simple functions of RippleX.
RippleX Dev Kit achieves cross-platform consistency with pragmatic code reuse. At a high level, you can break most multi-platform SDKs, including RippleX Dev Kit, into three components:
- Networking and Remote Procedure Calls (RPCs)
- Common core functionality
- A public API that connects these features together in an idiomatic API
Any client-side library needs a reliable way to communicate with a remote service. In the case of RippleX Dev Kit, a client-side library connects to a remote XRP Ledger node which serves data about the state of the XRP Ledger across the distributed system.
Without RippleX Dev Kit, each XRP Ledger server uses a JSON API to communicate and interact with the node. This API has no preconfigured bindings in any language, requiring developers of client libraries to interact with the node by hand-rolling their own untyped JSON objects in their language of choice.
RippleX uses gRPC, which is a cross-platform technology used to define an API using a lightweight markup language. The markup language is then “compiled” to generate code in a number of native languages. The generated code builds request and response objects for the client which are type-safe and human-readable. gRPC also provides built-in connection management and error handling, and gRPC uses an on-wire format that outperforms JSON in both serialization time and payload size.
With gRPC in the RippleX technology stack, the RippleX team writes code once in order to generate a networking API layer that behaves consistently in every language supported across the RippleX stack. To a
rippled server for use with gRPC, refer to Configure gRPC .
Common core functionality
The XRP ecosystem has some common use cases which use a common core of logic. Some examples include:
- Address derivation and validation
- Serializing transactions to a binary format
- Base58 Check Encoding
These sorts of functions are not easy to write or maintain, and now you can outsource this work to the RippleX Dev Kit.
Take a look at the common core library in RippleX Dev Kit.
RippleX Dev Kit binds a common set of core functions and a generated network layer together.
On the importance of modularity
RippleX Dev Kit is built with modularity in mind. Thus, unsupported platforms have a baseline level of support, and third-party developers can make make meaningful contributions to the XRP ecosystem by wrapping up RippleX's open source components.
For example, a developer might be interested in using Python to integrate the XRP Ledger with their exchange. When provided with a gRPC representation of the network interface, this developer can immediately gain access to any network calls they'd like to use. This developer can then wrap up the core library and leverage RippleX Dev Kit's existing code.
With modularity, it’s easy to swap out components and future-proof the RippleX platform. If the RippleX team changes the language that the core code is written in, that will not affect the public API. If the RippleX team decided to use a different networking technology than gRPC, again this change would not affect the public API.
Towards the future
The RippleX team is planning to support more features of the XRP Ledger, to increase the number of languages covered by RippleX Dev Kit, and to cover additional services like cross-currency payments and the digital identity system that the Interledger Protocol provides.