sdk-go

module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2021 License: MIT

README

SkillZ logo

Description

SkillZ GO SDK makes it easy to use SkillZ API in your GoLang applications.

Installation

You can install the GO SDK with go get:

go install https://github.com/skillz-blockchain/sdk-go

Example

package example

import (
	"encoding/base64"
	"fmt"
	"github.com/skillz-blockchain/sdk-go/skillz"
	"os"
)

func example() {
	c, _ := skillz.NewClient(os.Getenv("SKILLZ_API_TOKEN"), skillz.ConfigPrater)

	keystore := base64.StdEncoding.EncodeToString([]byte(os.Getenv("KEYSTORE")))

	validator, _ := c.Validator.Deploy(keystore, os.Getenv("PASSWORD"))
	fmt.Printf("validator %s is deployed !", validator.PublicKey)
} 

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL