rpc

package
v0.0.0-...-8dfb25f Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultRPCTimeout = uint(5)
)

Functions

This section is empty.

Types

type Client

type Client struct {
	rpcclient.Client
}

Client wraps RPC client connection.

func NewClient

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

NewClient creates RPC client.

func (*Client) GetNetworkChainID

func (c *Client) GetNetworkChainID(ctx context.Context) (string, error)

GetNetworkChainID returns network chain id.

func (*Client) GetStatus

func (c *Client) GetStatus(ctx context.Context) (*tmctypes.ResultStatus, error)

GetStatus returns the status of the blockchain network.

Jump to

Keyboard shortcuts

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