Documentation ¶
Overview ¶
APACHE NOTICE Sourced with modifications from https://github.com/strangelove-ventures/lens
APACHE NOTICE Sourced with modifications from https://github.com/strangelove-ventures/lens
APACHE NOTICE Sourced with modifications from https://github.com/strangelove-ventures/lens
APACHE NOTICE Sourced with modifications from https://github.com/strangelove-ventures/lens
APACHE NOTICE Sourced with modifications from https://github.com/strangelove-ventures/lens
Index ¶
- func BlockRPC(q *Query) (*coretypes.ResultBlock, error)
- func BlockResultsRPC(q *Query) (*coretypes.ResultBlockResults, error)
- func StatusRPC(q *Query) (*coretypes.ResultStatus, error)
- func TxsAtHeightRPC(q *Query, height int64, codec client.Codec) (*txTypes.GetTxsEventResponse, error)
- func TxsRPC(q *Query, req *txTypes.GetTxsEventRequest, codec client.Codec) (*txTypes.GetTxsEventResponse, error)
- type Query
- func (q *Query) Block() (*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)
- func (q *Query) TxByHeight(cc client.Codec) (*txTypes.GetTxsEventResponse, error)
- type QueryOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlockResultsRPC ¶
func BlockResultsRPC(q *Query) (*coretypes.ResultBlockResults, error)
func StatusRPC ¶
func StatusRPC(q *Query) (*coretypes.ResultStatus, error)
StatusRPC returns information about a node status
func TxsAtHeightRPC ¶
func TxsAtHeightRPC(q *Query, height int64, codec client.Codec) (*txTypes.GetTxsEventResponse, error)
TxRPC Get Transactions for the given block height. Other query options can be specified with the GetTxsEventRequest.
RPC endpoint is defined in cosmos-sdk: proto/cosmos/tx/v1beta1/service.proto, See GetTxsEvent(GetTxsEventRequest) returns (GetTxsEventResponse)
func TxsRPC ¶
func TxsRPC(q *Query, req *txTypes.GetTxsEventRequest, codec client.Codec) (*txTypes.GetTxsEventResponse, error)
TxRPC Get Transactions for the given block height. Other query options can be specified with the GetTxsEventRequest.
RPC endpoint is defined in cosmos-sdk: proto/cosmos/tx/v1beta1/service.proto, See GetTxsEvent(GetTxsEventRequest) returns (GetTxsEventResponse)
Types ¶
type Query ¶
type Query struct { Client *client.ChainClient Options *QueryOptions }
func (*Query) BlockResults ¶
func (q *Query) BlockResults() (*coretypes.ResultBlockResults, error)
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
func (*Query) Status ¶
func (q *Query) Status() (*coretypes.ResultStatus, error)
Status returns information about a node status
func (*Query) TxByHeight ¶
Tx returns the Tx and all contained messages/TxResponse.
type QueryOptions ¶
type QueryOptions struct { Pagination *query.PageRequest Height int64 }