Obyte.kt is a multi-platform Kotlin library to communicate with hub nodes in the Obyte cryptocurrency network.
The examples in this project will connect to the Obyte testnet.
See live demo page
You have to build Obyte.kt library first and publish it into your local maven repository:
git clone https://github.com/pmiklos/obyte.kt.git
cd obyte.kt
git checkout 0.4.1
./gradlew publishToMavenLocal
Check if the libraries are successfully installed:
ls ~/.m2/repository/app/obyte/client/
To run the JVM examples:
- simple - a very basic example of how to listen on Obyte events and send simple requests
- oracle - a simple oracle that posts random numbers to the DAG
./gradlew jvm:simple:run
./gradlew --console plain jvm:oracle:run
There are multiple Javascript examples you can run:
- simple - a very basic example of how to listen on Obyte events and send simple requests
- wallet - a simplified web wallet capable of listing balances, sending byte and asset payments
- giftcard - a simple gift card creator and single use gift card wallet
./gradlew js:simple:run
./gradlew js:wallet:run
./gradlew js:giftcard:run
This will start webpack and open the default browser with the application. To see what is going on under the hood, open the browser developer console.