Skip to content

meshplus/go-bitxhub-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Bitxhub Client

build codecov Go Report Card

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

Getting started

Obtain the client SDK packages for BitXHub.

go get github.com/meshplus/go-bitxhub-client

You're good to go, happy coding! Check out the examples for usage demonstrations.

Documentation

SDK documentation can be viewed at GoDoc.

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.

Client SDK

You should start BitXHub before using SDK.

Running the test

Obtain the client SDK packages for BitXHub.

git clone https://github.com/meshplus/go-bitxhub-client.git
# In the BitXHub SDK Go directory
cd go-bitxhub-client/

# make depend
go mod tidy

# Running test
make test

Contributing

See CONTRIBUTING.md.

License

Apache-2.0