client

package
v0.0.0-...-7c8ce1f Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: Apache-2.0 Imports: 17 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 {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(cfg config.NodeConfig) *Client

NewClient creates a new Client with the given config.

func (Client) GetBlock

func (c Client) GetBlock(height int64) (*tmctypes.ResultBlock, error)

GetBlock queries for a block by height. An error is returned if the query fails.

func (Client) GetLatestBlockHeight

func (c Client) GetLatestBlockHeight() (int64, error)

GetLatestBlockHeight returns the latest block height on the active chain.

func (Client) GetTxs

func (c Client) GetTxs(block *tmctypes.ResultBlock) ([]*ctypes.ResultTx, error)

GetTxs queries for all the transactions in a block height. It uses `Tx` RPC method to query for the transaction.

func (Client) GetValidatorSet

func (c Client) GetValidatorSet(height int64) (*tmctypes.ResultValidators, error)

GetValidatorSet returns all the known Tendermint validators for a given block height. An error is returned if the query fails.

func (Client) GetValidators

func (c Client) GetValidators() ([]*types.Validator, error)

GetValidators returns validators detail information in Tendemrint validators in active chain An error returns if the query fails.

func (Client) JSONMarshaler

func (c Client) JSONMarshaler() codec.JSONCodec

func (Client) Marshaler

func (c Client) Marshaler() codectypes.InterfaceRegistry

func (Client) TxDecoder

func (c Client) TxDecoder() sdk.TxDecoder

Jump to

Keyboard shortcuts

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