JiahuiWho / kotlin-wallet-sdk

Kotlin Wallet SDK to build Stellar wallets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kotlin Wallet SDK javadoc Maven Central

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.

Dependency

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>1.0.0</version>
</dependency>

Gradle:

implementation("org.stellar:wallet-sdk:1.0.0")

Introduction

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

About

Kotlin Wallet SDK to build Stellar wallets

License:Apache License 2.0


Languages

Language:Kotlin 100.0%