/hs-client-go

Go bindings for hs-client - HSD: http and rpc calls

Primary LanguageGo

The Handshake Alliance API client for hsd.

Documentation

https://godoc.org/github.com/HandshakeAlliance/hs-client-go/pkg

Install

go get -u github.com/HandshakeAlliance/hs-client-go/pkg

Getting started

package main

import (
	"fmt"
	"log"

	hsc "github.com/HandshakeAlliance/hs-client-go/pkg/http"
)

func main() {

    //Your Handshake Node hostname
    hostname := "http://locahost:13037"
    hsClient := hsc.New(hostname)

    info, err := hsClient.Info()

	if err != nil {
		log.Fatal(err)
	}

    fmt.Printf("%v", info)

}

Examples

Check out the ./example directory and documentation.

License

MIT