Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 1.09 KB

README.md

File metadata and controls

49 lines (32 loc) · 1.09 KB

Liteclient module

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

Maven Maven Central

<dependency>
    <groupId>io.github.neodix42</groupId>
    <artifactId>lite-client</artifactId>
    <version>0.4.7</version>
</dependency>

Jitpack

<dependency>
    <groupId>io.github.neodix42.ton4j</groupId>
    <artifactId>lite-client</artifactId>
    <version>0.4.7</version>
</dependency>

Simply usage

LiteClient liteClient=LiteClient.builder()
        .pathToLiteClientBinary(pathToLiteClient)
        .testnet(true)
        .pathToGlobalConfig(pathToGlobalConfig)
        .build();

        String stdout=liteClient.executeLast();

More examples in LiteClientTest class.