Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 1.02 KB

File metadata and controls

48 lines (31 loc) · 1.02 KB

Liteclient module

Java Lite-client wrapper uses JNA to access methods in the native lite-client binary.

Maven Maven Central

<dependency>
    <groupId>org.ton.ton4j</groupId>
    <artifactId>lite-client</artifactId>
    <version>2.0.0</version>
</dependency>

Jitpack

<dependency>
    <groupId>org.ton.ton4j</groupId>
    <artifactId>lite-client</artifactId>
    <version>2.0.0</version>
</dependency>

Usage

LiteClient liteClient = LiteClient.builder()
    .pathToLiteClientBinary(Utils.getLiteClientGithubUrl())
    .testnet(true)
    .build();

String stdout = liteClient.executeLast();

More examples in LiteClientTest class.