client

package
v0.0.0-...-017134c Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigWrapper

type ConfigWrapper struct {
	Codec *codec.Codec
	// contains filtered or unexported fields
}

ConfigWrapper implements a wrapper around both a Tendermint RPC client and a Cosmos SDK REST client that allows for essential data queries.

func New

func New(rpcEndpoint, lcdEndpoint string) (ConfigWrapper, error)

New creates a new ConfigWrapper

func (ConfigWrapper) LatestHeight

func (cw ConfigWrapper) LatestHeight() (int64, error)

LatestHeight returns the latest block height on the active chain. An error is returned if the query fails.

func (ConfigWrapper) Stop

func (cw ConfigWrapper) Stop() error

Stop defers the node stop execution to the RPC client.

Jump to

Keyboard shortcuts

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