_images/laptop.png

SDKs

Uplink ledger is compiled into a single executable binary that is run as a service on stock Linux. Interactions and applications can use the ledger from any existing application by importing one of the provided SDK for other languages such as Java.

These SDKs can communicate with the Uplink service over the RPC protocol to create accounts, query ledger state, issue assets, and interact with smart contracts.

Java

Source code and detailed examples for usage can be found on Adjoint Java SDK on Github.

To install the Java SDK, one option is to download the JAR as a binary and import it to the project.

If Maven is preferred, add the following to the project’s pom.xml.

<dependencies>
  <dependency>
    <groupId>com.uplink</groupId>
    <artifactId>uplink-sdk-java</artifactId>
    <version>0.1</version>
  </dependency>
</dependencies>

To incorporate the library in a Java project import com.uplink.

import com.uplink;

public class UplinkTest{
  public static void main(String arg[]){

    // Uplink Example

  }
}

Python

Source code and detailed examples for usage can be found on Adjoint Python SDK on Github.

To install the Python SDK run:

$ git clone git@github.com:adjoint-io/uplink-sdk-python.git
$ python setup.py install

Create an instance of UplinkJsonRpc client and connect directly to the Uplink ledger to query data such as getting available blocks, peers, accounts, assets, contracts.

from uplink import *

rpc = UplinkJsonRpc(host="localhost", port=8545, tls=False)

rpc.uplink_blocks()
rpc.uplink_peers()
rpc.uplink_accounts()

Source Code

The full Uplink source is released publicly under an Apache license and can be built from source code by following the directions at. This is only recommended for advanced users and using the provided precompiled executable and installers is the recommended install method. The source code can be found here.