client

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(url string) (*Client, error)

func (*Client) Close

func (c *Client) Close()

func (*Client) GetActivity

func (c *Client) GetActivity(epochID uint64) (activity types.Activity, _ error)

func (*Client) GetCurrentBlockHeight

func (c *Client) GetCurrentBlockHeight() (uint64, error)

func (*Client) GetCurrentEpochID

func (c *Client) GetCurrentEpochID() (epochID uint64, _ error)

func (*Client) GetCurrentSlotID added in v0.6.0

func (c *Client) GetCurrentSlotID() (slotID uint64, _ error)

func (*Client) GetEpochLeaders

func (c *Client) GetEpochLeaders(epochID uint64) (epochLeaders []string, _ error)

func (*Client) GetIncentives

func (c *Client) GetIncentives(epochID uint64) (incentives []types.ValidatorIncentive, _ error)

func (*Client) GetRandomProposers

func (c *Client) GetRandomProposers(epochID uint64) (randomProposers []string, _ error)

func (*Client) GetValidators

func (c *Client) GetValidators(blockHeight uint64) (validators []types.Validator, _ error)

Jump to

Keyboard shortcuts

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