Skip to content

meshplus/java-bitxhub-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Bitxhub Client

build codecov

This SDK enables Java developers to build solutions that interact with BitXHub.

Prepare

You need to have the following dependencies installed on your machine.

Get started

Install

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'

Examples

  • 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.

Documentation

SDK documentation can be viewed at JavaDoc.

Client SDK

You should start BitXHub before using SDK.

Run the test

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

Contributing

See CONTRIBUTING.md.

License

Apache-2.0