An open API service indexing awesome lists of open source software.

https://github.com/stellar/kotlin-wallet-sdk

Kotlin Wallet SDK to build Stellar wallets
https://github.com/stellar/kotlin-wallet-sdk

blockchain cryptocurrency kotlin sdk stellar

Last synced: about 2 months ago
JSON representation

Kotlin Wallet SDK to build Stellar wallets

Awesome Lists containing this project

README

          

> ⚠️ **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](https://github.com/stellar/java-stellar-sdk) directly, but you will need to implement SEP protocols (SEP-1/10/12/24/30) yourself.

---

# Kotlin Wallet SDK [![javadoc](https://javadoc.io/badge2/org.stellar/wallet-sdk/dokka.svg?logo=kotlin)](https://javadoc.io/doc/org.stellar/wallet-sdk) [![Maven Central](https://img.shields.io/maven-central/v/org.stellar/wallet-sdk?color=success&logo=apache-maven)](https://central.sonatype.com/search?q=pkg%253Amaven%252Forg.stellar%252Fwallet-sdk&namespace=org.stellar)

Kotlin Wallet SDK is a library that allows developers to build wallet applications on the Stellar network faster. It
utilizes [Java Stellar SDK](https://github.com/stellar/java-stellar-sdk) to communicate with a Stellar Horizon server.

## Dependency

The library is hosted on the [Maven Central](https://central.sonatype.com/artifact/org.stellar/wallet-sdk).
To import `wallet-sdk` library you need to add following dependencies to your code:

Maven:

```pom

org.stellar
wallet-sdk
3.0.0

```

Gradle (Kotlin):

```gradle
implementation("org.stellar:wallet-sdk:3.0.0")
```

Gradle (Groovy):
```gradle
implementation 'org.stellar:wallet-sdk:3.0.0'

```
## Introduction

Here's a small example creating main wallet class with default configuration connected to testnet network:

```kotlin
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.

```kotlin
val newKeyPair = wallet.stellar().account().createKeyPair()
```

Read [full wallet guide](https://developers.stellar.org/docs/category/build-a-wallet-with-the-wallet-sdk) for more info

You can find auto-generated documentation website on [javadoc.io](https://javadoc.io/doc/org.stellar/wallet-sdk)