Documentation ¶
Index ¶
- type Block
- type Client
- func (c Client) QueryBlock(height int64) (pBlock *ResultBlock, err error)
- func (c Client) QueryBlockByHash(hashHexStr string) (pBlock *ResultBlock, err error)
- func (c Client) QueryBlockResults(height int64) (pBlockResults *ResultBlockResults, err error)
- func (c Client) QueryCommitResult(height int64) (pCommitResult *ResultCommit, err error)
- func (c Client) QueryStatus() (pStatus *ResultStatus, err error)
- func (c Client) QueryTxResult(hashHexStr string, prove bool) (pResultTx *ResultTx, err error)
- func (c Client) QueryValidatorsResult(height int64) (pValsResult *ResultValidators, err error)
- type ClientService
- type ResultBlock
- type ResultBlockResults
- type ResultCommit
- type ResultStatus
- type ResultTx
- type ResultTxSearch
- type ResultValidators
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type 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
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