Lightning Dev Kit Android Demo Wallet
This project uses a .aar package for the Android platforms that provide language bindings for LDK. The Kotlin language bindings are created by the ldk-garbagecollected project and the latest release can be found here.
To setup a local regtest development environment check out this blog post by thunderbiscuit.
To include the LDK Kotlin bindings in an Android project download the latest binary from here
and place it in your libs
directory.
Then add to your build.gradle
file:
dependencies {
// ...
implementation fileTree(include: ['*.aar'], dir: 'libs')
// ...
}
You may then import and use the org.ldk
library in your Kotlin code. For example:
import org.ldk.structs.*
Note: i686 builds are not included in aars in order to preserve space - there are builds for x86_64, so make sure to install a compatible emulator
- On-chain BDK Wallet
- Connect to a peer
- List peers
- Get Node ID
- Open Channel
- List Channels
- Send payment
- Receive payment
- Close channel