/sequence-sdk-java

[mirror] Sequence Java SDK

Primary LanguageJavaApache License 2.0Apache-2.0

Sequence Java SDK

Usage

Get the jar

The Sequence SDK is available via maven. Java 8, 9, and 10 are supported.

Add the following to your pom.xml:

<dependency>
  <groupId>com.seq</groupId>
  <artifactId>sequence-sdk</artifactId>
  <version>[2.2,3)</version>
</dependency>

In your code

import com.seq.api.*;
import com.seq.http.*;
import com.seq.exception.*;
...

Client ledger =
    new Client.Builder()
        .setLedgerName("my-ledger")
        .setCredential("...")
        .build();

Documentation

Comprehensive instructions and examples are available in the developer documentation.