Get Started
Prerequisites
Go Binaries
Installation instructions for Go can be found here.
Installation
Clone the gosdk repo
git clone https://github.com/0chain/gosdk.gitSave below code as
sdkversion.goin thegosdkdirectory.
package main
import (
"fmt"
"github.com/0chain/gosdk/zcncore"
)
func main() {
fmt.Println("gosdk version: ", zcncore.GetVersion())
}Run the below command to download the gosdk package: (if you don't have gosdk already in your GOPATH)
Build the sample application sdkversion using the command below
Run the executable
If it prints the gosdk version installed then you have successfully installed 0chain gosdk.
Sample Response:
Last updated