Obyte.kt Examples

Examples for the Kotlin based Obyte client library

Simple

A very basic example of how to listen on Obyte events and send simple requests

  • Connects to Obyte testnet
  • Retrieves witness lists
  • Retrieves the details of a unit
  • Receives other events such as exchange rates
  • Implemented in Kotlin-JS

See live example

Wallet

A simplified web wallet capable of listing balances, sending byte and asset payments

  • Connects to Obyte testnet
  • Generates simple wallet with private key and public key
  • Subscribes to events for the generated wallet address
  • Displays wallet balances
  • Makes byte and asset payments
  • Implemented in Kotlin-JS and React

See live example

Gift Cards

A simple gift card creator that creates single use gift cards

  • Connects to Obyte testnet
  • Generates random Gift Card wallets
  • Loads Gift Cards with a gift asset and some bytes enough to spend once
  • Tracks Gift Card balances
  • Makes payments out of Gift Card wallet
  • Implemented in Kotlin-JS and React

See live example