Go v1.19+ or higher is required for the GotaBit Golang SDK.
-
Install Go 1.19+ from the official site. Ensure that your
GOPATH
andGOBIN
environment variables are properly set up by using the following commands:For Linux:
wget <https://golang.org/dl/go1.19.12.linux-arm64.tar.gz> sudo tar -C /usr/local -xzf go1.19.12.linux-arm64.tar.gz export PATH=$PATH:/usr/local/go/bin export PATH=$PATH:$(go env GOPATH)/bin
For Mac:
export PATH=$PATH:/usr/local/go/bin export PATH=$PATH:$(go env GOPATH)/bin
-
Confirm your Go installation by checking the version:
go version
Clone the repository locally and install needed dependencies
git clone [email protected]:hjcore/sdk-go.git
cd sdk-go
go install ./...
Check the documentation to get you started!
# run chain example
CC=clang go run examples/chain/1_MsgSend/example.go
# run stake example
CC=clang go run examples/chain/4_Stake/example.go
We have active, helpful communities on Twitter, Discord, and Telegram.
For updates on the GotaBit team's activities follow us on the GotaBit Twitter account.
This software is licensed under the Apache 2.0 license.
© 2023 GotaBit Limited