Documentation ¶
Overview ¶
httpclient offers a client can interactive with ethflare.
Index ¶
- type Client
- func (client *Client) GetBlockHeader(ctx context.Context, hash common.Hash) (*types.Header, error)
- func (client *Client) GetReceipts(ctx context.Context, hash common.Hash) (types.Receipts, error)
- func (client *Client) GetStateTile(ctx context.Context, hash common.Hash) ([][]byte, error)
- func (client *Client) GetTransactions(ctx context.Context, hash common.Hash) (types.Transactions, error)
- func (client *Client) GetUncles(ctx context.Context, hash common.Hash) ([]*types.Header, error)
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 (*Client) GetBlockHeader ¶
func (*Client) GetReceipts ¶
func (*Client) GetStateTile ¶
func (*Client) GetTransactions ¶
Click to show internal directories.
Click to hide internal directories.