tendermint

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2021 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 Block

type Block = tmtypes.Block

nolint

type Client

type Client struct {
	rpcclient.Client
}

Client client for tendermint

func (Client) QueryBlock

func (c Client) QueryBlock(height int64) (pBlock *ResultBlock, err error)

QueryBlock gets the block info of a specific height query the latest block with height 0 input

func (Client) QueryBlockByHash added in v0.0.3

func (c Client) QueryBlockByHash(hashHexStr string) (pBlock *ResultBlock, err error)

QueryBlockByHash get the abci result of the block by hash

func (Client) QueryBlockResults

func (c Client) QueryBlockResults(height int64) (pBlockResults *ResultBlockResults, err error)

QueryBlockResults gets the abci result of the block on a specific height query the latest block with height 0 input

func (Client) QueryCommitResult added in v0.0.3

func (c Client) QueryCommitResult(height int64) (pCommitResult *ResultCommit, err error)

QueryCommitResult gets the commit info of the block on a specific height query the latest block with height 0 input

func (Client) QueryStatus

func (c Client) QueryStatus() (pStatus *ResultStatus, err error)

QueryStatus gets the blockchain info

func (Client) QueryTxResult added in v0.0.3

func (c Client) QueryTxResult(hashHexStr string, prove bool) (pResultTx *ResultTx, err error)

QueryTxResult gets the detail info of a tx with its tx hash

func (Client) QueryValidatorsResult added in v0.0.3

func (c Client) QueryValidatorsResult(height int64) (pValsResult *ResultValidators, err error)

QueryValidatorsResult gets the validators info on a specific height query the latest block with height 0 input

type ClientService

type ClientService interface {
	QueryStatus() (pStatus *ResultStatus, err error)
	QueryBlock(height int64) (*ResultBlock, error)
	QueryBlockResults(height int64) (*ResultBlockResults, error)
	QueryBlockByHash(hashHexStr string) (*ResultBlock, error)
	QueryTxResult(hashHexStr string, prove bool) (pResultTx *ResultTx, err error)
	QueryValidatorsResult(height int64) (pValsResult *ResultValidators, err error)
	QueryCommitResult(height int64) (pCommitResult *ResultCommit, err error)
}

ClientService the interface of tendermint client

func NewClient

func NewClient(rpc rpcclient.Client) ClientService

NewClient new tendermint client

type ResultBlock added in v0.0.5

type ResultBlock = ctypes.ResultBlock

nolint

type ResultBlockResults

type ResultBlockResults = ctypes.ResultBlockResults

nolint

type ResultCommit

type ResultCommit = ctypes.ResultCommit

nolint

type ResultStatus

type ResultStatus = ctypes.ResultStatus

nolint

type ResultTx

type ResultTx = ctypes.ResultTx

nolint

type ResultTxSearch

type ResultTxSearch = ctypes.ResultTxSearch

nolint

type ResultValidators

type ResultValidators = ctypes.ResultValidators

nolint

Jump to

Keyboard shortcuts

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