# Golang SDK

Golang SDK can create a client to get data from chain, include module:

type QLCClient struct {
	Account  *module.AccountApi
	Contract *module.ContractApi
	Ledger   *module.LedgerApi
	Mintage  *module.MintageApi
	Network  *module.NetApi
	Util     *module.UtilApi
} 

use as:

func main(){
    c, err := NewQLCClient("http://127.0.0.1:9735")
	if err != nil {
		return err
	}
	defer c.client.Close()
	r, err := c.Ledger.BlocksCount()
	if err != nil {
		return err
	}
	fmt.Println(r)
}