/go-bitxhub-client

Primary LanguageGoApache License 2.0Apache-2.0

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