Versions in this module Expand all Collapse all v0 v0.0.3 Sep 6, 2022 v0.0.2 Sep 6, 2022 Changes in this version + type Client struct + func NewClient(next rpcclient.Client, lc LightClient, opts ...Option) *Client + func (c *Client) ABCIInfo(ctx context.Context) (*ctypes.ResultABCIInfo, error) + func (c *Client) ABCIQuery(ctx context.Context, path string, data tmbytes.HexBytes) (*ctypes.ResultABCIQuery, error) + func (c *Client) ABCIQueryWithOptions(ctx context.Context, path string, data tmbytes.HexBytes, ...) (*ctypes.ResultABCIQuery, error) + func (c *Client) Block(ctx context.Context, height *int64) (*ctypes.ResultBlock, error) + func (c *Client) BlockByHash(ctx context.Context, hash []byte) (*ctypes.ResultBlock, error) + func (c *Client) BlockResults(ctx context.Context, height *int64) (*ctypes.ResultBlockResults, error) + func (c *Client) BlockSearch(ctx context.Context, query string, page, perPage *int, orderBy string) (*ctypes.ResultBlockSearch, error) + func (c *Client) BlockchainInfo(ctx context.Context, minHeight, maxHeight int64) (*ctypes.ResultBlockchainInfo, error) + func (c *Client) BroadcastEvidence(ctx context.Context, ev types.Evidence) (*ctypes.ResultBroadcastEvidence, error) + func (c *Client) BroadcastTxAsync(ctx context.Context, tx types.Tx) (*ctypes.ResultBroadcastTx, error) + func (c *Client) BroadcastTxCommit(ctx context.Context, tx types.Tx) (*ctypes.ResultBroadcastTxCommit, error) + func (c *Client) BroadcastTxSync(ctx context.Context, tx types.Tx) (*ctypes.ResultBroadcastTx, error) + func (c *Client) CheckTx(ctx context.Context, tx types.Tx) (*ctypes.ResultCheckTx, error) + func (c *Client) Commit(ctx context.Context, height *int64) (*ctypes.ResultCommit, error) + func (c *Client) ConsensusParams(ctx context.Context, height *int64) (*ctypes.ResultConsensusParams, error) + func (c *Client) ConsensusState(ctx context.Context) (*ctypes.ResultConsensusState, error) + func (c *Client) DumpConsensusState(ctx context.Context) (*ctypes.ResultDumpConsensusState, error) + func (c *Client) Genesis(ctx context.Context) (*ctypes.ResultGenesis, error) + func (c *Client) GenesisChunked(ctx context.Context, id uint) (*ctypes.ResultGenesisChunk, error) + func (c *Client) Health(ctx context.Context) (*ctypes.ResultHealth, error) + func (c *Client) NetInfo(ctx context.Context) (*ctypes.ResultNetInfo, error) + func (c *Client) NumUnconfirmedTxs(ctx context.Context) (*ctypes.ResultUnconfirmedTxs, error) + func (c *Client) OnStart() error + func (c *Client) OnStop() + func (c *Client) RegisterOpDecoder(typ string, dec merkle.OpDecoder) + func (c *Client) Status(ctx context.Context) (*ctypes.ResultStatus, error) + func (c *Client) Subscribe(ctx context.Context, subscriber, query string, outCapacity ...int) (out <-chan ctypes.ResultEvent, err error) + func (c *Client) SubscribeWS(ctx *rpctypes.Context, query string) (*ctypes.ResultSubscribe, error) + func (c *Client) Tx(ctx context.Context, hash []byte, prove bool) (*ctypes.ResultTx, error) + func (c *Client) TxSearch(ctx context.Context, query string, prove bool, page, perPage *int, ...) (*ctypes.ResultTxSearch, error) + func (c *Client) UnconfirmedTxs(ctx context.Context, limit *int) (*ctypes.ResultUnconfirmedTxs, error) + func (c *Client) Unsubscribe(ctx context.Context, subscriber, query string) error + func (c *Client) UnsubscribeAll(ctx context.Context, subscriber string) error + func (c *Client) UnsubscribeAllWS(ctx *rpctypes.Context) (*ctypes.ResultUnsubscribe, error) + func (c *Client) UnsubscribeWS(ctx *rpctypes.Context, query string) (*ctypes.ResultUnsubscribe, error) + func (c *Client) Validators(ctx context.Context, height *int64, pagePtr, perPagePtr *int) (*ctypes.ResultValidators, error) + type KeyPathFunc func(path string, key []byte) (merkle.KeyPath, error) + func DefaultMerkleKeyPathFn() KeyPathFunc + type LightClient interface + ChainID func() string + TrustedLightBlock func(height int64) (*types.LightBlock, error) + Update func(ctx context.Context, now time.Time) (*types.LightBlock, error) + VerifyLightBlockAtHeight func(ctx context.Context, height int64, now time.Time) (*types.LightBlock, error) + type Option func(*Client) + func KeyPathFn(fn KeyPathFunc) Option