Documentation ¶
Index ¶
- type Client
- func (ec *Client) GetEpochStats(ctx context.Context, epoch *big.Int) (map[string]interface{}, error)
- func (ec *Client) GetEvent(ctx context.Context, h hash.Event) (e inter.EventI, err error)
- func (ec *Client) GetEventPayload(ctx context.Context, h hash.Event, inclTx bool) (e inter.EventI, txs []common.Hash, err error)
- func (ec *Client) GetHeads(ctx context.Context, epoch *big.Int) (hash.Events, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client extends Ethereum API client with typed wrappers for the Volary API.
func (*Client) GetEpochStats ¶
func (ec *Client) GetEpochStats(ctx context.Context, epoch *big.Int) (map[string]interface{}, error)
GetEpochStats returns epoch statistics. * When epoch is -2 the statistics for latest epoch is returned. * When epoch is -1 the statistics for latest sealed epoch is returned.
func (*Client) GetEventPayload ¶
func (ec *Client) GetEventPayload(ctx context.Context, h hash.Event, inclTx bool) (e inter.EventI, txs []common.Hash, err error)
GetEvent returns Lachesis event by hash or short ID.
Click to show internal directories.
Click to hide internal directories.