rpc

package
v0.0.0-...-539a74e Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: Apache-2.0 Imports: 5 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 {
	rpcclient.Client
}

Client wraps RPC client connection.

func NewClient

func NewClient(rpcURL string, timeout int64) (*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