query

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: Apache-2.0 Imports: 10 Imported by: 3 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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