info_tfgrid/collections/developers/go/grid3_go_load_client.md

678 B

Load Client

Table of Contents


Introduction

We cover how to load client using the Go client.

TFPluginClient Configuration

  • mnemonics
  • keyType: can be ed25519 or sr25519
  • network: can be dev, qa, test or main

Creating Client

Import deployer package to your project:

import "github.com/threefoldtech/tfgrid-sdk-go/grid-client/deployer"

Create new Client:

func main() {
    client, err := deployer.NewTFPluginClient(mnemonics, keyType, network, "", "", "", 0, true)
}