client

package
v0.0.0-...-923522b Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: MIT Imports: 9 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 {
	NetworkClient    pactus.NetworkClient
	BlockchainClient pactus.BlockchainClient
	Conn             *grpc.ClientConn
}

func NewClient

func NewClient(endpoint string) (*Client, error)

func (*Client) Close

func (c *Client) Close() error

func (*Client) GetNetworkInfo

func (c *Client) GetNetworkInfo() (*pactus.GetNetworkInfoResponse, error)

func (*Client) GetPeerInfo

func (c *Client) GetPeerInfo(address string) (*pactus.PeerInfo, *bls.PublicKey, error)

func (*Client) GetValidatorInfo

func (c *Client) GetValidatorInfo(address string) (*pactus.GetValidatorResponse, error)

Jump to

Keyboard shortcuts

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