The Java Stellar SDK library provides APIs to build transactions and connect to Horizon and Soroban-RPC Server.
<dependency>
<groupId>network.lightsail</groupId>
<artifactId>stellar-sdk</artifactId>
<version>0.44.1</version>
</dependency>
implementation 'network.lightsail:stellar-sdk:0.44.1'
You can find instructions on how to install this dependency using alternative package managers here.
Download the latest jar from the GitHub repo's releases tab. Add the jar
package to your project according to how your environment is set up.
For some examples on how to use this library, take a look at the Get Started docs in the developers site.
Javadoc is available at https://javadoc.io/doc/network.lightsail/stellar-sdk
This repository contains a number of helpful examples. You can find them in the examples directory.
If you want to integrate this SDK on Android platforms with API level 28 and above, you don't need any additional configuration. However, if you need to include it on lower platforms, you may also need to add the Java Stellar SDK Android SPI.
For information on how to contribute, please refer to our contribution guide.
java-stellar-sdk is licensed under an Apache-2.0 license. See the LICENSE file for details.