Skip to content

Appkit

Appkit: A Library for Polyglot Development of Ergo Applications has an idiomatic Java API and is written in Java/Scala. It is a thin wrapper around core components provided by the ErgoScript interpreter and Ergo protocol implementations which are written in Scala. It is published on maven repository and cross-compiled to both Java 7 and Java 8+ jars.

AppKit provides methods for the following:

  • Fetch data from Ergo Explorer API
  • Interact with Ergo Node, both public and private methods
  • Build transactions and sign them
  • Helper methods to handle cryptographic like calculating PK addresses from secrets

Using Appkit, Ergo applications can be written in one of the languages supported by GraalVM (i.e. Java, JavaScript, C/C++, Python, Ruby, R) and using this library, applications can communicate with Ergo nodes via unified API and programming model provided by Appkit. In addition, Appkit based Ergo applications can be compiled into native code using native-image ahead of time compiler and then executed without Java VM with very fast startup time and lower runtime memory overhead compared to a Java VM. This is an attractive option for high-performance, low-latency microservices.

Tutorials

Videos

Code examples

How-to Guides

  • Ergo Android application that demonstrates how Ergo Appkit can be used to develop Ergo applications running on Android.

References