The OKExChain Java SDK is a lightweight Java library to interact with OKExChain through rest.
- src - the functions which could interact with OKEXChain are contained in class
OKEXChainRPCClientImpl
of packagecom.okexchain.client.impl
. - test - it seems like a set of examples to show how to use the functions mentioned above. The developers could design their code refering to the test functions of class
OKEXChainRPCClientImplTest
in packagecom.okexchain.client
in detail.
There are some function modules in path src
as well :
- env - set environment for Java SDK to interact with OKExChain
- msg - define the message types according to module in OKExChain, and the example is the main function in class Msgxxx not end with "value" or in sample package.
- common - network communications by RPC;
- utils.crypto - related with the account info and address info of OKEXChain;
- utils.encoding - the implementation of go-amino in Java;
git clone https://github.com/okex/okexchain-java-sdk.git
cd okexchain-java-sdk
mvn install -Dmaven.test.skip=true
Find it on the sdk documents
All changes and addition of codes will be pushed with unit tests strictly. Right now you can find existing test cases : github.com/okex/okexchain-java-sdk/src/test
No doubt that it's admirable to make contributions to okexchain Java SDK. You can provide your code as long as you have tested it with a local client, and your unit test showed its validity.
<dependency>
<groupId>io.github.okex</groupId>
<artifactId>okexchain-java-sdk</artifactId>
<version>0.18.4</version>
</dependency>