This SDK enables Java developers to build solutions that interact with BitXHub.
You need to have the following dependencies installed on your machine.
Maven
<dependency>
<groupId>cn.dmlab</groupId>
<artifactId>java-bitxhub-client</artifactId>
<version>v1.4.0-rc3</version>
</dependency>
Gradle
compile group: 'cn.dmlab', name: 'java-bitxhub-client', version: 'v1.4.0-rc3'
- RPC Test: Basic example that uses SDK to query and execute transaction.
- Block Test: Basic example that uses SDK to query blocks.
- Contract Test: Basic example that uses SDK to deploy and invoke contract.
- Subscribe Test: An example that uses SDK to subscribe the block event.
- Sync Test: An example that uses SDK to sync the merkle wrapper.
- Appchain Test: Basic example that uses SDK to register and adult appchain.
SDK documentation can be viewed at JavaDoc.
You should start BitXHub before using SDK.
Obtain the client SDK packages for BitXHub.
git clone https://github.com/meshplus/java-bitxhub-client.git
Run the test
# In the BitXHub SDK Java directory
cd java-bitxhub-client/
# Running test
mvn test
See CONTRIBUTING.md.