httpclient

package
v0.0.0-...-620b3f8 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

httpclient offers a client can interactive with ethflare.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// URL specifies the ethflare server endpoint the client
	// wants to connect.
	URL string

	// Timeout specifies a time limit for requests made by this
	// Client. A Timeout of zero means no timeout.
	Timeout time.Duration
}

Client is an HTTP client which connects the ethflare server.

func NewClient

func NewClient(url string) *Client

func (*Client) GetBlockHeader

func (client *Client) GetBlockHeader(ctx context.Context, hash common.Hash) (*types.Header, error)

func (*Client) GetReceipts

func (client *Client) GetReceipts(ctx context.Context, hash common.Hash) (types.Receipts, error)

func (*Client) GetStateTile

func (client *Client) GetStateTile(ctx context.Context, hash common.Hash) ([][]byte, error)

func (*Client) GetTransactions

func (client *Client) GetTransactions(ctx context.Context, hash common.Hash) (types.Transactions, error)

func (*Client) GetUncles

func (client *Client) GetUncles(ctx context.Context, hash common.Hash) ([]*types.Header, error)

Jump to

Keyboard shortcuts

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