Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockInterface ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetBlockNumberWithTS ¶
GetBlockNumberWithTS which is the closest but less than or equal to timestamp
func (*Client) GetLatestBlockNumberAndTS ¶ added in v0.0.87
GetLatestBlockNumberAndTS get the closest block number.
type MultiBlockInterface ¶
type MultiClient ¶
type MultiClient struct {
// contains filtered or unexported fields
}
func NewMultiClient ¶
func NewMultiClient(logger logging.Logger, clients []BlockInterface) *MultiClient
func (*MultiClient) GetMultiBlockNumberWithTS ¶
func (c *MultiClient) GetMultiBlockNumberWithTS(timestamp int64) ([]int64, error)
Click to show internal directories.
Click to hide internal directories.