⚠️ This SDK is deprecated and no longer maintained.The Kotlin Wallet SDK has been discontinued. There is no direct Kotlin/Java successor.
Wallet SDKs remain actively maintained in:
- TypeScript — https://github.com/stellar/typescript-wallet-sdk
- Flutter (Dart) — https://github.com/Soneso/stellar_wallet_flutter_sdk
- Swift — https://github.com/Soneso/stellar-swift-wallet-sdk
If you need to stay on the JVM, you can use the lower-level Java Stellar SDK directly, but you will need to implement SEP protocols (SEP-1/10/12/24/30) yourself.
Kotlin Wallet SDK is a library that allows developers to build wallet applications on the Stellar network faster. It utilizes Java Stellar SDK to communicate with a Stellar Horizon server.
The library is hosted on the Maven Central.
To import wallet-sdk library you need to add following dependencies to your code:
Maven:
<dependency>
<groupId>org.stellar</groupId>
<artifactId>wallet-sdk</artifactId>
<version>3.0.0</version>
</dependency>
Gradle (Kotlin):
implementation("org.stellar:wallet-sdk:3.0.0")Gradle (Groovy):
implementation 'org.stellar:wallet-sdk:3.0.0'
Here's a small example creating main wallet class with default configuration connected to testnet network:
val wallet = Wallet(StellarConfiguration.Testnet)It should later be re-used across the code, as it has access to various useful children classes. For example, new key pair can be created using it.
val newKeyPair = wallet.stellar().account().createKeyPair()Read full wallet guide for more info
You can find auto-generated documentation website on javadoc.io