Documentation ¶
Index ¶
- func ABCIInfoRPC(q *Query) (*coretypes.ResultABCIInfo, error)
- func ABCIQueryRPC(q *Query, path string, data string, prove bool) (*coretypes.ResultABCIQuery, error)
- func BlockByHashRPC(q *Query, hash string) (*coretypes.ResultBlock, error)
- func BlockRPC(q *Query) (*coretypes.ResultBlock, error)
- func BlockResultsRPC(q *Query) (*coretypes.ResultBlockResults, error)
- func StatusRPC(q *Query) (*coretypes.ResultStatus, error)
- func TxsRPC(q *Query, events []string) (*coretypes.ResultTxSearch, error)
- type Query
- func (q *Query) ABCIInfo() (*coretypes.ResultABCIInfo, error)
- func (q *Query) ABCIQuery(path string, data string, prove bool) (*coretypes.ResultABCIQuery, error)
- func (q *Query) Bank_Balance(address string, denom string) (*bankTypes.QueryBalanceResponse, error)
- func (q *Query) Bank_Balances(address string) (*bankTypes.QueryAllBalancesResponse, error)
- func (q *Query) Bank_DenomMetadata(denom string) (*bankTypes.QueryDenomMetadataResponse, error)
- func (q *Query) Bank_DenomsMetadata() (*bankTypes.QueryDenomsMetadataResponse, error)
- func (q *Query) Bank_Params() (*bankTypes.QueryParamsResponse, error)
- func (q *Query) Bank_SupplyOf(denom string) (*bankTypes.QuerySupplyOfResponse, error)
- func (q *Query) Bank_TotalSupply() (*bankTypes.QueryTotalSupplyResponse, error)
- func (q *Query) Block() (*coretypes.ResultBlock, error)
- func (q *Query) BlockByHash(hash string) (*coretypes.ResultBlock, error)
- func (q *Query) BlockResults() (*coretypes.ResultBlockResults, error)
- func (q *Query) GetQueryContext() (context.Context, context.CancelFunc)
- func (q *Query) Status() (*coretypes.ResultStatus, error)
- type QueryOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ABCIInfoRPC ¶
func ABCIInfoRPC(q *Query) (*coretypes.ResultABCIInfo, error)
ABCIInfoRPC returns information about the ABCI application
func ABCIQueryRPC ¶
func ABCIQueryRPC(q *Query, path string, data string, prove bool) (*coretypes.ResultABCIQuery, error)
ABCIQueryRPC returns data from a particular path in the ABCI application
func BlockByHashRPC ¶
func BlockByHashRPC(q *Query, hash string) (*coretypes.ResultBlock, error)
BlockByHashRPC returns information about a block by hash
func BlockRPC ¶
func BlockRPC(q *Query) (*coretypes.ResultBlock, error)
BlockRPC returns information about a block
func BlockResultsRPC ¶
func BlockResultsRPC(q *Query) (*coretypes.ResultBlockResults, error)
BlockResultsRPC returns information about a block by hash
Types ¶
type Query ¶
type Query struct { Client *client.ChainClient Options *QueryOptions }
func (*Query) ABCIInfo ¶
func (q *Query) ABCIInfo() (*coretypes.ResultABCIInfo, error)
ABCIInfo returns general information about the ABCI application
func (*Query) Bank_Balance ¶
Balances returns the balance of specific denom for a single account.
func (*Query) Bank_Balances ¶
func (q *Query) Bank_Balances(address string) (*bankTypes.QueryAllBalancesResponse, error)
Balances returns the balance of all coins for a single account.
func (*Query) Bank_DenomMetadata ¶
func (q *Query) Bank_DenomMetadata(denom string) (*bankTypes.QueryDenomMetadataResponse, error)
DenomMetadata returns the metadata for given denoms
func (*Query) Bank_DenomsMetadata ¶
func (q *Query) Bank_DenomsMetadata() (*bankTypes.QueryDenomsMetadataResponse, error)
DenomsMetadata returns the metadata for all denoms
func (*Query) Bank_Params ¶
func (q *Query) Bank_Params() (*bankTypes.QueryParamsResponse, error)
Return params for bank module.
func (*Query) Bank_SupplyOf ¶
func (q *Query) Bank_SupplyOf(denom string) (*bankTypes.QuerySupplyOfResponse, error)
SupplyOf returns the supply of given coin
func (*Query) Bank_TotalSupply ¶
func (q *Query) Bank_TotalSupply() (*bankTypes.QueryTotalSupplyResponse, error)
TotalSupply returns the supply of all coins
func (*Query) Block ¶
func (q *Query) Block() (*coretypes.ResultBlock, error)
Block returns information about a block
func (*Query) BlockByHash ¶
func (q *Query) BlockByHash(hash string) (*coretypes.ResultBlock, error)
BlockByHash returns information about a block by hash
func (*Query) BlockResults ¶
func (q *Query) BlockResults() (*coretypes.ResultBlockResults, error)
BlockResults returns information about a block by hash
func (*Query) GetQueryContext ¶
func (q *Query) GetQueryContext() (context.Context, context.CancelFunc)
GetQueryContext returns a context that includes the height and uses the timeout from the config
type QueryOptions ¶
type QueryOptions struct { Pagination *query.PageRequest Height int64 }
func DefaultOptions ¶
func DefaultOptions() *QueryOptions