Documentation ¶
Index ¶
- type Client
- func (c *Client) Genesis(ctx context.Context) (*cometbfttypes.GenesisDoc, error)
- func (c *Client) GetBlockEvents(ctx context.Context, height int64) (begin, end types.BlockerEvents, err error)
- func (c *Client) GetBlockResults(ctx context.Context, height int64) (*coretypes.ResultBlockResults, error)
- func (c *Client) GetLastBlockHeight(ctx context.Context) (int64, error)
- func (c *Client) GetTxResults(ctx context.Context, height int64) ([]*abci.ResponseDeliverTx, error)
- func (c *Client) Start(ctx context.Context) error
- func (c *Client) Stop(_ context.Context) error
- func (c *Client) SubscribeNewBlocks(ctx context.Context) (<-chan cometbftcoretypes.ResultEvent, error)
- func (c *Client) WsEnabled() bool
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { *jsonrpcclient.WSClient *cometbftHttp.WSEvents RPCClient *cometbftHttp.HTTP // contains filtered or unexported fields }
func (*Client) Genesis ¶
func (c *Client) Genesis(ctx context.Context) (*cometbfttypes.GenesisDoc, error)
func (*Client) GetBlockEvents ¶
func (c *Client) GetBlockEvents(ctx context.Context, height int64) (begin, end types.BlockerEvents, err error)
GetBlockEvents returns begin block and end block events.
func (*Client) GetBlockResults ¶ added in v1.1.0
func (*Client) GetLastBlockHeight ¶
func (*Client) GetTxResults ¶ added in v0.4.0
func (*Client) SubscribeNewBlocks ¶
func (c *Client) SubscribeNewBlocks(ctx context.Context) (<-chan cometbftcoretypes.ResultEvent, error)
Click to show internal directories.
Click to hide internal directories.