client

package
v0.0.0-...-26dab60 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2020 License: Apache-2.0 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 {
	RPC *tmrpc.HTTP
	// contains filtered or unexported fields
}

Client is an rpc connection instance to a tendermint node

func New

func New(clientNode, lcd string) *Client

New returns a tendermint rpc client connection

func (*Client) Block

func (c *Client) Block(h int64) (*core_types.ResultBlock, error)

func (*Client) IsRunning

func (c *Client) IsRunning() bool

IsRunning checks whether the node RPC is connected

func (*Client) Start

func (c *Client) Start() error

Start initiates the node RPC connection

func (*Client) Stop

func (c *Client) Stop()

Stop terminates the node RPC connection

Jump to

Keyboard shortcuts

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