client

package
v0.2.0-beta Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: MIT Imports: 3 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
	TransactionClient pactus.TransactionClient
	Conn              *grpc.ClientConn
}

Client is a gRPC client of Pactus Blockchain for transactions, blockchain and network.

func NewClient

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

NewClient get a RPC url as input and returns a Client.

func (*Client) Close

func (c *Client) Close() error

Close will close the connection to RPC node.

Jump to

Keyboard shortcuts

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