query

package
v0.0.0-...-8df4799 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 10 Imported by: 1

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlockRPC

func BlockRPC(q *Query) (*coretypes.ResultBlock, error)

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

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) Block

func (q *Query) Block() (*coretypes.ResultBlock, error)

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

func (q *Query) TxByHeight(cc client.Codec) (*txTypes.GetTxsEventResponse, error)

Tx returns the Tx and all contained messages/TxResponse.

type QueryOptions

type QueryOptions struct {
	Pagination *query.PageRequest
	Height     int64
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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