Help us shape the future of Go! Take the 2026 Go Developer Survey

client

package
v1.3.9 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	ShardID      uint32               // ShardID
	UpdateBlocks func([]*types.Block) // Closure function used to sync new block with the leader. Once the leader finishes the consensus on a new block, it will send it to the clients. Clients use this method to update their blockchain
	// contains filtered or unexported fields
}

Client represents a node (e.g. a wallet) which sends transactions and receives responses from the harmony network

func NewClient

func NewClient(host p2p.Host, shardID uint32) *Client

NewClient creates a new Client

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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