The Java Stellar Sdk library provides APIs to build transactions and connect to Horizon and Soroban-RPC Server.
Use jitpack.io's Maven repository:
repositories {
maven { url "https://jitpack.io" }
}
dependencies {
implementation 'com.github.stellar:java-stellar-sdk:{version}'
}
The list of versions to install can be found in the Releases section. More information can be found in jitpack.io docs.
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://stellar.github.io/java-stellar-sdk
If you want to integrate this SDK on Android platforms with API level 26 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.
All the java source files in org.stellar.sdk.xdr
package are generated using the following command:
make xdr-update