The Java Stellar Sdk library provides APIs to build transactions and connect to Horizon.
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
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 xdrgen
command from the stellar/xdrgen
xdrgen -o ./src/main/java/org/stellar/sdk/xdr -l java -n org.stellar.sdk.xdr ./xdr/Stellar-types.x ./xdr/Stellar-SCP.x ./xdr/Stellar-overlay.x ./xdr/Stellar-ledger-entries.x ./xdr/Stellar-ledger.x ./xdr/Stellar-transaction.x