Documentation ¶
Index ¶
- type Client
- func (c *Client) Genesis(ctx context.Context) (*tmtypes.GenesisDoc, error)
- func (c *Client) GetBlockEvents(ctx context.Context, height int64) (begin, end types.BlockerEvents, err error)
- func (c *Client) GetLastBlockHeight(ctx context.Context) (int64, error)
- func (c *Client) Start(ctx context.Context) error
- func (c *Client) Stop(ctx context.Context) error
- func (c *Client) SubscribeNewBlocks(ctx context.Context) (<-chan tmctypes.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 *tmHttp.WSEvents RPCClient *tmHttp.HTTP HTTPClient *http.Client // contains filtered or unexported fields }
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) GetLastBlockHeight ¶
func (*Client) SubscribeNewBlocks ¶
Click to show internal directories.
Click to hide internal directories.