chain

package
v0.0.0-...-f1964de Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CometRpc

type CometRpc struct {
	// contains filtered or unexported fields
}

func NewCometRpc

func NewCometRpc(url string, logger zerolog.Logger) (*CometRpc, error)

func (*CometRpc) Block

func (c *CometRpc) Block(height int64) (*coretypes.ResultBlock, error)

func (*CometRpc) Height

func (c *CometRpc) Height() (int64, error)

func (*CometRpc) Subscribe

func (c *CometRpc) Subscribe(query string) (<-chan coretypes.ResultEvent, error)

Jump to

Keyboard shortcuts

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